#!/usr/bin/gtkbasic002


//-- load  file and show the window
gins_glade("testshape.glade")
gins_set("window1" , "1" , "1" , "<uposition>")
gins_main()



//--- pixmap
gtk_createobject("PixmapwidFromFile" , "pixmap1", "osrw.png" , 0)
gtk("gtk_box_pack_start" , "vbox1" , "pixmap1" , "1","1","0",0)
gtk("gtk_widget_show" , "pixmap1" , 0 ,0,0,0,0)


gtk_get_pixmap_and_mask("pixmap1", "gdkpixmap1" , "gdkmask1" )
gtk("gtk_widget_shape_combine_mask" , "window1" , "gdkmask1" ,0,0,0,0)

gtk("gtk_window_set_keep_below" , "window1" , "1" ,0,0,0,0)
gtk("gtk_window_set_skip_taskbar_hint" , "window1" , "1" ,0,0,0,0)

gtk("gtk_window_stick" , "window1" , "1" ,0,0,0,0)


//-- mainloop with eventhandling
while 1

  widget , event , pdata = gins_event()

  if widget != Nothing then
   //-- uncomment this line to see ALL events in the console

    print event , widget, pdata


    if event = "GDK_DELETE" then
      gins_exit()
      end
    end if

    if event = "GDK_BUTTON_RELEASE" then

      //-- example how to switch on/off attributes of a widget


	print "ok"




    end if

  end if

  gins_usleep(10000)

wend
