Bug Fix: Float file list layout not preserved in GTK3
authorColin Clark <colin.clark@cclark.uk>
Wed, 1 Aug 2018 18:17:46 +0000 (19:17 +0100)
committerColin Clark <colin.clark@cclark.uk>
Wed, 1 Aug 2018 18:17:46 +0000 (19:17 +0100)
gtk_vpaned_new() is deprecated and replaced by gtk_paned_new().

But the macro GTK_IS_VPANED does not work with gtk_paned_new().

src/layout.c

index f1fc5cc..7e44358 100644 (file)
@@ -1366,7 +1366,7 @@ gboolean layout_geometry_get_tools(LayoutWindow *lw, gint *x, gint *y, gint *w,
        *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;
                }