Show translated names in first item of paths in change folder dialog
[modest] / src / widgets / modest-compact-mail-header-view.c
index ee661a4..8c45e07 100644 (file)
@@ -697,7 +697,7 @@ update_style (ModestCompactMailHeaderView *self)
        g_return_if_fail (MODEST_IS_COMPACT_MAIL_HEADER_VIEW (self));
        priv = MODEST_COMPACT_MAIL_HEADER_VIEW_GET_PRIVATE (self);
 
-       if (gtk_style_lookup_color (GTK_WIDGET (self)->style, "SecondaryTextColor", &style_color)) {
+       if (gtk_style_lookup_color (gtk_widget_get_style (GTK_WIDGET (self)), "SecondaryTextColor", &style_color)) {
                color.red = style_color.red;
                color.green = style_color.green;
                color.blue = style_color.blue;
@@ -732,7 +732,9 @@ update_style (ModestCompactMailHeaderView *self)
        }
        pango_attr_list_unref (attr_list);
 
+#ifdef MODEST_COMPACT_HEADER_BG
        gdk_color_parse (MODEST_COMPACT_HEADER_BG, &bg_color);
+#endif
        gtk_widget_modify_bg (GTK_WIDGET (priv->event_box), GTK_STATE_NORMAL, &bg_color);
 }