diff options
Diffstat (limited to 'libmessaging-menu')
-rw-r--r-- | libmessaging-menu/messaging-menu.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libmessaging-menu/messaging-menu.c b/libmessaging-menu/messaging-menu.c index a51695a..467a67a 100644 --- a/libmessaging-menu/messaging-menu.c +++ b/libmessaging-menu/messaging-menu.c @@ -648,7 +648,8 @@ messaging_menu_app_insert_source_action (MessagingMenuApp *app, g_simple_action_group_insert (app->source_actions, G_ACTION (action)); g_object_unref (action); - menuitem = g_menu_item_new (label, id); + menuitem = g_menu_item_new (label, NULL); + g_menu_item_set_action_and_target_value (menuitem, id, NULL); g_menu_item_set_attribute (menuitem, "x-canonical-type", "s", "ImSourceMenuItem"); if (icon) { @@ -721,7 +722,7 @@ messaging_menu_app_set_draws_attention (MessagingMenuApp *app, state = g_action_get_state (G_ACTION (action)); g_variant_get (state, "(ux&sb)", &count, &time, &string, NULL); - new_state = g_variant_new ("(uxsb)", count, time, string, TRUE); + new_state = g_variant_new ("(uxsb)", count, time, string, draws_attention); g_simple_action_set_state (action, new_state); g_variant_unref (state); @@ -1195,5 +1196,5 @@ void messaging_menu_app_remove_attention (MessagingMenuApp *app, const gchar *source_id) { - messaging_menu_app_set_draws_attention (app, source_id, TRUE); + messaging_menu_app_set_draws_attention (app, source_id, FALSE); } |