GNOME Bugzilla – Bug 686938
Exit fullscreen button uses the wrong icon
Last modified: 2016-03-31 14:01:54 UTC
The exit fullscreen button - which is in the fullscreen toolbar - uses the view-fullscreen-symbolic icon. This is wrong - the button does not enter fullscreen, it exits it. Something like view-restore-symbolic would be a better choice.
Created attachment 227363 [details] [review] Emit proper notifications for App.fullscreen We don't want to send notify emissions when we set the fullscreen property as that only requests an async change (reading the property will not have changed value yet). So, we disable automatic notifcation for the property and notify manually when the real state changes.
Created attachment 227364 [details] [review] 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.
Review of attachment 227364 [details] [review]: ACK
Review of attachment 227363 [details] [review]: otherwise good ::: src/app.vala @@ +407,3 @@ return false; }); + window.window_state_event.connect ((ev) => { nitpick: ev -> event @@ +408,3 @@ }); + window.window_state_event.connect ((ev) => { + if ((ev.changed_mask & WindowState.FULLSCREEN) != 0) this could be written as: if (WindowState.FULLSCREEN in ev.changed_mask)
Attachment 227363 [details] pushed as cc64e33 - Emit proper notifications for App.fullscreen Attachment 227364 [details] pushed as 9b07acb - Use the right icon for the fullscreen button