Pike v8.0 release 1738

Method GDK1.Window()->get_property()


Method get_property

mapping get_property(GDK1.Atom atom, int|void offset, int|void delete_when_done)

Description

Returns the value (as a string) of the specified property. The arguments are:

property: The property atom, as an example GDK1.Atom.__SWM_VROOT offset (optional): The starting offset, in elements delete_when_done (optional): If set, the property will be deleted when it has been fetched.

Example usage: Find the 'virtual' root window (many window managers put large windows over the screen)

   GDK1.Window root = GTK1.root_window();
   array maybe=root->children()->
               get_property(GDK1.Atom.__SWM_VROOT)-({0});
   if(sizeof(maybe))
     root=GDK1.Window( maybe[0]->data[0] );