PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ pgui_raise_error_dialogue()

static void pgui_raise_error_dialogue ( void  )
static

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

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

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().

Here is the caller graph for this function: