[ekiga/ds-gtk-application] Forms: Added explicit cancel action to action dialogs.
- From: Damien Sandras <dsandras src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga/ds-gtk-application] Forms: Added explicit cancel action to action dialogs.
- Date: Sun, 28 Sep 2014 16:31:21 +0000 (UTC)
commit 293411ea2befd1a9aaa251dd5363a609ee4725fe
Author: Damien Sandras <dsandras seconix com>
Date: Sun Sep 28 18:30:27 2014 +0200
Forms: Added explicit cancel action to action dialogs.
Thanks to Michael Catanzaro for pointing this.
lib/engine/gui/gtk-core/form-dialog-gtk.cpp | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/lib/engine/gui/gtk-core/form-dialog-gtk.cpp b/lib/engine/gui/gtk-core/form-dialog-gtk.cpp
index 5366e4e..8ce6b0f 100644
--- a/lib/engine/gui/gtk-core/form-dialog-gtk.cpp
+++ b/lib/engine/gui/gtk-core/form-dialog-gtk.cpp
@@ -716,6 +716,9 @@ FormDialog::FormDialog (Ekiga::FormRequestPtr _request,
gtk_window_set_resizable (GTK_WINDOW (window), FALSE);
if (GTK_IS_WINDOW (parent))
gtk_window_set_transient_for (GTK_WINDOW (window), GTK_WINDOW (parent));
+ gtk_dialog_add_button (GTK_DIALOG (window),
+ _("Cancel"),
+ GTK_RESPONSE_CANCEL);
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 18);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 18);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]