Skip to content

Commit

Permalink
ImporterItem: workaround Gtk-CRITICAL. For #223.
Browse files Browse the repository at this point in the history
  • Loading branch information
rilian-la-te committed Mar 17, 2018
1 parent d85de92 commit 538a372
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/dbusmenu-importer/item.c
Expand Up @@ -167,6 +167,10 @@ G_GNUC_INTERNAL DBusMenuItem *dbus_menu_item_new(u_int32_t id, DBusMenuModel *pa
action_creator_found = true;
}
}
if (item->action_type != DBUS_MENU_ACTION_SECTION)
g_hash_table_insert(item->attributes,
g_strdup(G_MENU_ATTRIBUTE_LABEL),
g_variant_new_string(""));
dbus_menu_item_update_props(item, props);
return item;
}
Expand Down

0 comments on commit 538a372

Please sign in to comment.