diff options
author | monsta <[email protected]> | 2017-04-13 15:07:28 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2017-04-13 15:07:28 +0300 |
commit | a956cb1559c6fb654236f59f2d9ab9b32435a465 (patch) | |
tree | fa4345f30d73cf9a9fc3c6ceaf9b3a606f047292 | |
parent | 004fe59d2319cc55711772a32a976f8956587432 (diff) | |
download | atril-a956cb1559c6fb654236f59f2d9ab9b32435a465.tar.bz2 atril-a956cb1559c6fb654236f59f2d9ab9b32435a465.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.c | 8 | ||||
-rw-r--r-- | libview/ev-view.c | 4 |
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 |