aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2011-10-13 01:12:53 +0800
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>2011-10-13 01:12:53 +0800
commite183d9ce5f26991e7a1271b870010d1fb56c56a0 (patch)
tree480397285bb63612f52ab2a57e5620964bea7802
parent8176b8a7121bf2bcfbc07cd939b266db59c924c6 (diff)
downloadgsoc2013-empathy-e183d9ce5f26991e7a1271b870010d1fb56c56a0.tar
gsoc2013-empathy-e183d9ce5f26991e7a1271b870010d1fb56c56a0.tar.gz
gsoc2013-empathy-e183d9ce5f26991e7a1271b870010d1fb56c56a0.tar.bz2
gsoc2013-empathy-e183d9ce5f26991e7a1271b870010d1fb56c56a0.tar.lz
gsoc2013-empathy-e183d9ce5f26991e7a1271b870010d1fb56c56a0.tar.xz
gsoc2013-empathy-e183d9ce5f26991e7a1271b870010d1fb56c56a0.tar.zst
gsoc2013-empathy-e183d9ce5f26991e7a1271b870010d1fb56c56a0.zip
Make sure we have our settings before we want to use them
-rw-r--r--src/empathy-call-window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index c835d4c07..0a130c4f8 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -1638,6 +1638,8 @@ empathy_call_window_init (EmpathyCallWindow *self)
priv = self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self,
EMPATHY_TYPE_CALL_WINDOW, EmpathyCallWindowPriv);
+ priv->settings = g_settings_new (EMPATHY_PREFS_CALL_SCHEMA);
+
filename = empathy_file_lookup ("empathy-call-window.ui", "src");
gui = empathy_builder_get_file (filename,
"call_window_vbox", &top_vbox,
@@ -1875,8 +1877,6 @@ empathy_call_window_init (EmpathyCallWindow *self)
empathy_call_window_show_hangup_button (self, TRUE);
- priv->settings = g_settings_new (EMPATHY_PREFS_CALL_SCHEMA);
-
/* Retrieve initial volume */
priv->volume = g_settings_get_double (priv->settings,
EMPATHY_PREFS_CALL_SOUND_VOLUME) / 100.0;