Fix #917: GTK3 status bar fields can cause the window to unexpectedly change size
authorColin Clark <colin.clark@cclark.uk>
Mon, 16 Aug 2021 15:52:08 +0000 (16:52 +0100)
committerColin Clark <colin.clark@cclark.uk>
Mon, 16 Aug 2021 15:52:08 +0000 (16:52 +0100)
https://github.com/BestImageViewer/geeqie/issues/917

Use gtk_label_set_ellipsize() to allow the box size to be reduced.

src/layout.c

index 25e9d7c..5a827e4 100644 (file)
@@ -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);