From: Daniel Carl Date: Sat, 7 Feb 2015 22:54:35 +0000 (+0100) Subject: Ellipsize left status bar text at the middle. X-Git-Url: https://git.owens.tech/style.css/style.css/git?a=commitdiff_plain;h=2e650251cc431d3a43936e3a71ceb66c1863b7cb;p=vimb.git 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. --- 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);