Make Class Builder dialog close when pressing escape.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1660 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Nick Treleaven 2007-07-04 12:04:46 +00:00
parent 451c5b0e7e
commit 90d529f289
2 changed files with 3 additions and 1 deletions

View File

@ -12,6 +12,8 @@
Don't use G_MODULE_BIND_LAZY when loading plugins otherwise we can
potentially get unresolved symbols at runtime, causing a segfault.
Capitalize 2 menu item labels.
* plugins/classbuilder.c:
Make Class Builder dialog close when pressing escape.
2007-07-02 Enrico Tröger <enrico.troeger@uvena.de>

View File

@ -369,7 +369,7 @@ void show_dialog_create_class(gint type)
cc_dlg->dialog = gtk_dialog_new_with_buttons(_("Create class"),
GTK_WINDOW(plugin_data->app->window),
GTK_DIALOG_MODAL,
GTK_STOCK_CANCEL, GTK_RESPONSE_REJECT,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_OK, GTK_RESPONSE_OK,
NULL);
gtk_container_set_border_width(GTK_CONTAINER(cc_dlg->dialog), 5);