From: fliep Date: Wed, 13 May 2009 22:01:25 +0000 (+0000) Subject: Now windows can be sized arbitrarily small, but GDK chokes when you try to drag the X-Git-Tag: v0.9~411 X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=5b7840544b25551ffa0da10e5f0abfe9fd4fa6b9;p=projects%2Fchimara%2Fchimara.git Now windows can be sized arbitrarily small, but GDK chokes when you try to drag the size smaller than 0. Bug in GDK? --- diff --git a/src/window.c b/src/window.c index bac8e18..876db66 100644 --- a/src/window.c +++ b/src/window.c @@ -458,6 +458,7 @@ glk_window_open(winid_t split, glui32 method, glui32 size, glui32 wintype, /* Set the minimum size to "as small as possible" so it doesn't depend on the size of the window contents */ gtk_widget_set_size_request(win->widget, 0, 0); + gtk_widget_set_size_request(win->frame, 0, 0); if(split) { @@ -645,7 +646,7 @@ glk_window_close(winid_t win, stream_result_t *result) /* If any pair windows have this window or its children as a key window, set their key window to NULL */ - g_node_traverse(glk_data->root_window, G_IN_ORDER, G_TRAVERSE_NON_LEAVES, -1, remove_key_windows, win); + g_node_traverse(glk_data->root_window, G_IN_ORDER, G_TRAVERSE_NON_LEAVES, -1, (GNodeTraverseFunc)remove_key_windows, win); /* Close all the window streams and destroy the widgets of this window and below, before trashing the window tree */