60271: gtk_handle_box_size_allocate forget the handle



hi

if you detach a handlebox for the first time, the width is to small,
cause the draghandlesize is not concidered.

the patch to solve this:


--- gtkhandlebox.c      Mon Sep 10 00:36:25 2001
+++ ../../gtk+-det/gtk/gtkhandlebox.c   Mon Sep 10 00:17:32 2001
@@ -1194,8 +1194,18 @@
              child_requisition.height = 0;
            }      
 
-         width = child_requisition.width + 2 * GTK_CONTAINER
(hb)->border_width;
+         if (hb->handle_position == GTK_POS_LEFT || hb->handle_position
==
GTK_POS_RIGHT)
+
+       {
+         width = child_requisition.width + 2 * GTK_CONTAINER
(hb)->border_width + DRAG_HANDLE_SIZE;
          height = child_requisition.height + 2 * GTK_CONTAINER
(hb)->border_width;
+       }
+         else
+       {
+         width = child_requisition.width + 2 * GTK_CONTAINER
(hb)->border_width;
+         height = child_requisition.height + 2 * GTK_CONTAINER
(hb)->border_width + DRAG_HANDLE_SIZE;
+       }
+
          gdk_window_move_resize (hb->float_window, new_x, new_y, width,
height);
          gdk_window_reparent (hb->bin_window, hb->float_window, 0, 0);
          gdk_window_set_hints (hb->float_window, new_x, new_y, 0, 0, 0,
0,
GDK_HINT_POS);


please commit this

have nice day
detlef








[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]