PostGIS  2.1.10dev-r@@SVN_REVISION@@
void pgui_log_va ( const char *  fmt,
va_list  ap 
)
static

Definition at line 225 of file shp2pgsql-gui.c.

References lw_vasprintf(), textbuffer_log, textview_log, and TRUE.

Referenced by pgui_logf().

226 {
227  char *msg;
228  GtkTextIter iter;
229 
230  if (!lw_vasprintf (&msg, fmt, ap)) return;
231 
232  /* Append text to the end of the text area, scrolling if required to make it visible */
233  gtk_text_buffer_get_end_iter(textbuffer_log, &iter);
234  gtk_text_buffer_insert(textbuffer_log, &iter, msg, -1);
235  gtk_text_buffer_insert(textbuffer_log, &iter, "\n", -1);
236 
237  gtk_text_view_scroll_to_iter(GTK_TEXT_VIEW(textview_log), &iter, 0.0, TRUE, 0.0, 1.0);
238 
239  /* Allow GTK to process events */
240  while (gtk_events_pending())
241  gtk_main_iteration();
242 
243  free(msg);
244  return;
245 }
tuple fmt
Definition: pixval.py:92
int lw_vasprintf(char **result, const char *format, va_list args)
Definition: vsprintf.c:148
#define TRUE
Definition: dbfopen.c:170
static GtkWidget * textview_log
Definition: shp2pgsql-gui.c:54
static GtkTextBuffer * textbuffer_log
Definition: shp2pgsql-gui.c:55

Here is the call graph for this function:

Here is the caller graph for this function: