GtkRequisition *requisition);
static void gtk_pizza_size_allocate (GtkWidget *widget,
GtkAllocation *allocation);
+#ifndef __WXGTK20__
static void gtk_pizza_draw (GtkWidget *widget,
GdkRectangle *area);
+#endif /* __WXGTK20__ */
static gint gtk_pizza_expose (GtkWidget *widget,
GdkEventExpose *event);
static void gtk_pizza_add (GtkContainer *container,
widget_class->unrealize = gtk_pizza_unrealize;
widget_class->size_request = gtk_pizza_size_request;
widget_class->size_allocate = gtk_pizza_size_allocate;
+#ifndef __WXGTK20__
widget_class->draw = gtk_pizza_draw;
+#endif
widget_class->expose_event = gtk_pizza_expose;
container_class->add = gtk_pizza_add;
widget_class->set_scroll_adjustments_signal =
gtk_signal_new ("set_scroll_adjustments",
GTK_RUN_LAST,
-
#ifdef __WXGTK20__
GTK_CLASS_TYPE(object_class),
#else
}
}
+#ifndef __WXGTK20__
+
static void
gtk_pizza_draw (GtkWidget *widget,
GdkRectangle *area)
}
}
+#endif /* __WXGTK20__ */
+
static gint
gtk_pizza_expose (GtkWidget *widget,
GdkEventExpose *event)
{
GtkWidget *widget;
XEvent xevent;
+ XID win;
gint x,y,w,h,border;
gtk_pizza_position_children (pizza);
gdk_flush();
+
+ win = GDK_WINDOW_XWINDOW (pizza->bin_window);
while (XCheckIfEvent(GDK_WINDOW_XDISPLAY (pizza->bin_window),
&xevent,
gtk_pizza_expose_predicate,
- (XPointer)&GDK_WINDOW_XWINDOW (pizza->bin_window)))
+ (XPointer)&win))
{
GdkEvent event;
GtkWidget *event_widget;