Mercurial > hg > forks > geeqie
changeset 2806:bcd52f7517c7
Bug Fix: Float file list layout not preserved in GTK3
gtk_vpaned_new() is deprecated and replaced by gtk_paned_new().
But the macro GTK_IS_VPANED does not work with gtk_paned_new().
author | Colin Clark <colin.clark@cclark.uk> |
---|---|
date | Wed, 01 Aug 2018 19:17:46 +0100 |
parents | 1f05682f97c7 |
children | 7fa597d9c65b |
files | src/layout.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/layout.c Wed Aug 01 10:37:17 2018 +0100 +++ b/src/layout.c Wed Aug 01 19:17:46 2018 +0100 @@ -1366,7 +1366,7 @@ *h = gdk_window_get_height(window); gtk_widget_get_allocation(gtk_paned_get_child1(GTK_PANED(lw->tools_pane)), &allocation); - if (GTK_IS_VPANED(lw->tools_pane)) + if (gtk_orientable_get_orientation(GTK_ORIENTABLE(lw->tools_pane)) == GTK_ORIENTATION_VERTICAL) { *divider_pos = allocation.height; }