[gnome-todo/wip/sadiq/gtk4] color-button: Adapt to GTK4 API changes
- From: Mohammed Sadiq <pksadiq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-todo/wip/sadiq/gtk4] color-button: Adapt to GTK4 API changes
- Date: Wed, 12 Dec 2018 02:50:26 +0000 (UTC)
commit 42cfc9c9f1601827a3629bd88c56a65e030a7ca1
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date: Wed Dec 12 08:18:55 2018 +0530
color-button: Adapt to GTK4 API changes
size-allocate() vfunc signature has been changed some time back.
Let's adapt to the changes.
src/widgets/gtd-color-button.c | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/src/widgets/gtd-color-button.c b/src/widgets/gtd-color-button.c
index 880d3de..f118f9f 100644
--- a/src/widgets/gtd-color-button.c
+++ b/src/widgets/gtd-color-button.c
@@ -88,13 +88,19 @@ gtd_color_button_measure (GtkWidget *widget,
}
static void
-gtd_color_button_size_allocate (GtkWidget *widget,
- const GtkAllocation *allocation,
- gint baseline)
+gtd_color_button_size_allocate (GtkWidget *widget,
+ gint width,
+ gint height,
+ gint baseline)
{
GtdColorButton *self = GTD_COLOR_BUTTON (widget);
+ GtkAllocation allocation;
- gtk_widget_size_allocate (self->selected_icon, allocation, baseline);
+ allocation.x = allocation.y = 0;
+ allocation.width = width;
+ allocation.height = height;
+
+ gtk_widget_size_allocate (self->selected_icon, &allocation, baseline);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]