aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2006-12-18 03:06:33 +0800
committerChristian Persch <chpe@src.gnome.org>2006-12-18 03:06:33 +0800
commitbbe2b5bf9901099d93388ffdac41afce0a6f96e2 (patch)
tree5e34b53a0d331e12330dcce016e8bf41aec406f0
parent405789297075e4e3a31e347ef9e002c66e198550 (diff)
downloadgsoc2013-epiphany-bbe2b5bf9901099d93388ffdac41afce0a6f96e2.tar
gsoc2013-epiphany-bbe2b5bf9901099d93388ffdac41afce0a6f96e2.tar.gz
gsoc2013-epiphany-bbe2b5bf9901099d93388ffdac41afce0a6f96e2.tar.bz2
gsoc2013-epiphany-bbe2b5bf9901099d93388ffdac41afce0a6f96e2.tar.lz
gsoc2013-epiphany-bbe2b5bf9901099d93388ffdac41afce0a6f96e2.tar.xz
gsoc2013-epiphany-bbe2b5bf9901099d93388ffdac41afce0a6f96e2.tar.zst
gsoc2013-epiphany-bbe2b5bf9901099d93388ffdac41afce0a6f96e2.zip
Fix secure location bar colouring with dark themes. Bug #347343, patch by
2006-12-17 Christian Persch <chpe@cvs.gnome.org> * 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.
-rw-r--r--ChangeLog8
-rw-r--r--lib/widgets/ephy-location-entry.c4
2 files changed, 10 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 08ef78b09..bfcf0abe8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
2006-12-17 Christian Persch <chpe@cvs.gnome.org>
+ * 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.
+
+2006-12-17 Christian Persch <chpe@cvs.gnome.org>
+
* data/Makefile.am:
* src/Makefile.am:
* src/window-commands.c: (window_cmd_help_about):
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)