Commit db579e63 authored by Mark Cave-Ayland's avatar Mark Cave-Ayland

Fix #527: Log window in shp2pgsql-gui should always append text to bottom of window.


git-svn-id: http://svn.osgeo.org/postgis/[email protected] b70326c6-7e19-0410-871a-916f4a2858ee
parent d3533ba8
......@@ -159,11 +159,12 @@ pgui_log_va(const char *fmt, va_list ap)
if (!lw_vasprintf (&msg, fmt, ap)) return;
/* Append text to the end of the text area, scrolling if required to make it visible */
gtk_text_buffer_get_end_iter(textbuffer_log, &iter);
gtk_text_buffer_insert(textbuffer_log, &iter, msg, -1);
gtk_text_buffer_get_end_iter(textbuffer_log, &iter);
gtk_text_buffer_insert(textbuffer_log, &iter, "\n", -1);
gtk_text_view_scroll_mark_onscreen(GTK_TEXT_VIEW(textview_log), gtk_text_buffer_get_insert(textbuffer_log) );
gtk_text_view_scroll_to_iter(GTK_TEXT_VIEW(textview_log), &iter, 0.0, TRUE, 0.0, 1.0);
/* Allow GTK to process events */
while (gtk_events_pending())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment