From e0bf08c3199dd01d575df4f0d4d7faf54c9034a4 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Mon, 12 Jan 2015 18:14:13 -0500 Subject: Fixed bug in reporting split views in GTK3; src/textadept.c --- src/textadept.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/textadept.c') diff --git a/src/textadept.c b/src/textadept.c index cc17e301..3061b256 100644 --- a/src/textadept.c +++ b/src/textadept.c @@ -626,9 +626,11 @@ static void l_pushsplittable(lua_State *L, GtkWidget *w) { lua_newtable(L); l_pushsplittable(L, child(1, w)), lua_rawseti(L, -2, 1); l_pushsplittable(L, child(2, w)), lua_rawseti(L, -2, 2); - lua_pushboolean(L, GTK_IS_HPANED(w)), lua_setfield(L, -2, "vertical"); - int size = gtk_paned_get_position(GTK_PANED(w)); - lua_pushinteger(L, size), lua_setfield(L, -2, "size"); + lua_pushboolean(L, gtk_orientable_get_orientation(GTK_ORIENTABLE(w)) == + GTK_ORIENTATION_HORIZONTAL); + lua_setfield(L, -2, "vertical"); + lua_pushinteger(L, gtk_paned_get_position(GTK_PANED(w))); + lua_setfield(L, -2, "size"); } else l_pushview(L, w); } #elif CURSES -- cgit v1.2.3