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);
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;