PostGIS  2.1.10dev-r@@SVN_REVISION@@
static void pgui_raise_error_dialogue ( void  )
static

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

References _, FALSE, pgui_errmsg, and window_main.

Referenced by connection_test(), pgui_action_connection_okay(), pgui_action_export(), pgui_action_import(), and pgui_action_open_table_dialog().

287 {
288  GtkWidget *dialog, *label;
289 
290  label = gtk_label_new(pgui_errmsg);
291  dialog = gtk_dialog_new_with_buttons(_("Error"), GTK_WINDOW(window_main),
292  GTK_DIALOG_MODAL & GTK_DIALOG_NO_SEPARATOR & GTK_DIALOG_DESTROY_WITH_PARENT,
293  GTK_STOCK_OK, GTK_RESPONSE_OK, NULL);
294  gtk_dialog_set_has_separator(GTK_DIALOG(dialog), FALSE );
295  gtk_container_set_border_width(GTK_CONTAINER(dialog), 5);
296  gtk_container_set_border_width(GTK_CONTAINER (GTK_DIALOG(dialog)->vbox), 15);
297  gtk_container_add(GTK_CONTAINER(GTK_DIALOG(dialog)->vbox), label);
298  gtk_widget_show_all(dialog);
299  gtk_dialog_run(GTK_DIALOG(dialog));
300  gtk_widget_destroy(dialog);
301  return;
302 }
static GtkWidget * window_main
Definition: shp2pgsql-gui.c:52
#define _(String)
Definition: shpcommon.h:23
static char * pgui_errmsg
#define FALSE
Definition: dbfopen.c:169

Here is the caller graph for this function: