From: Christian Dywan Date: Sun, 8 Nov 2009 13:35:12 +0000 (+0100) Subject: Ellipsize long panel titles to keep the buttons visible X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f980d5ad91eee45649fec36a66ac49519e51bb15;p=midori Ellipsize long panel titles to keep the buttons visible --- diff --git a/midori/midori-panel.c b/midori/midori-panel.c index 420aa789..9f0447ab 100644 --- a/midori/midori-panel.c +++ b/midori/midori-panel.c @@ -403,6 +403,7 @@ midori_panel_init (MidoriPanel* panel) toolitem = gtk_tool_item_new (); gtk_tool_item_set_expand (toolitem, TRUE); panel->toolbar_label = gtk_label_new (NULL); + gtk_label_set_ellipsize (GTK_LABEL (panel->toolbar_label), PANGO_ELLIPSIZE_END); gtk_misc_set_alignment (GTK_MISC (panel->toolbar_label), 0, 0.5); gtk_container_add (GTK_CONTAINER (toolitem), panel->toolbar_label); gtk_container_set_border_width (GTK_CONTAINER (toolitem), 6);