]> err.no Git - mapper/commitdiff
Use a Close button instead of OK, makes it more clear.
authorKaj-Michael Lang <milang@onion.tal.org>
Wed, 27 Feb 2008 15:36:22 +0000 (17:36 +0200)
committerKaj-Michael Lang <milang@onion.tal.org>
Wed, 27 Feb 2008 15:36:22 +0000 (17:36 +0200)
src/poi-gui.c

index 5ff42d2cdd2ac4a2a5388725cd7bb519376a4aca..3538295faa7428ffd118aabbb29386e3d8e2719b 100644 (file)
@@ -359,7 +359,7 @@ GtkListStore *store;
 
 dialog = gtk_dialog_new_with_buttons(_("POI Categories"),
                             GTK_WINDOW(_window),
-                            GTK_DIALOG_MODAL, GTK_STOCK_OK,
+                            GTK_DIALOG_MODAL, GTK_STOCK_CLOSE,
                             GTK_RESPONSE_ACCEPT, NULL);
 
 help_dialog_help_enable(GTK_DIALOG(dialog), HELP_ID_POICAT);
@@ -423,9 +423,7 @@ g_signal_connect(G_OBJECT(btn_edit), "clicked", G_CALLBACK(category_edit_cb), tr
 g_signal_connect(G_OBJECT(btn_add), "clicked", G_CALLBACK(category_add_cb), tree_view);
 
 gtk_widget_show_all(dialog);
-while (GTK_RESPONSE_ACCEPT == gtk_dialog_run(GTK_DIALOG(dialog))) {
-       break;
-}
+gtk_dialog_run(GTK_DIALOG(dialog));
 gtk_widget_destroy(dialog);
 
 return TRUE;