ref: 7cb29412c1a57a07730c1fee0c9e9fbfebb0b6b2
parent: e1c84c9a4ea9e74c128c28a77ea08336350991e3
author: Simon Tatham <anakin@pobox.com>
date: Sun Jun 26 09:12:34 EDT 2005
Fix GTK casts to restore correct compilation on GTK 2.0 after r6022. [originally from svn r6023] [r6022 == e1c84c9a4ea9e74c128c28a77ea08336350991e3]
--- a/gtk.c
+++ b/gtk.c
@@ -1001,7 +1001,7 @@
{
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 @@
{
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);
}
}