[gnome-mahjongg/gnome-3-14] Add a close button to the non-headerbar preferences dialog
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-mahjongg/gnome-3-14] Add a close button to the non-headerbar preferences dialog
- Date: Sun, 28 Sep 2014 23:31:18 +0000 (UTC)
commit b9b41fa503d9cbfe81d93186b7b00b2b9aaa8ed5
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sun Sep 28 18:24:39 2014 -0500
Add a close button to the non-headerbar preferences dialog
src/gnome-mahjongg.vala | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/gnome-mahjongg.vala b/src/gnome-mahjongg.vala
index eb2eb39..e3942ce 100644
--- a/src/gnome-mahjongg.vala
+++ b/src/gnome-mahjongg.vala
@@ -512,6 +512,9 @@ public class Mahjongg : Gtk.Application
dialog_content_area.pack_start (grid, true, true, 0);
+ if (!dialogs_use_header)
+ preferences_dialog.add_button (Gtk.Stock.CLOSE, Gtk.ResponseType.CLOSE); // Stock due to string
freeze
+
preferences_dialog.show_all ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]