diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2005-01-01 05:39:45 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2005-01-01 05:39:45 +0800 |
commit | 040b546a6e265a82700b4659dfec221c38c7d40e (patch) | |
tree | fc8904a7f98d71622436d3df6df7fea96c43ae29 /src | |
parent | 0a1d99faa339cf89c80b156305688ee4901578bb (diff) | |
download | gsoc2013-epiphany-040b546a6e265a82700b4659dfec221c38c7d40e.tar gsoc2013-epiphany-040b546a6e265a82700b4659dfec221c38c7d40e.tar.gz gsoc2013-epiphany-040b546a6e265a82700b4659dfec221c38c7d40e.tar.bz2 gsoc2013-epiphany-040b546a6e265a82700b4659dfec221c38c7d40e.tar.lz gsoc2013-epiphany-040b546a6e265a82700b4659dfec221c38c7d40e.tar.xz gsoc2013-epiphany-040b546a6e265a82700b4659dfec221c38c7d40e.tar.zst gsoc2013-epiphany-040b546a6e265a82700b4659dfec221c38c7d40e.zip |
Use approximate_digit_width, and use a smaller number of chars. From bug
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/ephy-notebook.c | 4 |
1 files changed, 2 insertions, 2 deletions
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", |