mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 16:05:44 -07:00
Fix GTK casts to restore correct compilation on GTK 2.0 after r6022.
[originally from svn r6023] [r6022 == e1c84c9a4ea9e74c128c28a77ea08336350991e3]
This commit is contained in:
4
gtk.c
4
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user