aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2015-01-12 18:14:13 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2015-01-12 18:14:13 -0500
commite0bf08c3199dd01d575df4f0d4d7faf54c9034a4 (patch)
tree28806524e440d019d4a6d4f029fd3163c6bf695b
parentf3e27d75d018a36c0f5401946e1f9d462a420216 (diff)
downloadtextadept-e0bf08c3199dd01d575df4f0d4d7faf54c9034a4.tar.gz
textadept-e0bf08c3199dd01d575df4f0d4d7faf54c9034a4.zip
Fixed bug in reporting split views in GTK3; src/textadept.c
-rw-r--r--src/textadept.c8
1 files changed, 5 insertions, 3 deletions
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