diff options
| author | Simon Tatham <anakin@pobox.com> | 2005-06-07 20:25:25 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2005-06-07 20:25:25 +0000 |
| commit | 8add7421dfc72c2fcdeb213c32a474e9af6ee4bb (patch) | |
| tree | f90c26e801496feb6c4780901c0fc8b689630795 | |
| parent | c27235cc51c2e131ffb0eb5ba30fe6991f0aed37 (diff) | |
| download | puzzles-8add7421dfc72c2fcdeb213c32a474e9af6ee4bb.zip puzzles-8add7421dfc72c2fcdeb213c32a474e9af6ee4bb.tar.gz puzzles-8add7421dfc72c2fcdeb213c32a474e9af6ee4bb.tar.bz2 puzzles-8add7421dfc72c2fcdeb213c32a474e9af6ee4bb.tar.xz | |
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]
| -rw-r--r-- | gtk.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; |