Re: Obtaining pointer to the window with focus

2013-12-09 Thread Florian Müllner
On Mon, Dec 9, 2013 at 5:45 PM, David Buchan wrote: > while ((widget = g_list_next (list)) != NULL) { // line 577 g_list_next() returns the element as GList, you can get to the actual content by accessing the 'data' element, e.g. something like: GList *list, *l; list = gtk_window_get_toplevels(

Obtaining pointer to the window with focus

2013-12-09 Thread David Buchan
I've not seen a clear answer to this obvious question. Maybe I'm not searching for the right terms. What I want to do is create a dialog if an error occurs, and I want it to appear atop the window that currently has focus. This seems like a standard thing to do, so it's weird I can't find a cle