From: Kaj-Michael Lang Date: Thu, 9 Aug 2007 10:05:37 +0000 (+0300) Subject: Show dialog after setting callbacks X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1f0c4d4e9ab91cb2fa79d0035caf1b5c6362994;p=mapper Show dialog after setting callbacks --- diff --git a/src/poi-gui.c b/src/poi-gui.c index 5604451..1b3f1ea 100644 --- a/src/poi-gui.c +++ b/src/poi-gui.c @@ -338,7 +338,6 @@ gboolean category_list() gtk_tree_view_column_set_sort_column_id (column, CAT_POI_CNT); gtk_window_set_default_size(GTK_WINDOW(dialog), 500, 300); - gtk_widget_show_all(dialog); g_signal_connect(G_OBJECT(btn_edit), "clicked", G_CALLBACK(category_edit), tree_view); @@ -346,6 +345,7 @@ gboolean category_list() g_signal_connect(G_OBJECT(btn_add), "clicked", G_CALLBACK(category_add), tree_view); + gtk_widget_show_all(dialog); while (GTK_RESPONSE_ACCEPT == gtk_dialog_run(GTK_DIALOG(dialog))) { break; }