From: Philip Chimento Date: Sun, 24 May 2009 10:20:56 +0000 (+0000) Subject: Proportional sizes of 100% are apparently allowed too X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=46a2aa0e0a57fb95023c5cb72e741becafab163e;p=rodin%2Fchimara.git Proportional sizes of 100% are apparently allowed too git-svn-id: http://lassie.dyndns-server.com/svn/gargoyle-gtk@83 ddfedd41-794f-dd11-ae45-00112f111e67 --- diff --git a/libchimara/window.c b/libchimara/window.c index fc407f7..223d7a2 100644 --- a/libchimara/window.c +++ b/libchimara/window.c @@ -375,7 +375,7 @@ glk_window_open(winid_t split, glui32 method, glui32 size, glui32 wintype, { VALID_WINDOW_OR_NULL(split, return NULL); g_return_val_if_fail(method == (method & (winmethod_DirMask | winmethod_DivisionMask)), NULL); - g_return_val_if_fail(!(((method & winmethod_DivisionMask) == winmethod_Proportional) && size >= 100), NULL); + g_return_val_if_fail(!(((method & winmethod_DivisionMask) == winmethod_Proportional) && size > 100), NULL); if(split == NULL && glk_data->root_window != NULL) { @@ -1120,7 +1120,7 @@ glk_window_set_arrangement(winid_t win, glui32 method, glui32 size, winid_t keyw g_return_if_fail(g_node_is_ancestor(win->window_node, keywin->window_node)); } g_return_if_fail(method == (method & (winmethod_DirMask | winmethod_DivisionMask))); - g_return_if_fail(!(((method & winmethod_DivisionMask) == winmethod_Proportional) && size >= 100)); + g_return_if_fail(!(((method & winmethod_DivisionMask) == winmethod_Proportional) && size > 100)); win->split_method = method; win->constraint_size = size;