[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: CVS update: x_log.nw
User: ahvezda
Date: 05/02/20 18:47:00
Modified: . x_log.nw
Log:
Added code to scroll to the end of the buffer the first time the log window
is opened.
Revision Changes Path
1.16 +5 -1 eda/geda/devel/gschem/noweb/x_log.nw
(In the diff below, changes in quantity of whitespace are not shown.)
Index: x_log.nw
===================================================================
RCS file: /home/cvspsrv/cvsroot/eda/geda/devel/gschem/noweb/x_log.nw,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -b -r1.15 -r1.16
--- x_log.nw 20 Feb 2005 17:07:32 -0000 1.15
+++ x_log.nw 20 Feb 2005 23:47:00 -0000 1.16
@@ -277,6 +277,7 @@
{
GtkWidget *scrolled_win, *text_view;
GtkTextBuffer *text_buffer;
+ GtkTextMark *mark;
/* dialog initialization */
g_object_set (G_OBJECT (log),
@@ -328,6 +329,9 @@
gtk_dialog_add_button (GTK_DIALOG (log),
GTK_STOCK_CLOSE, LOG_RESPONSE_CLOSE);
+ /* scroll to the end of the buffer */
+ mark = gtk_text_buffer_get_insert (text_buffer);
+ gtk_text_view_scroll_to_mark (text_view, mark, 0.0, TRUE, 0.0, 1.0);
}
@ %def log_init