summaryrefslogtreecommitdiff
path: root/cut-n-paste
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-07-03 14:45:34 +0200
committerraveit65 <[email protected]>2016-07-03 14:45:34 +0200
commit877adf9c32d66b7e1b562971f95a83480bb4a526 (patch)
treeee00227bc08ab61e1be7e0b8eccb094226ce7990 /cut-n-paste
parent5ce4313534dd258ddc2ec494e71cbe927a41d1c7 (diff)
downloadatril-877adf9c32d66b7e1b562971f95a83480bb4a526.tar.bz2
atril-877adf9c32d66b7e1b562971f95a83480bb4a526.tar.xz
GTK+-3 gimpcellrenderertoggle: Fix compile warnings
taken from: https://git.gnome.org/browse/evince/commit/?id=f9a8e04
Diffstat (limited to 'cut-n-paste')
-rw-r--r--cut-n-paste/gimpcellrenderertoggle/gimpcellrenderertoggle.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/cut-n-paste/gimpcellrenderertoggle/gimpcellrenderertoggle.c b/cut-n-paste/gimpcellrenderertoggle/gimpcellrenderertoggle.c
index 3c8dfea5..e880b637 100644
--- a/cut-n-paste/gimpcellrenderertoggle/gimpcellrenderertoggle.c
+++ b/cut-n-paste/gimpcellrenderertoggle/gimpcellrenderertoggle.c
@@ -61,7 +61,11 @@ static void gimp_cell_renderer_toggle_set_property (GObject *object,
GParamSpec *pspec);
static void gimp_cell_renderer_toggle_get_size (GtkCellRenderer *cell,
GtkWidget *widget,
+#if GTK_CHECK_VERSION (3, 0, 0)
+ const GdkRectangle *rectangle,
+#else
GdkRectangle *rectangle,
+#endif
gint *x_offset,
gint *y_offset,
gint *width,
@@ -86,8 +90,13 @@ static gboolean gimp_cell_renderer_toggle_activate (GtkCellRenderer *cell,
GdkEvent *event,
GtkWidget *widget,
const gchar *path,
+#if GTK_CHECK_VERSION (3, 0, 0)
+ const GdkRectangle *background_area,
+ const GdkRectangle *cell_area,
+#else
GdkRectangle *background_area,
GdkRectangle *cell_area,
+#endif
GtkCellRendererState flags);
static void gimp_cell_renderer_toggle_create_pixbuf (GimpCellRendererToggle *toggle,
GtkWidget *widget);
@@ -225,7 +234,11 @@ gimp_cell_renderer_toggle_set_property (GObject *object,
static void
gimp_cell_renderer_toggle_get_size (GtkCellRenderer *cell,
GtkWidget *widget,
+#if GTK_CHECK_VERSION (3, 0, 0)
+ const GdkRectangle *cell_area,
+#else
GdkRectangle *cell_area,
+#endif
gint *x_offset,
gint *y_offset,
gint *width,
@@ -514,8 +527,13 @@ gimp_cell_renderer_toggle_activate (GtkCellRenderer *cell,
GdkEvent *event,
GtkWidget *widget,
const gchar *path,
+#if GTK_CHECK_VERSION (3, 0, 0)
+ const GdkRectangle *background_area,
+ const GdkRectangle *cell_area,
+#else
GdkRectangle *background_area,
GdkRectangle *cell_area,
+#endif
GtkCellRendererState flags)
{
GtkCellRendererToggle *toggle = GTK_CELL_RENDERER_TOGGLE (cell);