Proportional sizes of 100% are apparently allowed too
authorPhilip Chimento <philip.chimento@gmail.com>
Sun, 24 May 2009 10:20:56 +0000 (10:20 +0000)
committerPhilip Chimento <philip.chimento@gmail.com>
Sun, 24 May 2009 10:20:56 +0000 (10:20 +0000)
git-svn-id: http://lassie.dyndns-server.com/svn/gargoyle-gtk@83 ddfedd41-794f-dd11-ae45-00112f111e67

libchimara/window.c

index fc407f751ed1ea71d0b13829f76745db197b1ad3..223d7a24a71fca70089dbf43a97b80183bbed6fd 100644 (file)
@@ -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;