From a1f0c4d4e9ab91cb2fa79d0035caf1b5c6362994 Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Thu, 9 Aug 2007 13:05:37 +0300 Subject: [PATCH] Show dialog after setting callbacks --- src/poi-gui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5