diff options
author | Brendan Taylor <whateley@gmail.com> | 2011-05-27 03:48:31 -0600 |
---|---|---|
committer | Brendan Taylor <whateley@gmail.com> | 2011-05-27 03:51:53 -0600 |
commit | 31b12cc2715db2da0b90bab9b51f33438b7af1c4 (patch) | |
tree | 37609ac84c676b67802d9adfb802801c92c19a99 /src | |
parent | e04868ba6783cfdd9efcda0b105a904cfcf64070 (diff) |
wrap the mainbar_label_left when it gets too long.
fixes the window resize bug, hopefully for good.
Diffstat (limited to 'src')
-rw-r--r-- | src/uzbl-core.c | 5 |
1 files changed, 4 insertions, 1 deletions
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); |