~indicator-applet-developers/indicator-session/trunk.15.10

« back to all changes in this revision

Viewing changes to src/backend-dbus/actions.c

  • Committer: Marco Trevisan (Treviño)
  • Date: 2016-04-08 20:34:13 UTC
  • mto: This revision was merged to the branch mainline in revision 470.
  • Revision ID: mail@3v1n0.net-20160408203413-4sc9jtn0sx7wmucl
Ensure we request the UI to verify restart availability when unity proxy connects/disconnects

Show diffs side-by-side

added added

removed removed

Lines of Context:
350
350
    {
351
351
      INDICATOR_SESSION_ACTIONS_DBUS(gself)->priv->end_session_dialog = end_session_dialog;
352
352
 
 
353
      g_signal_connect_swapped (end_session_dialog, "notify::g-name-owner",
 
354
                                G_CALLBACK(indicator_session_actions_notify_can_switch), gself);
 
355
 
353
356
      indicator_session_actions_notify_can_prompt (INDICATOR_SESSION_ACTIONS(gself));
354
357
      indicator_session_actions_notify_can_reboot (INDICATOR_SESSION_ACTIONS(gself));
355
358
    }
388
391
{
389
392
  IndicatorSessionActionsDbus * self = INDICATOR_SESSION_ACTIONS_DBUS(actions);
390
393
  priv_t * p = self->priv;
391
 
  
 
394
 
392
395
  if (g_settings_get_boolean (p->indicator_settings, "suppress-restart-menuitem"))
393
396
    return FALSE;
394
397