aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2015-01-20 11:42:22 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2015-01-20 11:42:22 -0500
commitd87cf472e2771870e616c3b567a0b7949d302f66 (patch)
tree70abe5a4762167af9c5d2ee1c3f0e08e5a4a3ef2 /src
parent317bca1fd4cdc3fd4b61990a308526358a2fac7d (diff)
downloadtextadept-d87cf472e2771870e616c3b567a0b7949d302f66.tar.gz
textadept-d87cf472e2771870e616c3b567a0b7949d302f66.zip
Fixed horizontal expand flag for Find & Replace widgets in GTK3; src/textadept.c
Diffstat (limited to 'src')
-rw-r--r--src/textadept.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/textadept.c b/src/textadept.c
index 37aa95f0..f1868817 100644
--- a/src/textadept.c
+++ b/src/textadept.c
@@ -131,14 +131,15 @@ static ListStore *find_store, *repl_store;
#define set_option_label(o, _, l) gtk_button_set_label(GTK_BUTTON(o), l)
#if !GTK_CHECK_VERSION(3,4,0)
#define attach(...) gtk_table_attach(GTK_TABLE(findbox), __VA_ARGS__)
-#define FILL(option) (GtkAttachOptions)(GTK_FILL | GTK_##option)
#else
// GTK 3.4 deprecated tables; translate from 2.x for compatibility.
#define gtk_table_new(...) \
gtk_grid_new(), gtk_grid_set_column_spacing(GTK_GRID(findbox), 5)
-#define attach(w, x1, _, y1, __, ...) \
- gtk_grid_attach(GTK_GRID(findbox), w, x1, y1, 1, 1)
+#define attach(w, x1, _, y1, __, xo, ...) \
+ (gtk_widget_set_hexpand(w, xo & GTK_EXPAND), \
+ gtk_grid_attach(GTK_GRID(findbox), w, x1, y1, 1, 1))
#endif
+#define FILL(option) (GtkAttachOptions)(GTK_FILL | GTK_##option)
#define command_entry_focused gtk_widget_has_focus(command_entry)
#elif CURSES
// curses window.