[gdl] Fix hidden close and iconify button in the dock item grip



commit af9c05761afd8cd8631d811c7da7dcd3f01d0418
Author: SÃbastien Granjoux <seb sfo free fr>
Date:   Sat May 19 18:51:04 2012 +0200

    Fix hidden close and iconify button in the dock item grip
    
    The size of the GdkWindow used by the grip was wrong at initialization, so the buttons were outside the drawing window.
    The bug disappears if the widget is resized as the GdkWindow size is recomputed.

 gdl/gdl-dock-item-grip.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdl/gdl-dock-item-grip.c b/gdl/gdl-dock-item-grip.c
index 7c702f9..84d055c 100644
--- a/gdl/gdl-dock-item-grip.c
+++ b/gdl/gdl-dock-item-grip.c
@@ -435,7 +435,7 @@ gdl_dock_item_grip_realize (GtkWidget *widget)
 
         g_return_if_fail (grip->priv->label != NULL);
 
-        gtk_widget_get_allocation (grip->priv->label, &allocation);
+        gtk_widget_get_allocation (widget, &allocation);
 
         attributes.x           = allocation.x;
         attributes.y           = allocation.y;



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