mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 16:05:44 -07:00
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:
5
gtk.c
5
gtk.c
@ -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;
|
||||||
|
Reference in New Issue
Block a user