From d113e962a9276a206cb3c12a2779f9565b9b8630 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Wed, 30 Oct 2013 23:01:31 -0400 Subject: Fixed GTK3 bug with split views introduced in r1611; src/textadept.c --- src/textadept.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/textadept.c') diff --git a/src/textadept.c b/src/textadept.c index 4b7c8a70..9d20e502 100644 --- a/src/textadept.c +++ b/src/textadept.c @@ -61,6 +61,9 @@ typedef GtkWidget Scintilla; #if GTK_CHECK_VERSION(3,0,0) #define GDK_Return GDK_KEY_Return #define GDK_Escape GDK_KEY_Escape +#define gtk_container_add(p, w) \ + GTK_IS_BOX(p) ? gtk_box_pack_start(GTK_BOX(p), w, TRUE, TRUE, 0) \ + : gtk_container_add(p, w) #define gtk_hpaned_new() gtk_paned_new(GTK_ORIENTATION_HORIZONTAL) #define gtk_vpaned_new() gtk_paned_new(GTK_ORIENTATION_VERTICAL) #define gtk_combo_box_entry_new_with_model(m,_) \ -- cgit v1.2.3