PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ pgui_raise_error_dialogue()

static void pgui_raise_error_dialogue ( void  )
static

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

References _, FALSE, pgui_errmsg, and window_main.

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

280 {
281  GtkWidget *dialog, *label;
282 
283  label = gtk_label_new(pgui_errmsg);
284  dialog = gtk_dialog_new_with_buttons(_("Error"), GTK_WINDOW(window_main),
285  GTK_DIALOG_MODAL & GTK_DIALOG_NO_SEPARATOR & GTK_DIALOG_DESTROY_WITH_PARENT,
286  GTK_STOCK_OK, GTK_RESPONSE_OK, NULL);
287  gtk_dialog_set_has_separator(GTK_DIALOG(dialog), FALSE );
288  gtk_container_set_border_width(GTK_CONTAINER(dialog), 5);
289  gtk_container_set_border_width(GTK_CONTAINER (GTK_DIALOG(dialog)->vbox), 15);
290  gtk_container_add(GTK_CONTAINER(GTK_DIALOG(dialog)->vbox), label);
291  gtk_widget_show_all(dialog);
292  gtk_dialog_run(GTK_DIALOG(dialog));
293  gtk_widget_destroy(dialog);
294  return;
295 }
static GtkWidget * window_main
Definition: shp2pgsql-gui.c:49
#define _(String)
Definition: shpcommon.h:24
#define FALSE
Definition: dbfopen.c:168
static char pgui_errmsg[GUIMSG_LINE_MAXLEN+1]
Here is the caller graph for this function: