git-svn-id: http://lassie.dyndns-server.com/svn/gargoyle-gtk@269
ddfedd41-794f-dd11-ae45-
00112f111e67
glk_window_get_parent(winid_t win)
{
VALID_WINDOW(win, return NULL);
glk_window_get_parent(winid_t win)
{
VALID_WINDOW(win, return NULL);
/* Value will also be NULL if win is the root window */
/* Value will also be NULL if win is the root window */
+ if(win->window_node->parent == NULL)
+ return NULL;
+
return (winid_t)win->window_node->parent->data;
}
return (winid_t)win->window_node->parent->data;
}