From: Kaj-Michael Lang Date: Wed, 27 Feb 2008 15:36:22 +0000 (+0200) Subject: Use a Close button instead of OK, makes it more clear. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e34dce1e83799ee96920af92fef6736ec10ae14c;p=mapper Use a Close button instead of OK, makes it more clear. --- 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;