From bbe2b5bf9901099d93388ffdac41afce0a6f96e2 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sun, 17 Dec 2006 19:06:33 +0000 Subject: Fix secure location bar colouring with dark themes. Bug #347343, patch by 2006-12-17 Christian Persch * lib/widgets/ephy-location-entry.c: (ephy_location_entry_style_set): Fix secure location bar colouring with dark themes. Bug #347343, patch by Diego Escalante Urrelo. --- lib/widgets/ephy-location-entry.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/widgets/ephy-location-entry.c b/lib/widgets/ephy-location-entry.c index 963e4938d..1a5247927 100644 --- a/lib/widgets/ephy-location-entry.c +++ b/lib/widgets/ephy-location-entry.c @@ -107,6 +107,7 @@ static const GtkTargetEntry url_drag_types [] = }; static const GdkColor fallback_bg_colour = { 0, 0xf7f7, 0xf7f7, 0xbebe }; /* yellow-ish */ +static const GdkColor fallback_fg_colour = { 0, 0, 0, 0 }; /* black */ static void ephy_location_entry_class_init (EphyLocationEntryClass *klass); static void ephy_location_entry_init (EphyLocationEntry *le); @@ -208,8 +209,7 @@ ephy_location_entry_style_set (GtkWidget *widget, } else { - /* FIXME: fall back to black text maybe? */ - priv->secure_fg_colour = widget->style->text[GTK_STATE_NORMAL]; + priv->secure_fg_colour = fallback_fg_colour; } if (bg_colour != NULL) -- cgit