[planner: 13/32] cell-renderers: Adapt to GtkCellRendererClass vfunc const changes in GTK 3
- From: Mart Raudsepp <mraudsepp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [planner: 13/32] cell-renderers: Adapt to GtkCellRendererClass vfunc const changes in GTK 3
- Date: Sun, 20 Jun 2021 18:13:50 +0000 (UTC)
commit 14b1051a9728ec16106407fb282684b4b2d18a5e
Author: Mart Raudsepp <leio gentoo org>
Date: Sun May 30 15:38:43 2021 +0300
cell-renderers: Adapt to GtkCellRendererClass vfunc const changes in GTK 3
src/planner-cell-renderer-date.c | 8 ++++----
src/planner-cell-renderer-popup.c | 24 ++++++++++++------------
2 files changed, 16 insertions(+), 16 deletions(-)
---
diff --git a/src/planner-cell-renderer-date.c b/src/planner-cell-renderer-date.c
index 5ba76e81..e9c809d6 100644
--- a/src/planner-cell-renderer-date.c
+++ b/src/planner-cell-renderer-date.c
@@ -62,8 +62,8 @@ GtkCellEditable *mcrd_start_editing (GtkCellRenderer *cell,
GdkEvent *event,
GtkWidget *widget,
const gchar *path,
- GdkRectangle *background_area,
- GdkRectangle *cell_area,
+ const GdkRectangle *background_area,
+ const GdkRectangle *cell_area,
GtkCellRendererState flags);
static void mcrd_show (PlannerCellRendererPopup *cell,
const gchar *path,
@@ -273,8 +273,8 @@ mcrd_start_editing (GtkCellRenderer *cell,
GdkEvent *event,
GtkWidget *widget,
const gchar *path,
- GdkRectangle *background_area,
- GdkRectangle *cell_area,
+ const GdkRectangle *background_area,
+ const GdkRectangle *cell_area,
GtkCellRendererState flags)
{
PLANNER_CELL_RENDERER_POPUP (cell)->editing_canceled = TRUE;
diff --git a/src/planner-cell-renderer-popup.c b/src/planner-cell-renderer-popup.c
index 0f24ef8f..42fdccea 100644
--- a/src/planner-cell-renderer-popup.c
+++ b/src/planner-cell-renderer-popup.c
@@ -42,8 +42,8 @@ mcrp_start_editing (GtkCellRenderer *cell,
GdkEvent *event,
GtkWidget *widget,
const gchar *path,
- GdkRectangle *background_area,
- GdkRectangle *cell_area,
+ const GdkRectangle *background_area,
+ const GdkRectangle *cell_area,
GtkCellRendererState flags);
static void mcrp_show_popup (PlannerCellRendererPopup *cell,
const gchar *path,
@@ -54,7 +54,7 @@ static void mcrp_show_popup (PlannerCellRendererPopup *cell,
static void mcrp_hide_popup (PlannerCellRendererPopup *cell);
static void mcrp_get_size (GtkCellRenderer *cell,
GtkWidget *widget,
- GdkRectangle *cell_area,
+ const GdkRectangle *cell_area,
gint *x_offset,
gint *y_offset,
gint *width,
@@ -351,8 +351,8 @@ mcrp_start_editing (GtkCellRenderer *cell,
GdkEvent *event,
GtkWidget *widget,
const gchar *path,
- GdkRectangle *background_area,
- GdkRectangle *cell_area,
+ const GdkRectangle *background_area,
+ const GdkRectangle *cell_area,
GtkCellRendererState flags)
{
PlannerCellRendererPopup *popup;
@@ -414,13 +414,13 @@ planner_cell_renderer_popup_hide (PlannerCellRendererPopup *cell)
}
static void
-mcrp_get_size (GtkCellRenderer *cell,
- GtkWidget *widget,
- GdkRectangle *cell_area,
- gint *x_offset,
- gint *y_offset,
- gint *width,
- gint *height)
+mcrp_get_size (GtkCellRenderer *cell,
+ GtkWidget *widget,
+ const GdkRectangle *cell_area,
+ gint *x_offset,
+ gint *y_offset,
+ gint *width,
+ gint *height)
{
PlannerCellRendererPopup *popup;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]