diff options
author | Alexey Yakovenko <waker@users.sourceforge.net> | 2013-11-17 19:46:00 +0100 |
---|---|---|
committer | Alexey Yakovenko <waker@users.sourceforge.net> | 2013-11-17 19:46:00 +0100 |
commit | 7a097d03bfda11858b0d565d33877e636da5c0ca (patch) | |
tree | ab199b3ef63bad401bc04cc018105453e7a263cb | |
parent | faa85b7012111e58641c3cd8095e33c2a7accb5f (diff) |
gtkui: better fix to column autoresize race
-rw-r--r-- | plugins/gtkui/ddblistview.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/plugins/gtkui/ddblistview.c b/plugins/gtkui/ddblistview.c index d72e308a..7b893f7c 100644 --- a/plugins/gtkui/ddblistview.c +++ b/plugins/gtkui/ddblistview.c @@ -2389,12 +2389,9 @@ ddb_listview_header_configure_event (GtkWidget *widget, if (height != a.height) { gtk_widget_set_size_request (widget, -1, height); } - int totalwidth = a.width; - if (gtk_widget_get_visible (ps->scrollbar)) { - GtkAllocation sba; - gtk_widget_get_allocation (ps->scrollbar, &sba); - totalwidth += sba.width; - } + GtkAllocation lva; + gtk_widget_get_allocation (GTK_WIDGET (ps), &lva); + int totalwidth = lva.width; if (!ps->lock_columns) { DdbListviewColumn *c; |