[gnome-shell] ShellApp: remove impossible check



commit d555fd7883bfe1932d5dfff8309b6dacae62d362
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Thu Feb 13 22:32:48 2014 +0100

    ShellApp: remove impossible check
    
    The action muxer is created and destroyed with the running state,
    it can never be NULL.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=722554

 src/shell-app.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/shell-app.c b/src/shell-app.c
index aed49f0..e2f3c71 100644
--- a/src/shell-app.c
+++ b/src/shell-app.c
@@ -611,9 +611,7 @@ shell_app_update_window_actions (ShellApp *app, MetaWindow *window)
           g_object_set_data_full (G_OBJECT (window), "actions", actions, g_object_unref);
         }
 
-      if (!app->running_state->muxer)
-        app->running_state->muxer = gtk_action_muxer_new ();
-
+      g_assert (app->running_state->muxer);
       gtk_action_muxer_insert (app->running_state->muxer, "win", actions);
       g_object_notify (G_OBJECT (app), "action-group");
     }


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