[gnome-chess] Fullscreen icon should toggle properly
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-chess] Fullscreen icon should toggle properly
- Date: Sun, 18 Aug 2013 21:26:59 +0000 (UTC)
commit 952410b77c485db95b0cc77994ef6cf1b3adb8ae
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sun Aug 18 16:25:25 2013 -0500
Fullscreen icon should toggle properly
When we're fullscreen, display an unfullscreen icon
https://bugzilla.gnome.org/show_bug.cgi?id=704992
src/gnome-chess.vala | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/gnome-chess.vala b/src/gnome-chess.vala
index 0dfed86..56e1f08 100644
--- a/src/gnome-chess.vala
+++ b/src/gnome-chess.vala
@@ -1402,9 +1402,15 @@ public class Application : Gtk.Application
public void toggle_fullscreen_cb (Gtk.Widget widget)
{
if (is_fullscreen)
+ {
+ ((Gtk.ToolButton) fullscreen_button).stock_id = "gtk-fullscreen";
window.unfullscreen ();
+ }
else
- window.fullscreen ();
+ {
+ ((Gtk.ToolButton) fullscreen_button).stock_id = "gtk-leave-fullscreen";
+ window.fullscreen ();
+ }
}
public void preferences_cb ()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]