[iagno] Use GtkHeaderBar
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [iagno] Use GtkHeaderBar
- Date: Mon, 14 Oct 2013 22:25:20 +0000 (UTC)
commit d9002294fd387dd05862ad6a8585f45640877852
Author: Robert Ancell <robert ancell canonical com>
Date: Tue Oct 15 11:24:17 2013 +1300
Use GtkHeaderBar
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=710147
configure.ac | 2 +-
src/iagno.vala | 6 ++++++
2 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 1a879b9..0a80ba1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -14,7 +14,7 @@ dnl Dependencies
dnl ###########################################################################
GLIB_REQUIRED=2.36.0
-GTK_REQUIRED=3.4.0
+GTK_REQUIRED=3.10.0
RSVG_REQUIRED=2.32.0
CANBERRA_GTK_REQUIRED=0.26
diff --git a/src/iagno.vala b/src/iagno.vala
index 2860acb..386990f 100644
--- a/src/iagno.vala
+++ b/src/iagno.vala
@@ -96,6 +96,12 @@ public class Iagno : Gtk.Application
else if (settings.get_boolean ("window-is-maximized"))
window.maximize ();
+ var headerbar = new Gtk.HeaderBar ();
+ headerbar.show_close_button = true;
+ headerbar.set_title (_("Iagno"));
+ headerbar.show ();
+ window.set_titlebar (headerbar);
+
add_window (window);
view = new GameView ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]