Chris Emerson points out that gtk_window_resize() isn't in GTK 1.2.
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 7 Jun 2005 20:25:25 +0000 (20:25 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 7 Jun 2005 20:25:25 +0000 (20:25 +0000)
Work around it the same way I did in PuTTY.

git-svn-id: svn://svn.tartarus.org/sgt/puzzles@5920 cda61777-01e9-0310-a592-d414129be87e

gtk.c

diff --git a/gtk.c b/gtk.c
index 91d44d6..37dcf23 100644 (file)
--- a/gtk.c
+++ b/gtk.c
@@ -852,6 +852,11 @@ static void get_size(frontend *fe, int *px, int *py)
     *py = y;
 }
 
+#if !GTK_CHECK_VERSION(2,0,0)
+#define gtk_window_resize(win, x, y) \
+       gdk_window_resize(GTK_WIDGET(win)->window, x, y)
+#endif
+
 static void menu_preset_event(GtkMenuItem *menuitem, gpointer data)
 {
     frontend *fe = (frontend *)data;