aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-01-01 05:39:45 +0800
committerChristian Persch <chpe@src.gnome.org>2005-01-01 05:39:45 +0800
commit040b546a6e265a82700b4659dfec221c38c7d40e (patch)
treefc8904a7f98d71622436d3df6df7fea96c43ae29
parent0a1d99faa339cf89c80b156305688ee4901578bb (diff)
downloadgsoc2013-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.
-rw-r--r--ChangeLog7
-rw-r--r--src/ephy-notebook.c4
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 9d0d986c5..1a4430213 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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",