]> spindle.queued.net Git - midori/commitdiff
Ellipsize long panel titles to keep the buttons visible
authorChristian Dywan <christian@twotoasts.de>
Sun, 8 Nov 2009 13:35:12 +0000 (14:35 +0100)
committerChristian Dywan <christian@twotoasts.de>
Sun, 8 Nov 2009 13:39:46 +0000 (14:39 +0100)
midori/midori-panel.c

index 420aa78961f1a03aa17e32aa01686f7395c8763d..9f0447abebfff6cd5135019ad723fc64da306bd8 100644 (file)
@@ -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);