[rhythmbox] application: register with session manager and try to quit on shutdown
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] application: register with session manager and try to quit on shutdown
- Date: Fri, 5 Apr 2013 12:38:26 +0000 (UTC)
commit 75d8046cb81414434fd01011ba76a5b00b94f434
Author: Jonathan Matthew <jonathan d14n org>
Date: Fri Apr 5 22:35:19 2013 +1000
application: register with session manager and try to quit on shutdown
With this it might be possible to just log out or shut down and have
rhythmdb save itself appropriately. Maybe.
shell/rb-application.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/shell/rb-application.c b/shell/rb-application.c
index 3f8eff6..298f044 100644
--- a/shell/rb-application.c
+++ b/shell/rb-application.c
@@ -447,6 +447,7 @@ impl_shutdown (GApplication *app)
RBApplication *rb = RB_APPLICATION (app);
if (rb->priv->shell != NULL) {
+ rb_shell_quit (rb->priv->shell, NULL);
g_object_unref (rb->priv->shell);
rb->priv->shell = NULL;
}
@@ -631,6 +632,8 @@ rb_application_run (RBApplication *rb, int argc, char **argv)
else
rb_debug_init (debug);
+ g_object_set (rb, "register-session", !rb->priv->no_registration, NULL);
+
return g_application_run (G_APPLICATION (rb), nargc, nargv);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]