~larsu/indicator-messages/lp1215644

« back to all changes in this revision

Viewing changes to src/im-phone-menu.c

  • Committer: Tarmac
  • Author(s): Lars Uebernickel
  • Date: 2013-08-28 17:20:09 UTC
  • mfrom: (365.2.1 trunk)
  • Revision ID: tarmac-20130828172009-8jdhs0swq04w6wse
Don't pass source and message ids into parameters that expect detailed action names.

Approved by Ted Gould, PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
170
170
 
171
171
  action_name = g_strconcat (app_id, ".msg.", id, NULL);
172
172
 
173
 
  item = g_menu_item_new (title, action_name);
 
173
  item = g_menu_item_new (title, NULL);
 
174
  g_menu_item_set_action_and_target_value (item, action_name, NULL);
174
175
 
175
176
  g_menu_item_set_attribute (item, "x-canonical-type", "s", "com.canonical.indicator.messages.messageitem");
176
177
  g_menu_item_set_attribute (item, "x-canonical-message-id", "s", id);
232
233
 
233
234
  action_name = g_strconcat (app_id, ".src.", id, NULL);
234
235
 
235
 
  item = g_menu_item_new (label, action_name);
 
236
  item = g_menu_item_new (label, NULL);
 
237
  g_menu_item_set_action_and_target_value (item, action_name, NULL);
236
238
  g_menu_item_set_attribute (item, "x-canonical-type", "s", "com.canonical.indicator.messages.sourceitem");
237
239
 
238
240
  if (iconstr)