[gnome-games] quadrapassel: Add fullscreen option
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] quadrapassel: Add fullscreen option
- Date: Mon, 6 Feb 2012 09:23:15 +0000 (UTC)
commit 3c0f1f6d414a42d31dce9cdfb7611473ad73ce94
Author: Robert Ancell <robert ancell canonical com>
Date: Mon Feb 6 19:56:28 2012 +1100
quadrapassel: Add fullscreen option
quadrapassel/src/quadrapassel.vala | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/quadrapassel/src/quadrapassel.vala b/quadrapassel/src/quadrapassel.vala
index 79d7e45..55dc73b 100644
--- a/quadrapassel/src/quadrapassel.vala
+++ b/quadrapassel/src/quadrapassel.vala
@@ -27,6 +27,7 @@ public class Quadrapassel
private GnomeGamesSupport.Scores high_scores;
private GnomeGamesSupport.PauseAction pause_action;
+ private GnomeGamesSupport.FullscreenAction fullscreen_action;
private Gtk.Dialog preferences_dialog;
private Gtk.SpinButton starting_level_spin;
@@ -66,6 +67,7 @@ public class Quadrapassel
" <menuitem action='Quit'/>" +
" </menu>" +
" <menu action='SettingsMenu'>" +
+ " <menuitem action='Fullscreen'/>" +
" <menuitem action='Preferences'/>" +
" </menu>" +
" <menu action='HelpMenu'>" +
@@ -76,6 +78,7 @@ public class Quadrapassel
" <toolbar name='Toolbar'>" +
" <toolitem action='NewGame'/>" +
" <toolitem action='_Pause'/>" +
+ " <toolitem action='Fullscreen'/>" +
" </toolbar>" +
"</ui>";
@@ -122,6 +125,9 @@ public class Quadrapassel
pause_action.state_changed.connect (pause_cb);
action_group.add_action_with_accel (pause_action, null);
+ fullscreen_action = new GnomeGamesSupport.FullscreenAction ("Fullscreen", main_window);
+ action_group.add_action_with_accel (fullscreen_action, null);
+
var menubar = ui_manager.get_widget ("/MainMenu");
vbox.pack_start (menubar, false, true, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]