~larsu/indicator-messages/lp1058386

« back to all changes in this revision

Viewing changes to src/app-section.c

  • Committer: Lars Uebernickel
  • Date: 2012-08-27 15:34:30 UTC
  • mfrom: (293.1.8 fix-icons)
  • Revision ID: lars.uebernickel@canonical.com-20120827153430-iidqlbi67reuvavs
MergeĀ lp:~larsu/messaging-menu/fix-icons

Show diffs side-by-side

added added

removed removed

Lines of Context:
346
346
        for (i = 0; nicks[i] != NULL; i++) {
347
347
                gchar *name;
348
348
                GSimpleAction *action;
 
349
                GMenuItem *item;
349
350
 
350
351
                name = indicator_desktop_shortcuts_nick_get_name(priv->ids, nicks[i]);
351
352
 
354
355
                g_simple_action_group_insert (priv->static_shortcuts, G_ACTION (action));
355
356
                g_object_unref (action);
356
357
 
357
 
                g_menu_append (priv->menu, name, nicks[i]);
 
358
                item = g_menu_item_new (name, nicks[i]);
 
359
                g_menu_item_set_attribute (item, "x-canonical-type", "s", "IdoMenuItem");
 
360
                g_menu_item_set_attribute (item, "x-canonical-icon", "s", ""); /* empty to get indentation */
 
361
                g_menu_append_item (priv->menu, item);
358
362
 
 
363
                g_object_unref (item);
359
364
                g_free(name);
360
365
        }
361
366