From b2bbeb102c9a2fe3817d01959681a82b6b11d177 Mon Sep 17 00:00:00 2001 From: Diego Escalante Urrelo Date: Sat, 8 Jan 2011 09:26:55 -0500 Subject: 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 --- src/ephy-notebook.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit