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:53:49 -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?
Thanks in advance and best regards,
ln
p.s. I had sent a same mail before I joined the list. Sorry for post twice.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]