Error while using libxfcegui4

Jasper Huijsmans jasper at moongroup.com
Wed Dec 18 10:57:06 CET 2002


Hey Botsie,

I don't know, but you could try to do a netk_screen_force_update() 
before getting the window list.

	Jasper

Biju Chacko wrote:
> Hi,
> 
> I am trying to generate a list of minimized windows in an app I'm
> writing. I am using the following code:
> 
> void populate_window(GtkWindow *window)
> {
> 	NetkScreen *screen = NULL;
> 	GList *win_list = NULL;
> 	
> 	screen = netk_screen_get(0);
> 	win_list = netk_screen_get_windows(screen);
> 	
> 	assert(win_list != NULL);
> 	
> 	while (win_list != NULL) {
> 		NetkWindow *win = win_list->data;
> 		if (netk_window_is_minimized(win)) {
> 			printf("%s\n",netk_window_get_icon_name(win));
> 		}
> 		win_list = win_list->next;
> 	}
> 	return;
> }
> 
> Unfortunately the assertion fails ie, win_list == NULL. I modelled this
> code on code in netk.c, the libxfcegui4 example.
> 
> Can anybody tell me what I'm doing wrong?
> 
> -- b
> 







More information about the Xfce4-dev mailing list