~larsu/indicator-messages/set-status-return-value

« back to all changes in this revision

Viewing changes to src/im-application-list.c

  • Committer: Tarmac
  • Author(s): Lars Uebernickel
  • Date: 2013-09-26 16:48:18 UTC
  • mfrom: (379.2.1 trunk)
  • Revision ID: tarmac-20130926164818-z9zadx243l9kvmvd
im-application-list: show all sources that have a count, time, or non-empty string. Fixes: https://bugs.launchpad.net/bugs/1231435.

Approved by Sebastien Bacher, PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
830
830
  g_action_group_change_action_state (G_ACTION_GROUP (app->source_actions), id,
831
831
                                      g_variant_new ("(uxsb)", count, time, string, draws_attention));
832
832
 
833
 
  visible = count > 0;
 
833
  visible = count > 0 || time != 0 || (string != NULL && string[0] != '\0');
834
834
 
835
835
  g_signal_emit (app->list, signals[SOURCE_CHANGED], 0, app->id, id, label, serialized_icon, visible);
836
836