diff options
author | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2010-06-20 00:49:45 +0800 |
---|---|---|
committer | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2010-06-20 00:50:25 +0800 |
commit | c39c07e8c009170514ebcdfa0d9a639d673ee604 (patch) | |
tree | 8ef1e74624ff264356d620ffd9882ba593504f02 /libempathy-gtk/empathy-chat.c | |
parent | 48d30c3fabc70f012542ffe6c67742f6a39c8f10 (diff) | |
download | gsoc2013-empathy-c39c07e8c009170514ebcdfa0d9a639d673ee604.tar gsoc2013-empathy-c39c07e8c009170514ebcdfa0d9a639d673ee604.tar.gz gsoc2013-empathy-c39c07e8c009170514ebcdfa0d9a639d673ee604.tar.bz2 gsoc2013-empathy-c39c07e8c009170514ebcdfa0d9a639d673ee604.tar.lz gsoc2013-empathy-c39c07e8c009170514ebcdfa0d9a639d673ee604.tar.xz gsoc2013-empathy-c39c07e8c009170514ebcdfa0d9a639d673ee604.tar.zst gsoc2013-empathy-c39c07e8c009170514ebcdfa0d9a639d673ee604.zip |
Use the right GSettings scheme
Diffstat (limited to 'libempathy-gtk/empathy-chat.c')
-rw-r--r-- | libempathy-gtk/empathy-chat.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c index 220cca5d1..52405ec47 100644 --- a/libempathy-gtk/empathy-chat.c +++ b/libempathy-gtk/empathy-chat.c @@ -2420,18 +2420,18 @@ conf_spell_checking_cb (GSettings *gsettings_chat, } static gboolean -chat_hpaned_pos_changed_cb (GtkWidget* hpaned, gpointer user_data) +chat_hpaned_pos_changed_cb (GtkWidget* hpaned, + GParamSpec *spec, + gpointer user_data) { - GSettings *gsettings_chat = g_settings_new (EMPATHY_PREFS_CHAT_SCHEMA); + EmpathyChat *chat = EMPATHY_CHAT (user_data); gint hpaned_pos; hpaned_pos = gtk_paned_get_position (GTK_PANED(hpaned)); - g_settings_set_int (gsettings_chat, + g_settings_set_int (chat->priv->gsettings_ui, EMPATHY_PREFS_UI_CHAT_WINDOW_PANED_POS, hpaned_pos); - g_object_unref (gsettings_chat); - return TRUE; } @@ -2529,7 +2529,7 @@ chat_create_ui (EmpathyChat *chat) g_signal_connect (priv->hpaned, "notify::position", G_CALLBACK (chat_hpaned_pos_changed_cb), - NULL); + chat); /* Load the paned position */ paned_pos = g_settings_get_int (priv->gsettings_ui, |