diff options
Diffstat (limited to 'libempathy-gtk/empathy-chat.c')
-rw-r--r-- | libempathy-gtk/empathy-chat.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c index 9e69c733a..52405ec47 100644 --- a/libempathy-gtk/empathy-chat.c +++ b/libempathy-gtk/empathy-chat.c @@ -63,7 +63,7 @@ #define COMPOSING_STOP_TIMEOUT 5 #define GET_PRIV(obj) EMPATHY_GET_PRIV (obj, EmpathyChat) -typedef struct { +struct _EmpathyChatPriv { EmpathyTpChat *tp_chat; TpAccount *account; gchar *id; @@ -138,7 +138,7 @@ typedef struct { * notified again about the already notified pending messages when the * messages in tab will be properly shown */ gboolean retrieving_backlogs; -} EmpathyChatPriv; +}; typedef struct { gchar *text; /* Original message that was specified @@ -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, |