Hey!
GdkWindow
*win;
GdkDevice *dev;
int main( int argc, char *argv[])
{
GtkWidget
*window;
...
function_call( ???, NULL);
gtk_main();
return 0;
}
void function(???, gpointer
data)
{
g_assert ( data == 0);
win = GTK_WIDGET (???)->
window;
dev =
gdk_device_get_core_pointer();
...
}
Ok, my questions:
On the places who i have set ??? i don't now what i
must write.
Before i had a button and so i must write
function_call(G_OBJECT(button), NULL); win =
GTK_WIDGET(button)->window;
But now?
Or do you have a better idea how i can call the
function on programm start?
\\Robert
( sry, bad english ;) )
|