summaryrefslogtreecommitdiff
path: root/mate-session/gsm-app.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2013-10-31 01:39:36 +0100
committerraveit65 <[email protected]>2013-10-31 01:39:36 +0100
commit2c5a103b59a53d5fb586572e38d65e7afb5ecb44 (patch)
tree781ccfa5479336982d95ff2e2b418e912b87f29b /mate-session/gsm-app.c
parent6c8051b0d0c020a450a9cfe43600444f4d600d1c (diff)
downloadmate-session-manager-2c5a103b59a53d5fb586572e38d65e7afb5ecb44.tar.bz2
mate-session-manager-2c5a103b59a53d5fb586572e38d65e7afb5ecb44.tar.xz
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)
{