[gnome-games/sudoku-vala] gnome-sudoku: fullscreen item connected
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/sudoku-vala] gnome-sudoku: fullscreen item connected
- Date: Thu, 7 Apr 2011 23:58:32 +0000 (UTC)
commit 70006dd04b5e589ee08ee1ae9c7c588c8bb4a579
Author: Tiffany Antopolski <tiffany antopolski com>
Date: Fri Apr 8 09:56:56 2011 +1000
gnome-sudoku: fullscreen item connected
gnome-sudoku/src/gnome-sudoku.vala | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/gnome-sudoku/src/gnome-sudoku.vala b/gnome-sudoku/src/gnome-sudoku.vala
index b849b2a..0d890e4 100644
--- a/gnome-sudoku/src/gnome-sudoku.vala
+++ b/gnome-sudoku/src/gnome-sudoku.vala
@@ -100,9 +100,16 @@ public class Application
}
[CCode (cname = "G_MODULE_EXPORT toggle_fullscreen_cb", instance_pos = -1)]
- public void toggle_fullscreen_cb (Gtk.Widget widget)
- {
- stdout.printf ("TODO: Toggle fullscreen\n");
+ public void toggle_fullscreen_cb (Gtk.CheckMenuItem item)
+ {
+ /* Assume window is fullscreen afterward. No attempt
+ * is made to account for the state of the toggle.
+ */
+
+ if (item.active)
+ window.fullscreen();
+ else
+ window.unfullscreen();
}
[CCode (cname = "G_MODULE_EXPORT toggle_toolbar_cb", instance_pos = -1)]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]