[totem] main: Process early options
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] main: Process early options
- Date: Wed, 28 Mar 2012 15:20:27 +0000 (UTC)
commit 2d2cd99e3e467ce3621de1fa997c12ddcd072a28
Author: Bastien Nocera <hadess hadess net>
Date: Wed Mar 28 14:56:09 2012 +0200
main: Process early options
Seems that we forgot to do that for a while
src/totem.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/totem.c b/src/totem.c
index c553d5a..d5270bf 100644
--- a/src/totem.c
+++ b/src/totem.c
@@ -82,9 +82,6 @@ app_init (Totem *totem, char **argv)
{
char *sidebar_pageid;
- /* Settings */
- totem->settings = g_settings_new (TOTEM_GSETTINGS_SCHEMA);
-
/* Debug log handling */
g_log_set_handler (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, (GLogFunc) debug_handler, totem->settings);
@@ -226,6 +223,8 @@ app_command_line (GApplication *app,
}
g_option_context_free (context);
+ totem_options_process_early (totem, &optionstate);
+
/* Don't create another window if we're remote.
* We can't use g_application_get_is_remote() because it's not registered yet */
if (startup_called != FALSE) {
@@ -275,9 +274,9 @@ main (int argc, char **argv)
gtk_settings = gtk_settings_get_default ();
g_object_set (G_OBJECT (gtk_settings), "gtk-application-prefer-dark-theme", TRUE, NULL);
-
/* Build the main Totem object */
totem = g_object_new (TOTEM_TYPE_OBJECT, NULL);
+ totem->settings = g_settings_new (TOTEM_GSETTINGS_SCHEMA);
totem->app = gtk_application_new ("org.gnome.Totem", G_APPLICATION_HANDLES_COMMAND_LINE);
g_signal_connect (G_OBJECT (totem->app), "startup",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]