aboutsummaryrefslogtreecommitdiffstats
path: root/lib/widgets
diff options
context:
space:
mode:
authorDiego Escalante Urrelo <descalante@igalia.com>2011-01-08 22:26:55 +0800
committerDiego Escalante Urrelo <descalante@igalia.com>2011-01-11 09:01:02 +0800
commitb2bbeb102c9a2fe3817d01959681a82b6b11d177 (patch)
tree11fae6294f94eadf8d12b1030dc0e9acb650fcbb /lib/widgets
parent0205afea985c753c6400eba9634f679863d085c0 (diff)
downloadgsoc2013-epiphany-b2bbeb102c9a2fe3817d01959681a82b6b11d177.tar
gsoc2013-epiphany-b2bbeb102c9a2fe3817d01959681a82b6b11d177.tar.gz
gsoc2013-epiphany-b2bbeb102c9a2fe3817d01959681a82b6b11d177.tar.bz2
gsoc2013-epiphany-b2bbeb102c9a2fe3817d01959681a82b6b11d177.tar.lz
gsoc2013-epiphany-b2bbeb102c9a2fe3817d01959681a82b6b11d177.tar.xz
gsoc2013-epiphany-b2bbeb102c9a2fe3817d01959681a82b6b11d177.tar.zst
gsoc2013-epiphany-b2bbeb102c9a2fe3817d01959681a82b6b11d177.zip
Use the new GTK_STATE_FLAG_NORMAL flag
Until 2.99.0 GtkStyleContext didn't have a "normal" flag, the closest thing was GTK_STATE_FLAG_ACTIVE, but it is not necessarily correct. Bug #636501
Diffstat (limited to 'lib/widgets')
-rw-r--r--lib/widgets/ephy-location-entry.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/widgets/ephy-location-entry.c b/lib/widgets/ephy-location-entry.c
index f7ea32e97..8624363b1 100644
--- a/lib/widgets/ephy-location-entry.c
+++ b/lib/widgets/ephy-location-entry.c
@@ -791,7 +791,7 @@ favicon_create_drag_surface (EphyLocationEntry *entry,
style = gtk_widget_get_style_context (priv->entry);
metrics = pango_context_get_metrics (context,
- gtk_style_context_get_font (style, GTK_STATE_FLAG_ACTIVE),
+ gtk_style_context_get_font (style, GTK_STATE_FLAG_NORMAL),
pango_context_get_language (context));
char_width = pango_font_metrics_get_approximate_digit_width (metrics);
@@ -1572,13 +1572,13 @@ ephy_location_entry_set_secure (EphyLocationEntry *entry,
/* We have to set the color of the GtkEntry in the EphyIconEntry */
if (priv->secure && priv->apply_colors)
{
- gtk_widget_override_color (gentry, GTK_STATE_FLAG_ACTIVE, &priv->secure_fg_color);
- gtk_widget_override_background_color (gentry, GTK_STATE_FLAG_ACTIVE, &priv->secure_bg_color);
+ gtk_widget_override_color (gentry, GTK_STATE_FLAG_NORMAL, &priv->secure_fg_color);
+ gtk_widget_override_background_color (gentry, GTK_STATE_FLAG_NORMAL, &priv->secure_bg_color);
}
else
{
- gtk_widget_override_color (gentry, GTK_STATE_FLAG_ACTIVE, NULL);
- gtk_widget_override_background_color (gentry, GTK_STATE_FLAG_ACTIVE, NULL);
+ gtk_widget_override_color (gentry, GTK_STATE_FLAG_NORMAL, NULL);
+ gtk_widget_override_background_color (gentry, GTK_STATE_FLAG_NORMAL, NULL);
}
gtk_widget_queue_draw (widget);
}