~ted/indicator-appmenu/local-repeat-remove

« back to all changes in this revision

Viewing changes to src/window-menus.c

  • Committer: Ted Gould
  • Date: 2012-02-28 21:56:50 UTC
  • Revision ID: ted@gould.cx-20120228215650-i24bgfhcfnmv02bs
Make sure to connect to the initial entries if there are any

Show diffs side-by-side

added added

removed removed

Lines of Context:
392
392
                          G_CALLBACK (item_removed_cb),
393
393
                          newmenu); 
394
394
 
 
395
        GList * children = gtk_container_get_children(GTK_CONTAINER(priv->menu));
 
396
        GList * child = NULL;
 
397
        for (child = children; child != NULL; child = g_list_next(child)) {
 
398
                g_signal_connect(G_OBJECT(child->data), "show", G_CALLBACK(item_visibility_cb), newmenu);
 
399
                g_signal_connect(G_OBJECT(child->data), "hide", G_CALLBACK(item_visibility_cb), newmenu);
 
400
        }
 
401
        g_list_free(children);
 
402
 
395
403
        DbusmenuMenuitem * root = dbusmenu_client_get_root(DBUSMENU_CLIENT(priv->client));
396
404
        if (root != NULL) {
397
405
                root_changed(DBUSMENU_CLIENT(priv->client), root, newmenu);