summaryrefslogtreecommitdiff
path: root/libview
diff options
context:
space:
mode:
Diffstat (limited to 'libview')
-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