From 2e650251cc431d3a43936e3a71ceb66c1863b7cb Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Sat, 7 Feb 2015 23:54:35 +0100 Subject: [PATCH] Ellipsize left status bar text at the middle. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index eddabd1..ace1449 100644 --- a/src/main.c +++ b/src/main.c @@ -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); -- 2.20.1