Now windows can be sized arbitrarily small, but GDK chokes when you try to drag the
authorPhilip Chimento <philip.chimento@gmail.com>
Wed, 13 May 2009 22:01:25 +0000 (22:01 +0000)
committerPhilip Chimento <philip.chimento@gmail.com>
Wed, 13 May 2009 22:01:25 +0000 (22:01 +0000)
size smaller than 0. Bug in GDK?

git-svn-id: http://lassie.dyndns-server.com/svn/gargoyle-gtk@54 ddfedd41-794f-dd11-ae45-00112f111e67

src/window.c

index bac8e18ce2c753dd2fc6b5db9d5ea2dadf7a4195..876db66933867406084ab9dfa75081c5b46e2cd1 100644 (file)
@@ -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 */