chiark / gitweb /
Fix GTK casts to restore correct compilation on GTK 2.0 after r6022.
authorSimon Tatham <anakin@pobox.com>
Sun, 26 Jun 2005 13:12:34 +0000 (13:12 +0000)
committerSimon Tatham <anakin@pobox.com>
Sun, 26 Jun 2005 13:12:34 +0000 (13:12 +0000)
[originally from svn r6023]
[r6022 == e1c84c9a4ea9e74c128c28a77ea08336350991e3]

gtk.c

diff --git a/gtk.c b/gtk.c
index 9b95d4822a12d57141e7cfab1c69f3728ecdd91b..05d7ad44466e02804f2ed27f926f9053ae851115 100644 (file)
--- a/gtk.c
+++ b/gtk.c
@@ -1001,7 +1001,7 @@ static void menu_preset_event(GtkMenuItem *menuitem, gpointer data)
     {
         GtkRequisition req;
         gtk_widget_size_request(GTK_WIDGET(fe->window), &req);
-        gtk_window_resize(GTK_WIDGET(fe->window), req.width, req.height);
+        gtk_window_resize(GTK_WINDOW(fe->window), req.width, req.height);
     }
 }
 
@@ -1150,7 +1150,7 @@ static void menu_config_event(GtkMenuItem *menuitem, gpointer data)
     {
         GtkRequisition req;
         gtk_widget_size_request(GTK_WIDGET(fe->window), &req);
-        gtk_window_resize(GTK_WIDGET(fe->window), req.width, req.height);
+        gtk_window_resize(GTK_WINDOW(fe->window), req.width, req.height);
     }
 }