(C-call "gtk_widget_set_has_window" (gobject-alien widget) 1)
(set-gtk-widget-realize-callback! widget fix-widget-realize-callback)
+ (set-gtk-widget-unrealize-callback! widget fix-widget-unrealize-callback)
(set-gtk-widget-size-allocate-callback! widget allocate-callback)
(set-gtk-widget-event-callback! widget event-callback))
(C-call "gdk_window_set_user_data" main-GdkWindow GtkWidget)
(%trace "; window: "main-GdkWindow"\n"))))
+(define-generic fix-widget-unrealize-callback (widget))
+
+(define-method fix-widget-unrealize-callback ((widget <fix-widget>))
+ (%trace "; (fix-widget-unrealize-callback <fix-widget>) "widget"\n")
+ )
+
(define (allocate-callback widget GtkAllocation)
(let ((x (C-> GtkAllocation "GtkAllocation x"))
(y (C-> GtkAllocation "GtkAllocation y"))
gtk-widget-style-context)
(export (gtk)
<fix-widget> fix-widget?
- fix-widget-new-geometry-callback fix-widget-realize-callback
+ fix-widget-new-geometry-callback
+ fix-widget-realize-callback
+ fix-widget-unrealize-callback
set-fix-widget-pointer-shape!
set-fix-widget-map-handler!
set-fix-widget-unmap-handler!