ask for help: why gtk_grab_get_current returns NULL
- From: Neo Liu <Neo Liu Sun COM>
- To: gtk-app-devel-list gnome org
- Subject: ask for help: why gtk_grab_get_current returns NULL
- Date: Sun, 08 May 2005 16:36:14 -0700
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]