[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: CVS update: x_log.c



  User: werner  
  Date: 07/01/02 05:24:32

  Modified:    .        x_log.c
  Log:
  	* src/x_log.c: insert text at the end of the buffer instead of cursor
  
  	  position. Replaced gtk_text_view_scroll_to_iter() with
  
  	  gtk_text_view_scroll_to_mark() which works more reliable.
  
  
  
  
  Revision  Changes    Path
  1.19      +6 -4      eda/geda/gaf/gschem/src/x_log.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: x_log.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gschem/src/x_log.c,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -b -r1.18 -r1.19
  --- x_log.c	7 Dec 2006 04:24:17 -0000	1.18
  +++ x_log.c	2 Jan 2007 10:24:32 -0000	1.19
  @@ -157,15 +157,17 @@
   {
     GtkTextBuffer *buffer;
     GtkTextIter iter;
  +  GtkTextMark *mark;
     
     g_return_if_fail (IS_LOG (log));
   
     buffer = gtk_text_view_get_buffer (log->textview);
  -  gtk_text_buffer_insert_at_cursor (buffer, message, strlen (message));
  -  
     gtk_text_buffer_get_end_iter (buffer, &iter);
  -  gtk_text_view_scroll_to_iter (log->textview, &iter, 0, TRUE, 0, 1);
  +  gtk_text_buffer_insert(buffer, &iter, message, -1);
     
  +  mark = gtk_text_buffer_create_mark(buffer, NULL, &iter, FALSE);
  +  gtk_text_view_scroll_to_mark (log->textview, mark, 0, TRUE, 0, 1);
  +  gtk_text_buffer_delete_mark (buffer, mark);
   }
   
   /*! \todo Finish function documentation!!!
  
  
  


_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs