diff options
author | Diego Escalante Urrelo <descalante@igalia.com> | 2011-01-08 22:26:55 +0800 |
---|---|---|
committer | Diego Escalante Urrelo <descalante@igalia.com> | 2011-01-11 09:01:02 +0800 |
commit | b2bbeb102c9a2fe3817d01959681a82b6b11d177 (patch) | |
tree | 11fae6294f94eadf8d12b1030dc0e9acb650fcbb /src | |
parent | 0205afea985c753c6400eba9634f679863d085c0 (diff) | |
download | gsoc2013-epiphany-b2bbeb102c9a2fe3817d01959681a82b6b11d177.tar.gz 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 'src')
-rw-r--r-- | src/ephy-notebook.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ephy-notebook.c b/src/ephy-notebook.c index e06bae075..81dc7ca12 100644 --- a/src/ephy-notebook.c +++ b/src/ephy-notebook.c @@ -562,7 +562,7 @@ tab_label_style_set_cb (GtkWidget *hbox, context = gtk_widget_get_pango_context (hbox); style = gtk_widget_get_style_context (hbox); 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); pango_font_metrics_unref (metrics); |