Ellipsize left status bar text at the middle.
authorDaniel Carl <danielcarl@gmx.de>
Sat, 7 Feb 2015 22:54:35 +0000 (23:54 +0100)
committerDaniel Carl <danielcarl@gmx.de>
Sat, 7 Feb 2015 22:54:35 +0000 (23:54 +0100)
The left part of the statusbar shows the current url or the url under mouse
pointer or focused hint. The previous ellipsize removed the right part of
these URLs which might be interesting. So this is changed to show the left and
right part of the URL to the to domain par as well as the last path or query
part.

src/main.c

index eddabd1..ace1449 100644 (file)
@@ -836,7 +836,7 @@ static void init_core(void)
     gtk_misc_set_alignment(GTK_MISC(gui->statusbar.mode), 0.0, 0.0);
     gtk_misc_set_alignment(GTK_MISC(gui->statusbar.left), 0.0, 0.0);
 #endif
-    gtk_label_set_ellipsize(GTK_LABEL(gui->statusbar.left), PANGO_ELLIPSIZE_END);
+    gtk_label_set_ellipsize(GTK_LABEL(gui->statusbar.left), PANGO_ELLIPSIZE_MIDDLE);
     gtk_box_pack_start(gui->statusbar.box, gui->statusbar.mode, false, true, 0);
     gtk_box_pack_start(gui->statusbar.box, gui->statusbar.left, true, true, 2);
     gtk_box_pack_start(gui->statusbar.box, gui->statusbar.cmd, false, false, 0);