summaryrefslogtreecommitdiff
path: root/mate-session/gsm-app.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2013-11-06 10:17:31 -0800
committerStefano Karapetsas <[email protected]>2013-11-06 10:17:31 -0800
commitc17333cbd562c8021ad152b6a41d7eaa46617719 (patch)
tree06c2a96f31377d1413b647c0900a50dfcc17e4d7 /mate-session/gsm-app.c
parente7f6acc91eb1321bdb8fcb77194c18365a7d680a (diff)
parent2c5a103b59a53d5fb586572e38d65e7afb5ecb44 (diff)
downloadmate-session-manager-c17333cbd562c8021ad152b6a41d7eaa46617719.tar.bz2
mate-session-manager-c17333cbd562c8021ad152b6a41d7eaa46617719.tar.xz
Merge pull request #35 from NiceandGently/master
session: support_autostart_delay
Diffstat (limited to 'mate-session/gsm-app.c')
-rw-r--r--mate-session/gsm-app.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/mate-session/gsm-app.c b/mate-session/gsm-app.c
index cae685c..9b3ea39 100644
--- a/mate-session/gsm-app.c
+++ b/mate-session/gsm-app.c
@@ -246,6 +246,7 @@ gsm_app_class_init (GsmAppClass *klass)
klass->impl_get_autorestart = NULL;
klass->impl_provides = NULL;
klass->impl_is_running = NULL;
+ klass->impl_peek_autostart_delay = NULL;
g_object_class_install_property (object_class,
PROP_PHASE,
@@ -442,6 +443,18 @@ gsm_app_registered (GsmApp *app)
g_signal_emit (app, signals[REGISTERED], 0);
}
+int
+gsm_app_peek_autostart_delay (GsmApp *app)
+{
+ g_return_val_if_fail (GSM_IS_APP (app), FALSE);
+
+ if (GSM_APP_GET_CLASS (app)->impl_peek_autostart_delay) {
+ return GSM_APP_GET_CLASS (app)->impl_peek_autostart_delay (app);
+ } else {
+ return 0;
+ }
+}
+
void
gsm_app_exited (GsmApp *app)
{