gboolean allow_scrolling;
gchar *variant;
gboolean in_construction;
+ gboolean show_avatars;
} EmpathyThemeAdiumPriv;
struct _EmpathyAdiumData {
* will become "Alternating_Messages_-_Blue_Red".
*/
} else if (theme_adium_match (&cur, "%userIcons%")) {
- /* FIXME: mus t be "hideIcons" if use preference is set
- * to hide avatars */
- replace = "showIcons";
+ replace = priv->show_avatars ? "showIcons" : "hideIcons";
} else if (theme_adium_match (&cur, "%messageClasses%")) {
replace = message_classes;
} else if (theme_adium_match (&cur, "%status%")) {
return GTK_WIDGET_CLASS (empathy_theme_adium_parent_class)->button_press_event (widget, event);
}
+static void
+theme_adium_set_show_avatars (EmpathyChatView *view,
+ gboolean show_avatars)
+{
+ EmpathyThemeAdium *theme = EMPATHY_THEME_ADIUM (view);
+ EmpathyThemeAdiumPriv *priv = GET_PRIV (theme);
+
+ priv->show_avatars = show_avatars;
+}
+
static void
theme_adium_iface_init (EmpathyChatViewIface *iface)
{
iface->copy_clipboard = theme_adium_copy_clipboard;
iface->focus_toggled = theme_adium_focus_toggled;
iface->message_acknowledged = theme_adium_message_acknowledged;
+ iface->set_show_avatars = theme_adium_set_show_avatars;
}
static void
priv->allow_scrolling = TRUE;
priv->smiley_manager = empathy_smiley_manager_dup_singleton ();
+ /* Show avatars by default. */
+ priv->show_avatars = TRUE;
+
g_signal_connect (theme, "load-finished",
G_CALLBACK (theme_adium_load_finished_cb),
NULL);