diff options
author | jstebbins <[email protected]> | 2008-12-01 22:20:43 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2008-12-01 22:20:43 +0000 |
commit | 999dac26c81096168b3900a9f7041edba96943d6 (patch) | |
tree | f054ca3708ee0f1f7675cc03a12cb7f04a0e63db | |
parent | f7d18cffb33823b66bc44e9cb0f8c211d4b869d4 (diff) |
LinGui: fix a minor annoyance with how activity window scrolling works.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1984 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | gtk/src/callbacks.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c index 0eeae277d..24e1dcd02 100644 --- a/gtk/src/callbacks.c +++ b/gtk/src/callbacks.c @@ -1915,7 +1915,7 @@ ghb_log_cb(GIOChannel *source, GIOCondition cond, gpointer data) buffer = gtk_text_view_get_buffer (textview); // I would like to auto-scroll the window when the scrollbar // is at the bottom, - // must determining whether the insert point is at + // must determine whether the insert point is at // the bottom of the window window = gtk_text_view_get_window(textview, GTK_TEXT_WINDOW_TEXT); if (window != NULL) @@ -1938,8 +1938,8 @@ ghb_log_cb(GIOChannel *source, GIOCondition cond, gpointer data) gtk_text_buffer_insert(buffer, &iter, text, -1); if (bottom) { - //gtk_text_view_scroll_to_iter(textview, &iter, 0, FALSE, 0, 0); - mark = gtk_text_buffer_get_insert (buffer); + gtk_text_buffer_get_end_iter(buffer, &iter); + mark = gtk_text_buffer_create_mark(buffer, NULL, &iter, FALSE); gtk_text_view_scroll_mark_onscreen(textview, mark); } g_io_channel_write_chars (ud->activity_log, text, |