diff options
author | Xavier Claessens <xclaesse@gmail.com> | 2009-03-18 04:18:35 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2009-03-18 04:18:35 +0800 |
commit | c1e9e11bfdd18eb2a92ae2082526264240288310 (patch) | |
tree | e5e83a818eb59f56fee6c528f21f8e948cfc30ac /libempathy-gtk/empathy-theme-boxes.c | |
parent | 4eb2dc84942d6b5b8545667709978b57038e1982 (diff) | |
download | gsoc2013-empathy-c1e9e11bfdd18eb2a92ae2082526264240288310.tar gsoc2013-empathy-c1e9e11bfdd18eb2a92ae2082526264240288310.tar.gz gsoc2013-empathy-c1e9e11bfdd18eb2a92ae2082526264240288310.tar.bz2 gsoc2013-empathy-c1e9e11bfdd18eb2a92ae2082526264240288310.tar.lz gsoc2013-empathy-c1e9e11bfdd18eb2a92ae2082526264240288310.tar.xz gsoc2013-empathy-c1e9e11bfdd18eb2a92ae2082526264240288310.tar.zst gsoc2013-empathy-c1e9e11bfdd18eb2a92ae2082526264240288310.zip |
Correctly get foreground-gdk color
From: Xavier Claessens <xclaesse@gmail.com>
svn path=/trunk/; revision=2711
Diffstat (limited to 'libempathy-gtk/empathy-theme-boxes.c')
-rw-r--r-- | libempathy-gtk/empathy-theme-boxes.c | 8 |
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 */ |