From: Colin Clark Date: Mon, 16 Aug 2021 15:52:08 +0000 (+0100) Subject: Fix #917: GTK3 status bar fields can cause the window to unexpectedly change size X-Git-Tag: v1.7~75 X-Git-Url: http://geeqie.org/cgi-bin/gitweb.cgi?p=geeqie.git;a=commitdiff_plain;h=6c538f4042c4b9545c2656096f16bc297b081b11 Fix #917: GTK3 status bar fields can cause the window to unexpectedly change size https://github.com/BestImageViewer/geeqie/issues/917 Use gtk_label_set_ellipsize() to allow the box size to be reduced. --- diff --git a/src/layout.c b/src/layout.c index 25e9d7c1..5a827e4b 100644 --- a/src/layout.c +++ b/src/layout.c @@ -865,6 +865,7 @@ static GtkWidget *layout_status_label(gchar *text, GtkWidget *box, gboolean star gtk_widget_show(frame); label = gtk_label_new(text ? text : ""); + gtk_label_set_ellipsize(GTK_LABEL(label), PANGO_ELLIPSIZE_END); gtk_container_add(GTK_CONTAINER(frame), label); gtk_widget_show(label);