From e34dce1e83799ee96920af92fef6736ec10ae14c Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Wed, 27 Feb 2008 17:36:22 +0200 Subject: [PATCH] Use a Close button instead of OK, makes it more clear. --- src/poi-gui.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/poi-gui.c b/src/poi-gui.c index 5ff42d2..3538295 100644 --- a/src/poi-gui.c +++ b/src/poi-gui.c @@ -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; -- 2.39.5