Use more accessors
This commit is contained in:
committed by
Stéphane Lesimple
parent
eadbf54aae
commit
e9b44a04f0
@@ -74,7 +74,7 @@ void GuiSetSpiralWidget(Spiral *spiral, GtkWidget *widget)
|
||||
gtk_widget_get_allocation(widget, &a);
|
||||
|
||||
if(!spiral->drawable)
|
||||
{ spiral->drawable = widget->window;
|
||||
{ spiral->drawable = gtk_widget_get_window(widget);
|
||||
spiral->mx = a.width/2;
|
||||
spiral->my = a.height/2;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user