diff options
author | Will Thompson <will.thompson@collabora.co.uk> | 2010-04-28 19:34:58 +0800 |
---|---|---|
committer | Will Thompson <will.thompson@collabora.co.uk> | 2010-04-28 19:34:58 +0800 |
commit | 4354a8d3b0f7eabcafe3a4a4a56cc12d4335e635 (patch) | |
tree | 2387d9ae2138e733f6d4ec791e2de2b8d53ac8ed | |
parent | 857837c539058df84e398d482b24de3b71e2469a (diff) | |
download | gsoc2013-empathy-4354a8d3b0f7eabcafe3a4a4a56cc12d4335e635.tar gsoc2013-empathy-4354a8d3b0f7eabcafe3a4a4a56cc12d4335e635.tar.gz gsoc2013-empathy-4354a8d3b0f7eabcafe3a4a4a56cc12d4335e635.tar.bz2 gsoc2013-empathy-4354a8d3b0f7eabcafe3a4a4a56cc12d4335e635.tar.lz gsoc2013-empathy-4354a8d3b0f7eabcafe3a4a4a56cc12d4335e635.tar.xz gsoc2013-empathy-4354a8d3b0f7eabcafe3a4a4a56cc12d4335e635.tar.zst gsoc2013-empathy-4354a8d3b0f7eabcafe3a4a4a56cc12d4335e635.zip |
Always show avatars in "Boxes" C theme
Previously, avatars were only shown in the conversation window if they
were shown in the contact list. It's not an obvious connection — I had
to look at the source to figure it out — and also I'd argue that if
anything, you're more likely to want avatars in the conversation window
if you don't have them in the contact list, because you won't ever see
them otherwise. (Or, that's what I found. :))
I left the boolean in place, forcing it to TRUE, so that if someone
feels like it they can add a tickybox to the Theme tab in Preferences.
-rw-r--r-- | libempathy-gtk/empathy-theme-boxes.c | 37 |
1 files changed, 4 insertions, 33 deletions
diff --git a/libempathy-gtk/empathy-theme-boxes.c b/libempathy-gtk/empathy-theme-boxes.c index 3a600a81d..29fb934f4 100644 --- a/libempathy-gtk/empathy-theme-boxes.c +++ b/libempathy-gtk/empathy-theme-boxes.c @@ -47,7 +47,6 @@ #define GET_PRIV(obj) EMPATHY_GET_PRIV (obj, EmpathyThemeBoxes) typedef struct { gboolean show_avatars; - guint notify_show_avatars_id; } EmpathyThemeBoxesPriv; G_DEFINE_TYPE (EmpathyThemeBoxes, empathy_theme_boxes, EMPATHY_TYPE_CHAT_TEXT_VIEW); @@ -362,27 +361,6 @@ theme_boxes_append_message (EmpathyChatTextView *view, } static void -theme_boxes_notify_show_avatars_cb (EmpathyConf *conf, - const gchar *key, - gpointer user_data) -{ - EmpathyThemeBoxesPriv *priv = GET_PRIV (user_data); - - empathy_conf_get_bool (conf, key, &priv->show_avatars); -} - -static void -theme_boxes_finalize (GObject *object) -{ - EmpathyThemeBoxesPriv *priv = GET_PRIV (object); - - empathy_conf_notify_remove (empathy_conf_get (), - priv->notify_show_avatars_id); - - G_OBJECT_CLASS (empathy_theme_boxes_parent_class)->finalize (object); -} - -static void empathy_theme_boxes_class_init (EmpathyThemeBoxesClass *class) { GObjectClass *object_class; @@ -391,7 +369,6 @@ empathy_theme_boxes_class_init (EmpathyThemeBoxesClass *class) object_class = G_OBJECT_CLASS (class); chat_text_view_class = EMPATHY_CHAT_TEXT_VIEW_CLASS (class); - object_class->finalize = theme_boxes_finalize; chat_text_view_class->append_message = theme_boxes_append_message; g_type_class_add_private (object_class, sizeof (EmpathyThemeBoxesPriv)); @@ -405,17 +382,11 @@ empathy_theme_boxes_init (EmpathyThemeBoxes *theme) theme->priv = priv; - theme_boxes_create_tags (theme); - - priv->notify_show_avatars_id = - empathy_conf_notify_add (empathy_conf_get (), - EMPATHY_PREFS_UI_SHOW_AVATARS, - theme_boxes_notify_show_avatars_cb, - theme); + /* This is just hard-coded to TRUE until someone adds a tickybox in the + * Theme tab for it. */ + priv->show_avatars = TRUE; - empathy_conf_get_bool (empathy_conf_get (), - EMPATHY_PREFS_UI_SHOW_AVATARS, - &priv->show_avatars); + theme_boxes_create_tags (theme); /* Define margin */ g_object_set (theme, |