/* Value will also be NULL if win is the root window */
return (winid_t)win->window_node->parent->data;
}
/* Value will also be NULL if win is the root window */
return (winid_t)win->window_node->parent->data;
}
glk_window_open(winid_t split, glui32 method, glui32 size, glui32 wintype,
glui32 rock)
{
glk_window_open(winid_t split, glui32 method, glui32 size, glui32 wintype,
glui32 rock)
{
/* We only create one window and don't support any more than that */
winid_t win = g_new0(struct glk_window_struct, 1);
/* We only create one window and don't support any more than that */
winid_t win = g_new0(struct glk_window_struct, 1);
glk_data->root_window = parent_node->next;
else if(parent_node->prev)
glk_data->root_window = parent_node->prev;
glk_data->root_window = parent_node->next;
else if(parent_node->prev)
glk_data->root_window = parent_node->prev;
if(parent_node->next)
g_node_append(parent_node->parent, parent_node->next);
else if(parent_node->prev)
if(parent_node->next)
g_node_append(parent_node->parent, parent_node->next);
else if(parent_node->prev)
g_return_if_fail(win->type == wintype_TextGrid);
/* Calculate actual position if cursor is moved past the right edge */
g_return_if_fail(win->type == wintype_TextGrid);
/* Calculate actual position if cursor is moved past the right edge */