[eog] EogWindow: Do not lookup wallpaper action unnecessarily



commit aec5c83e7c49a6059115cd67cb43855ba3195b6a
Author: Felix Riemann <friemann gnome org>
Date:   Sun Nov 22 01:48:22 2020 +0100

    EogWindow: Do not lookup wallpaper action unnecessarily
    
    The 'set-wallpaper' action is already passed as function parameter.
    There's no need to look it up a second time.

 src/eog-window.c | 3 ---
 1 file changed, 3 deletions(-)
---
diff --git a/src/eog-window.c b/src/eog-window.c
index 0277c8ab..aada655e 100644
--- a/src/eog-window.c
+++ b/src/eog-window.c
@@ -3156,10 +3156,7 @@ eog_window_action_wallpaper (GSimpleAction *action,
        if (filename == NULL || !eog_util_file_is_persistent (file))
        {
                GList *files = NULL;
-               GAction *action;
 
-               action = g_action_map_lookup_action (G_ACTION_MAP (window),
-                                                     "set-wallpaper");
                g_simple_action_set_enabled (G_SIMPLE_ACTION (action), FALSE);
 
                priv->copy_file_cid = gtk_statusbar_get_context_id (GTK_STATUSBAR (priv->statusbar),


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]