~unity8-desktop-session-team/indicator-session/indicator-session-using-upstart

« back to all changes in this revision

Viewing changes to src/actions.c

  • Committer: Charles Kerr
  • Date: 2013-07-02 00:26:11 UTC
  • mto: This revision was merged to the branch mainline in revision 399.
  • Revision ID: charles.kerr@canonical.com-20130702002611-lhtxz8ouz9uc2ldx
in cmake/Translations.cmake, use the GNUInstallDirs variables

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
  PROP_CAN_SUSPEND,
35
35
  PROP_CAN_LOCK,
36
36
  PROP_CAN_LOGOUT,
37
 
  PROP_CAN_REBOOT,
38
37
  PROP_CAN_PROMPT,
39
38
  PROP_HAS_ONLINE_ACCOUNT_ERROR,
40
39
  PROP_LAST
72
71
        g_value_set_boolean (value, indicator_session_actions_can_logout (self));
73
72
        break;
74
73
 
75
 
      case PROP_CAN_REBOOT:
76
 
        g_value_set_boolean (value, indicator_session_actions_can_reboot (self));
77
 
        break;
78
 
 
79
74
      case PROP_CAN_PROMPT:
80
75
        g_value_set_boolean (value, indicator_session_actions_can_prompt (self));
81
76
        break;
101
96
 
102
97
  klass->can_lock = NULL;
103
98
  klass->can_logout = NULL;
104
 
  klass->can_reboot = NULL;
105
99
  klass->can_switch = NULL;
106
100
  klass->can_suspend = NULL;
107
101
  klass->can_hibernate = NULL;
150
144
                          "Whether or not the system services allow the user to logout",
151
145
                          TRUE, flags);
152
146
 
153
 
  properties[PROP_CAN_REBOOT] =
154
 
    g_param_spec_boolean (INDICATOR_SESSION_ACTIONS_PROP_CAN_REBOOT,
155
 
                          "Can Reboot",
156
 
                          "Whether or not the system services allow the user to reboot",
157
 
                          TRUE, flags);
158
 
 
159
147
  properties[PROP_CAN_PROMPT] =
160
148
    g_param_spec_boolean (INDICATOR_SESSION_ACTIONS_PROP_CAN_PROMPT,
161
149
                          "Can Show End Session Dialog",
198
186
}
199
187
 
200
188
gboolean
201
 
indicator_session_actions_can_reboot (IndicatorSessionActions * self)
202
 
{
203
 
  g_return_val_if_fail (INDICATOR_IS_SESSION_ACTIONS (self), FALSE);
204
 
 
205
 
  return INDICATOR_SESSION_ACTIONS_GET_CLASS (self)->can_reboot (self);
206
 
}
207
 
 
208
 
gboolean
209
189
indicator_session_actions_can_switch (IndicatorSessionActions * self)
210
190
{
211
191
  g_return_val_if_fail (INDICATOR_IS_SESSION_ACTIONS (self), FALSE);
250
230
***/
251
231
 
252
232
void
253
 
indicator_session_actions_online_accounts (IndicatorSessionActions * self)
254
 
{
255
 
  g_return_if_fail (INDICATOR_IS_SESSION_ACTIONS (self));
256
 
 
257
 
  INDICATOR_SESSION_ACTIONS_GET_CLASS (self)->online_accounts (self);
258
 
}
259
 
 
260
 
void
261
233
indicator_session_actions_settings (IndicatorSessionActions * self)
262
234
{
263
235
  g_return_if_fail (INDICATOR_IS_SESSION_ACTIONS (self));
381
353
}
382
354
 
383
355
void
384
 
indicator_session_actions_notify_can_reboot (IndicatorSessionActions * self)
385
 
{
386
 
  notify_func (self, PROP_CAN_REBOOT);
387
 
}
388
 
 
389
 
void
390
356
indicator_session_actions_notify_can_switch (IndicatorSessionActions * self)
391
357
{
392
358
  notify_func (self, PROP_CAN_SWITCH);