From 040b546a6e265a82700b4659dfec221c38c7d40e Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Fri, 31 Dec 2004 21:39:45 +0000 Subject: Use approximate_digit_width, and use a smaller number of chars. From bug 2004-12-31 Christian Persch * src/ephy-notebook.c: (tab_label_style_set_cb): Use approximate_digit_width, and use a smaller number of chars. From bug #153725. --- src/ephy-notebook.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ephy-notebook.c') diff --git a/src/ephy-notebook.c b/src/ephy-notebook.c index fe10ca09b..a3cae94cf 100644 --- a/src/ephy-notebook.c +++ b/src/ephy-notebook.c @@ -52,7 +52,7 @@ #include #include -#define TAB_WIDTH_N_CHARS 20 +#define TAB_WIDTH_N_CHARS 15 #define AFTER_ALL_TABS -1 #define NOT_IN_APP_WINDOWS -2 @@ -823,7 +823,7 @@ tab_label_style_set_cb (GtkWidget *label, label->style->font_desc, pango_context_get_language (context)); - char_width = pango_font_metrics_get_approximate_char_width (metrics); + char_width = pango_font_metrics_get_approximate_digit_width (metrics); pango_font_metrics_unref (metrics); LOG ("tab_label_size_request_cb label %p char_width %d total %d", -- cgit v1.2.3