[glade3] * gladeui/glade-editor.c: Make query dialog come with a "Create" button instead of an "OK" button,
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade3] * gladeui/glade-editor.c: Make query dialog come with a "Create" button instead of an "OK" button,
- Date: Sun, 9 Jan 2011 06:53:17 +0000 (UTC)
commit 205b71e265c38ca9c07f178400b7174f4096c6f5
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Sun Jan 9 15:52:17 2011 +0900
* gladeui/glade-editor.c: Make query dialog come with a "Create" button instead
of an "OK" button, closes bug 503621.
ChangeLog | 3 +++
gladeui/glade-editor.c | 8 +++++++-
2 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 0a3828c..6ceb4c5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -35,6 +35,9 @@
* plugins/gtk+/gtk+.xml.in: Disable the GtkToolButton:menu property.
+ * gladeui/glade-editor.c: Make query dialog come with a "Create" button instead
+ of an "OK" button, closes bug 503621.
+
2011-01-08 Tristan Van Berkom <tristanvb openismus com>
* gladeui/glade-utils.[ch], gladeui/glade-widget.c, gladeui/glade-builtins.c,
diff --git a/gladeui/glade-editor.c b/gladeui/glade-editor.c
index 018a65c..5846fdf 100644
--- a/gladeui/glade-editor.c
+++ b/gladeui/glade-editor.c
@@ -893,6 +893,7 @@ glade_editor_query_dialog (GladeWidget * widget)
{
GladeWidgetAdaptor *adaptor;
GtkWidget *dialog, *editable, *content_area;
+ GtkWidget *create;
gchar *title;
gint answer;
gboolean retval = TRUE;
@@ -906,9 +907,14 @@ glade_editor_query_dialog (GladeWidget * widget)
GTK_DIALOG_MODAL |
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
- GTK_STOCK_OK, GTK_RESPONSE_OK, NULL);
+ NULL);
g_free (title);
+ create = gtk_button_new_with_mnemonic (_("Crea_te"));
+ gtk_widget_show (create);
+ gtk_widget_set_can_default (create, TRUE);
+ gtk_dialog_add_action_widget (GTK_DIALOG (dialog), create, GTK_RESPONSE_OK);
+
gtk_dialog_set_alternative_button_order (GTK_DIALOG (dialog),
GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL, -1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]