Code: Select all
If OpenWindow(0, 0, 0, 320, 240, #PB_Window_ScreenCentered|#PB_Window_MinimizeGadget, "") = 0
End
EndIF
If CreateGadgetList(0) = 0
End
EndIF
ButtonGadget(0, 0, 0, 200, 20, "Test")
Repeat
Delay(10)
Until WaitWindowEvent() = #PB_Event_CloseWindow
Code: Select all
Gtk-WARNING **: invalid cast from (NULL) pointer to `GtkObject'
Gtk-CRITICAL **: file gtkobject.c: line 1079 (gtk_object_get_data): assertion `object != NULL' failed.
Gtk-WARNING **: invalid cast from (NULL) pointer to `GtkContainer'
Gtk-CRITICAL **: file gtkcontainer.c: line 1118 (gtk_container_foreach): assertion `container != NULL' failed.
Gtk-WARNING **: invalid cast from (NULL) pointer to `GtkBox'
Gtk-CRITICAL **: file gtkbox.c: line 329 (gtk_box_pack_start): assertion `box != NULL' failed.
Gtk-WARNING **: invalid cast from (NULL) pointer to `GtkObject'
Gtk-CRITICAL **: file gtkobject.c: line 1033 (gtk_object_set_data): assertion `object != NULL' failed.