GNOME Bugzilla – Bug 794749
Use ev_window_set_action_enabled when possible
Last modified: 2018-03-29 01:22:14 UTC
Currently there are plenty uses of the same pattern... Grab a simple action from the EvWindow Action group by name and then enable/disable it with g_simple_action_set_enabled. This pattern is already coded into ev_window_set_enabled and used in some parts of ev-window.c but not in all... So we should fix this and use ev_window_set_enabled in all situations when all we do is to enable/disable the action.
Created attachment 370226 [details] [review] shell: Use ev_window_set_action_enabled more There were many uses of the same pattern that is already coded in ev_window_set_action_enabled, so use it in all cases all you need to do is enable/disable the action.
German, Carlos, could you review this to make sure I am not mistaken... I could not figure out a reason why we have mixed code, so I changed everything.
Review of attachment 370226 [details] [review]: It looks got to me
Review of attachment 370226 [details] [review]: thanks
This problem has been fixed in the unstable development version. The fix will be available in the next major software release. You may need to upgrade your Linux distribution to obtain that newer version.