summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2017-04-13 15:07:28 +0300
committermonsta <[email protected]>2017-04-13 15:07:28 +0300
commita956cb1559c6fb654236f59f2d9ab9b32435a465 (patch)
treefa4345f30d73cf9a9fc3c6ceaf9b3a606f047292
parent004fe59d2319cc55711772a32a976f8956587432 (diff)
downloadatril-1.16.tar.bz2
atril-1.16.tar.xz
libview: use GtkObject where it has to be in GTK+2 build1.16
fix build warnings caused by some mistakes made in 3de4956ee790ad32f268134a25474b63e64a4682
-rw-r--r--libview/ev-view-presentation.c8
-rw-r--r--libview/ev-view.c4
2 files changed, 12 insertions, 0 deletions
diff --git a/libview/ev-view-presentation.c b/libview/ev-view-presentation.c
index dadd0c6b..f6158854 100644
--- a/libview/ev-view-presentation.c
+++ b/libview/ev-view-presentation.c
@@ -1179,7 +1179,11 @@ ev_view_presentation_key_press_event (GtkWidget *widget,
EvViewPresentation *pview = EV_VIEW_PRESENTATION (widget);
if (pview->state == EV_PRESENTATION_END)
+#if GTK_CHECK_VERSION (3, 0, 0)
return gtk_bindings_activate_event (G_OBJECT (widget), event);
+#else
+ return gtk_bindings_activate_event (GTK_OBJECT (widget), event);
+#endif
switch (event->keyval) {
case GDK_KEY_b:
@@ -1239,7 +1243,11 @@ ev_view_presentation_key_press_event (GtkWidget *widget,
return TRUE;
}
+#if GTK_CHECK_VERSION (3, 0, 0)
return gtk_bindings_activate_event (G_OBJECT (widget), event);
+#else
+ return gtk_bindings_activate_event (GTK_OBJECT (widget), event);
+#endif
}
static gboolean
diff --git a/libview/ev-view.c b/libview/ev-view.c
index 42c51184..150fb0a4 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -4427,7 +4427,11 @@ ev_view_key_press_event (GtkWidget *widget,
return FALSE;
}
+#if GTK_CHECK_VERSION (3, 0, 0)
return gtk_bindings_activate_event (G_OBJECT (widget), event);
+#else
+ return gtk_bindings_activate_event (GTK_OBJECT (widget), event);
+#endif
}
static gint