diff options
author | Alexander Larsson <alexl@redhat.com> | 2012-10-26 15:59:56 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2012-10-26 16:59:27 +0200 |
commit | 9b07acbe4bc90881b3553465cd5baeeee546e182 (patch) | |
tree | c603ded18857268de159c8c61ed53107d8bdb446 | |
parent | cc64e334ee5d541f3dcc417efe90d9227380cb72 (diff) |
Use the right icon for the fullscreen button
We were always using the go-to-fullscreen icon, but
we should use the restore-from-fullscreen icon when in fullscreen
mode already.
https://bugzilla.gnome.org/show_bug.cgi?id=686938
-rw-r--r-- | src/display-page.vala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/display-page.vala b/src/display-page.vala index f99142c..5063823 100644 --- a/src/display-page.vala +++ b/src/display-page.vala @@ -10,6 +10,13 @@ private class Boxes.DisplayToolbar: Gd.MainToolbar { back.clicked.connect ((button) => { App.app.ui_state = UIState.COLLECTION; }); var fullscreen = add_button ("view-fullscreen-symbolic", null, false) as Gtk.Button; + App.app.notify["fullscreen"].connect_after ( () => { + var image = fullscreen.get_child() as Gtk.Image; + if (App.app.fullscreen) + image.icon_name = "view-restore-symbolic"; + else + image.icon_name = "view-fullscreen-symbolic"; + }); fullscreen.clicked.connect ((button) => { App.app.fullscreen = !App.app.fullscreen; }); var props = add_button ("utilities-system-monitor-symbolic", null, false) as Gtk.Button; |