From 31b12cc2715db2da0b90bab9b51f33438b7af1c4 Mon Sep 17 00:00:00 2001 From: Brendan Taylor Date: Fri, 27 May 2011 03:48:31 -0600 Subject: wrap the mainbar_label_left when it gets too long. fixes the window resize bug, hopefully for good. --- src/uzbl-core.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/uzbl-core.c') diff --git a/src/uzbl-core.c b/src/uzbl-core.c index 693f3ce..09b1a3c 100644 --- a/src/uzbl-core.c +++ b/src/uzbl-core.c @@ -1485,7 +1485,6 @@ create_scrolled_win() { NULL); } - GtkWidget* create_mainbar() { GUI *g = &uzbl.gui; @@ -1498,6 +1497,10 @@ create_mainbar() { gtk_misc_set_alignment (GTK_MISC(g->mainbar_label_left), 0, 0); gtk_misc_set_padding (GTK_MISC(g->mainbar_label_left), 2, 2); + /* wrap the label when it gets too long */ + /* (otherwise it expands the window, which is not what we want) */ + gtk_label_set_line_wrap(GTK_LABEL(g->mainbar_label_left), TRUE); + /* create right panel */ g->mainbar_label_right = gtk_label_new (""); gtk_label_set_selectable(GTK_LABEL(g->mainbar_label_right), TRUE); -- cgit v1.2.3