diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | src/ephy-notebook.c | 4 |
2 files changed, 9 insertions, 2 deletions
@@ -1,5 +1,12 @@ 2004-12-31 Christian Persch <chpe@cvs.gnome.org> + * src/ephy-notebook.c: (tab_label_style_set_cb): + + Use approximate_digit_width, and use a smaller number of chars. + From bug #153725. + +2004-12-31 Christian Persch <chpe@cvs.gnome.org> + * embed/mozilla/EphyBrowser.h: Fix compilation in the !HAVE_MOZILLA_PSM case. 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 <glib/gi18n.h> #include <libgnomevfs/gnome-vfs-uri.h> -#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", |