aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2004-07-01 01:59:32 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2004-07-01 01:59:32 +0800
commitbca7f0c0b59fc4f0c15daf830b7fc760bebeebd7 (patch)
tree40899f0a63b0886b2e0f232aef332a101a46129d /src
parent6ba68abe9e5b0cbc1036e616ded7919546140bac (diff)
downloadgsoc2013-epiphany-bca7f0c0b59fc4f0c15daf830b7fc760bebeebd7.tar
gsoc2013-epiphany-bca7f0c0b59fc4f0c15daf830b7fc760bebeebd7.tar.gz
gsoc2013-epiphany-bca7f0c0b59fc4f0c15daf830b7fc760bebeebd7.tar.bz2
gsoc2013-epiphany-bca7f0c0b59fc4f0c15daf830b7fc760bebeebd7.tar.lz
gsoc2013-epiphany-bca7f0c0b59fc4f0c15daf830b7fc760bebeebd7.tar.xz
gsoc2013-epiphany-bca7f0c0b59fc4f0c15daf830b7fc760bebeebd7.tar.zst
gsoc2013-epiphany-bca7f0c0b59fc4f0c15daf830b7fc760bebeebd7.zip
Change tabs sizing again. Now we use a width of 20 (estimated) chars.
2004-06-30 Marco Pesenti Gritti <marco@gnome.org> * src/ephy-notebook.c: Change tabs sizing again. Now we use a width of 20 (estimated) chars.
Diffstat (limited to 'src')
-rw-r--r--src/ephy-notebook.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/ephy-notebook.c b/src/ephy-notebook.c
index cd61994bc..cbe261eb0 100644
--- a/src/ephy-notebook.c
+++ b/src/ephy-notebook.c
@@ -52,6 +52,8 @@
#include <glib/gi18n.h>
#include <libgnomevfs/gnome-vfs-uri.h>
+#define TAB_WIDTH_N_CHARS 20
+
#define AFTER_ALL_TABS -1
#define NOT_IN_APP_WINDOWS -2
@@ -810,8 +812,6 @@ close_button_clicked_cb (GtkWidget *widget, GtkWidget *tab)
}
}
-#define TAB_MIN_WIDTH_N_CHARS 8
-
static void
tab_label_style_set_cb (GtkWidget *label,
GtkStyle *previous_style,
@@ -830,12 +830,12 @@ tab_label_style_set_cb (GtkWidget *label,
pango_font_metrics_unref (metrics);
LOG ("tab_label_size_request_cb label %p char_width %d total %d",
- label, char_width, TAB_MIN_WIDTH_N_CHARS * PANGO_PIXELS (char_width))
+ label, char_width, TAB_WIDTH_N_CHARS * PANGO_PIXELS (char_width))
gtk_icon_size_lookup (GTK_ICON_SIZE_MENU, &w, &h);
gtk_widget_set_size_request
- (hbox, TAB_MIN_WIDTH_N_CHARS * PANGO_PIXELS(char_width) + 2 * w, -1);
+ (hbox, TAB_WIDTH_N_CHARS * PANGO_PIXELS(char_width) + 2 * w, -1);
}
static GtkWidget *
@@ -941,8 +941,6 @@ ephy_notebook_add_tab (EphyNotebook *nb,
gtk_notebook_insert_page (GTK_NOTEBOOK (nb), GTK_WIDGET (tab),
label, position);
- gtk_notebook_set_tab_label_packing (GTK_NOTEBOOK (nb), GTK_WIDGET (tab),
- TRUE, TRUE, GTK_PACK_START);
/* Set up drag-and-drop target */
g_signal_connect (G_OBJECT(label), "drag_data_received",