[libgd/wip/ernestask/gtk4: 9/23] Use new gtk_widget_size_allocate() signature



commit 25ab83c64294ad891996afc2f3a416fd9e633d6e
Author: Ernestas Kulik <ernestask gnome org>
Date:   Mon Mar 5 17:47:20 2018 +0200

    Use new gtk_widget_size_allocate() signature

 libgd/gd-main-icon-box-icon.c |    7 +++++--
 libgd/gd-margin-container.c   |    6 ++++--
 2 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/libgd/gd-main-icon-box-icon.c b/libgd/gd-main-icon-box-icon.c
index e05efba..63695eb 100644
--- a/libgd/gd-main-icon-box-icon.c
+++ b/libgd/gd-main-icon-box-icon.c
@@ -159,7 +159,10 @@ gd_main_icon_box_icon_get_preferred_width (GtkWidget *widget, gint *minimum, gin
 }
 
 static void
-gd_main_icon_box_icon_size_allocate (GtkWidget *widget, GtkAllocation *allocation)
+gd_main_icon_box_icon_size_allocate (GtkWidget           *widget,
+                                     const GtkAllocation *allocation,
+                                     gint                 baseline,
+                                     GtkAllocation       *out_clip)
 {
   GdMainIconBoxIcon *self = GD_MAIN_ICON_BOX_ICON (widget);
   cairo_surface_t *surface;
@@ -173,7 +176,7 @@ gd_main_icon_box_icon_size_allocate (GtkWidget *widget, GtkAllocation *allocatio
   gint width_scaled;
   gint width_zoomed_scaled;
 
-  GTK_WIDGET_CLASS (gd_main_icon_box_icon_parent_class)->size_allocate (widget, allocation);
+  GTK_WIDGET_CLASS (gd_main_icon_box_icon_parent_class)->size_allocate (widget, allocation, baseline, 
out_clip);
 
   surface = gd_main_box_item_get_icon (self->item);
   if (surface == NULL)
diff --git a/libgd/gd-margin-container.c b/libgd/gd-margin-container.c
index fd49203..1d4243b 100644
--- a/libgd/gd-margin-container.c
+++ b/libgd/gd-margin-container.c
@@ -142,8 +142,10 @@ gd_margin_container_get_property (GObject    *object,
 }
 
 static void
-gd_margin_container_size_allocate (GtkWidget *widget,
-                                   GtkAllocation *allocation)
+gd_margin_container_size_allocate (GtkWidget           *widget,
+                                   const GtkAllocation *allocation,
+                                   gint                 baseline,
+                                   GtkAllocation       *out_clip)
 {
   GdMarginContainer *self = GD_MARGIN_CONTAINER (widget);
   GtkWidget *child;


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