aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2013-02-27 16:46:14 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2013-02-27 16:46:14 -0500
commit27b512dd35047f9c3c5b0069cc8085b8de3da2b5 (patch)
tree89540dd8a19481714b781c8c2d3d5d55ffa8bfaf
parenta4337607b2a6e233225cfad3d5877fb5fd88c2f9 (diff)
downloadtextadept-27b512dd35047f9c3c5b0069cc8085b8de3da2b5.tar.gz
textadept-27b512dd35047f9c3c5b0069cc8085b8de3da2b5.zip
GtkTable is deprecated in GTK 3.4, use GtkGrid instead; src/textadept.c
-rw-r--r--src/textadept.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/textadept.c b/src/textadept.c
index b1c02cfc..c5ade1e2 100644
--- a/src/textadept.c
+++ b/src/textadept.c
@@ -1998,12 +1998,18 @@ static Scintilla *new_view(sptr_t doc) {
* Creates the Find box.
*/
static GtkWidget *new_findbox() {
+#if !GTK_CHECK_VERSION(3,4,0)
+ findbox = gtk_table_new(2, 6, FALSE);
#define attach(w, x1, x2, y1, y2, xo, yo, xp, yp) \
gtk_table_attach(GTK_TABLE(findbox), w, x1, x2, y1, y2, xo, yo, xp, yp)
#define EXPAND_FILL (GtkAttachOptions)(GTK_EXPAND | GTK_FILL)
#define SHRINK_FILL (GtkAttachOptions)(GTK_SHRINK | GTK_FILL)
-
- findbox = gtk_table_new(2, 6, FALSE);
+#else
+ findbox = gtk_grid_new();
+ gtk_grid_set_column_spacing(GTK_GRID(findbox), 5);
+#define attach(w, x1, x2, y1, y2, xo, yo, xp, yp) \
+ gtk_grid_attach(GTK_GRID(findbox), w, x1, y1, 1, 1)
+#endif
find_store = gtk_list_store_new(1, G_TYPE_STRING);
repl_store = gtk_list_store_new(1, G_TYPE_STRING);