ask for help: why gtk_grab_get_current returns NULL



Gurus,

Running below code, the result confused me.

GtkWidget *grabWidget = nsnull;

GetToplevelWidget(&grabWidget);

if (!grabWidget)
       return NS_ERROR_FAILURE;

if (aModal)
 gtk_grab_add(grabWidget);
else
 gtk_grab_remove(grabWidget);

printf("grab widget is %p\n", grabWidget);
printf("current grab widget is %p\n", gtk_grab_get_current());

After gtk_grab_add is executed, gtk_grab_get_current returns NULL. Why?

BTW, I'm not in the mailing list, so pls. reply directly to me.

Thanks in advance and best regards,

ln




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]