-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I'm writing an application, and I want to handle some drag and drop stuff.
In particular, the widget being associated w/ the DnD is a notebook. The notebook is built as follows: (minus all the attribute stuff :) window = gtk_window_new(GTK_WINDOW_TOPLEVEL); notebook = gtk_notebook_new(); vbox = gtk_vbox_new(FALSE, 0); gtk_box_pack_start(GTK_BOX(vbox), notebook, TRUE, TRUE, 0); gtk_container_add(GTK_CONTAINER(window), vbox); The notebook without the DnD all works fine. That's not the problem. In my motion notify callback I wish to get the widget located at the current mouse position, and in particular I wish to see if it is a notebook. I have the (x,y) coordinates from the event passed into the motion_notify callback. I can do a gdk_window_at_pointer(&x, &y), to get the gdk_window And I can do a gdk_window_get_toplevel() to get the toplevel gdk window. Question(s): From the toplevel gdk_window, I want to get the gtk_window, and from there I want to get the gtk_notebook. I can't seem to find a clean way to get from the toplevel gdk_window to the gtk_window, and then from there, I'm at a bit of a loss as to how to get to the notebook from the gtk_window(). (from the vbox, I can start looking at the container's children, but how to get the vbox from the window ?) Any thoughts ? thanks, and best rgds, - -Greg - -- +---------------------------------------------------------------------+ Please also check the log file at "/dev/null" for additional information. (from /var/log/Xorg.setup.log) | Greg Hosler [EMAIL PROTECTED] | +---------------------------------------------------------------------+ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFHR6j2404fl/0CV/QRAqNCAJ9tchfvJDL1X0sl6EKagjL/tJZDyACbBvP4 FBT+N/b4LVw1Goc1J8laRUc= =7XsS -----END PGP SIGNATURE----- _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list