]> err.no Git - mapper/commitdiff
Show dialog after setting callbacks
authorKaj-Michael Lang <milang@onion.tal.org>
Thu, 9 Aug 2007 10:05:37 +0000 (13:05 +0300)
committerKaj-Michael Lang <milang@onion.tal.org>
Thu, 9 Aug 2007 10:05:37 +0000 (13:05 +0300)
src/poi-gui.c

index 56044514b6784e0cf9c6d389238358a96dbcd247..1b3f1eade638467134b9d40f16c9dcf1d52ac529 100644 (file)
@@ -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;
        }