[planner: 59/61] gantt-header: Set the widget allocation in size_allocate implementation




commit 1b5992c553337aa0ff25ade6fa9ff04b34a1d711
Author: Mart Raudsepp <leio gentoo org>
Date:   Sat May 29 22:51:44 2021 +0300

    gantt-header: Set the widget allocation in size_allocate implementation
    
    This appears to be common practice, but with GTK3 the widget will have no
    allocation (and thus no drawing) at all, if not set here.

 src/planner-gantt-header.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/planner-gantt-header.c b/src/planner-gantt-header.c
index 8f593477..e8a7c272 100644
--- a/src/planner-gantt-header.c
+++ b/src/planner-gantt-header.c
@@ -475,6 +475,8 @@ gantt_header_size_allocate (GtkWidget     *widget,
 
        header = PLANNER_GANTT_HEADER (widget);
 
+       gtk_widget_set_allocation (widget, allocation);
+
        if (gtk_widget_get_realized (widget)) {
                gdk_window_move_resize (gtk_widget_get_window (widget),
                                        allocation->x, allocation->y,


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