aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-theme-boxes.c
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy-gtk/empathy-theme-boxes.c')
-rw-r--r--libempathy-gtk/empathy-theme-boxes.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/libempathy-gtk/empathy-theme-boxes.c b/libempathy-gtk/empathy-theme-boxes.c
index 458543fa4..0561ecac0 100644
--- a/libempathy-gtk/empathy-theme-boxes.c
+++ b/libempathy-gtk/empathy-theme-boxes.c
@@ -275,10 +275,12 @@ theme_boxes_maybe_append_header (EmpathyThemeBoxes *theme,
tag = gtk_text_tag_table_lookup (table, EMPATHY_THEME_BOXES_TAG_HEADER);
g_object_get (tag, "foreground-set", &color_set, NULL);
if (color_set) {
- GdkColor color;
+ GdkColor *color;
+
g_object_get (tag, "foreground-gdk", &color, NULL);
- gtk_widget_modify_fg (label1, GTK_STATE_NORMAL, &color);
- gtk_widget_modify_fg (label2, GTK_STATE_NORMAL, &color);
+ gtk_widget_modify_fg (label1, GTK_STATE_NORMAL, color);
+ gtk_widget_modify_fg (label2, GTK_STATE_NORMAL, color);
+ gdk_color_free (color);
}
/* Pack labels into the box */