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

« back to all changes in this revision

Viewing changes to tests/backend-mock-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:
44
44
}
45
45
 
46
46
static gboolean
47
 
my_can_reboot (IndicatorSessionActions * self G_GNUC_UNUSED)
48
 
{
49
 
  return g_settings_get_boolean (mock_settings, "can-reboot");
50
 
}
51
 
 
52
 
static gboolean
53
47
my_can_switch (IndicatorSessionActions * self G_GNUC_UNUSED)
54
48
{
55
49
  return g_settings_get_boolean (mock_settings, "can-switch-sessions");
141
135
  g_settings_set_string (mock_settings, "last-command", "settings");
142
136
}
143
137
 
144
 
static void
145
 
my_online_accounts (IndicatorSessionActions * self G_GNUC_UNUSED)
146
 
{
147
 
  g_settings_set_string (mock_settings, "last-command", "online-accounts");
148
 
}
149
 
 
150
138
static gboolean
151
139
my_can_prompt (IndicatorSessionActions * self G_GNUC_UNUSED)
152
140
{
189
177
  actions_class = INDICATOR_SESSION_ACTIONS_CLASS (klass);
190
178
  actions_class->can_lock = my_can_lock;
191
179
  actions_class->can_logout = my_can_logout;
192
 
  actions_class->can_reboot = my_can_reboot;
193
180
  actions_class->can_switch = my_can_switch;
194
181
  actions_class->can_suspend = my_can_suspend;
195
182
  actions_class->can_hibernate = my_can_hibernate;
201
188
  actions_class->reboot = my_reboot;
202
189
  actions_class->power_off = my_power_off;
203
190
  actions_class->settings = my_settings;
204
 
  actions_class->online_accounts = my_online_accounts;
205
191
  actions_class->help = my_help;
206
192
  actions_class->about = my_about;
207
193
  actions_class->switch_to_screensaver = my_switch_to_screensaver;