aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-tabs-menu.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-12-14 02:58:58 +0800
committerChristian Persch <chpe@src.gnome.org>2004-12-14 02:58:58 +0800
commit39dad59354eb6d7093c9f95817b5278de9f19982 (patch)
tree50b5ee15fcc46459a98c2267cdfef3712d32c369 /src/ephy-tabs-menu.c
parent43955b584199f99428660d47bc2a7297ffdf763f (diff)
downloadgsoc2013-epiphany-39dad59354eb6d7093c9f95817b5278de9f19982.tar
gsoc2013-epiphany-39dad59354eb6d7093c9f95817b5278de9f19982.tar.gz
gsoc2013-epiphany-39dad59354eb6d7093c9f95817b5278de9f19982.tar.bz2
gsoc2013-epiphany-39dad59354eb6d7093c9f95817b5278de9f19982.tar.lz
gsoc2013-epiphany-39dad59354eb6d7093c9f95817b5278de9f19982.tar.xz
gsoc2013-epiphany-39dad59354eb6d7093c9f95817b5278de9f19982.tar.zst
gsoc2013-epiphany-39dad59354eb6d7093c9f95817b5278de9f19982.zip
Get rid of ephy_string_[elide|double]_underscores(). Remove unnecessary
2004-12-13 Christian Persch <chpe@cvs.gnome.org> * embed/ephy-encodings.c: (elide_underscores), (add_encoding): * embed/mozilla/FilePicker.cpp: * lib/ephy-dnd.c: * lib/ephy-node.c: * lib/ephy-string.c: (ephy_string_blank_chr): * lib/ephy-string.h: * lib/widgets/ephy-node-view.c: * src/ephy-encoding-menu.c: * src/ephy-notebook.c: * src/ephy-session.c: * src/ephy-statusbar.c: * src/ephy-tab.c: (ephy_tab_set_title): * src/ephy-tabs-menu.c: (connect_proxy_cb): * src/ppview-toolbar.c: Get rid of ephy_string_[elide|double]_underscores(). Remove unnecessary ephy-string.h includes.
Diffstat (limited to 'src/ephy-tabs-menu.c')
-rw-r--r--src/ephy-tabs-menu.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/ephy-tabs-menu.c b/src/ephy-tabs-menu.c
index c207f4c95..64b553ec8 100644
--- a/src/ephy-tabs-menu.c
+++ b/src/ephy-tabs-menu.c
@@ -22,7 +22,6 @@
#include "config.h"
#include "ephy-tabs-menu.h"
-#include "ephy-string.h"
#include "ephy-marshal.h"
#include "ephy-shell.h"
#include "ephy-debug.h"
@@ -37,7 +36,7 @@
#include <stdlib.h>
#include <libxml/entities.h>
-#define MAX_LABEL_LENGTH 30
+#define LABEL_WIDTH_CHARS 32
#define EPHY_TABS_MENU_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE ((object), EPHY_TYPE_TABS_MENU, EphyTabsMenuPrivate))
@@ -131,8 +130,13 @@ connect_proxy_cb (GtkActionGroup *action_group,
{
if (GTK_IS_MENU_ITEM (proxy))
{
- gtk_label_set_ellipsize (GTK_LABEL (GTK_BIN (proxy)->child),
- PANGO_ELLIPSIZE_END);
+ GtkLabel *label;
+
+ label = GTK_LABEL (GTK_BIN (proxy)->child);
+
+ gtk_label_set_use_underline (label, FALSE);
+ gtk_label_set_ellipsize (label, PANGO_ELLIPSIZE_END);
+ gtk_label_set_max_width_chars (label, LABEL_WIDTH_CHARS);
}
}