Chris Emerson points out that gtk_window_resize() isn't in GTK 1.2.

Work around it the same way I did in PuTTY.

[originally from svn r5920]
This commit is contained in:
Simon Tatham
2005-06-07 20:25:25 +00:00
parent c27235cc51
commit 8add7421df

5
gtk.c
View File

@ -852,6 +852,11 @@ static void get_size(frontend *fe, int *px, int *py)
*py = y; *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) static void menu_preset_event(GtkMenuItem *menuitem, gpointer data)
{ {
frontend *fe = (frontend *)data; frontend *fe = (frontend *)data;