summaryrefslogtreecommitdiff
path: root/src/eom-scroll-view.c
diff options
context:
space:
mode:
authormonsta <[email protected]>2018-01-28 21:15:38 +0300
committerraveit65 <[email protected]>2018-01-30 11:56:38 +0100
commit0cce876dac2617c9cb7145ad6815c80b2040403e (patch)
tree666c114e778502870bc5831dc19ea3aa2135e8e2 /src/eom-scroll-view.c
parentf09cf54ef735e19c153ca44c5d13b06c5dddd2f1 (diff)
downloadeom-0cce876dac2617c9cb7145ad6815c80b2040403e.tar.bz2
eom-0cce876dac2617c9cb7145ad6815c80b2040403e.tar.xz
require GTK+ 3.22 and GLib 2.50
and drop additional checks for min/max GLib versions, it's not needed
Diffstat (limited to 'src/eom-scroll-view.c')
-rw-r--r--src/eom-scroll-view.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/eom-scroll-view.c b/src/eom-scroll-view.c
index 6f84286..c31a874 100644
--- a/src/eom-scroll-view.c
+++ b/src/eom-scroll-view.c
@@ -913,21 +913,12 @@ display_key_press_event (GtkWidget *widget, GdkEventKey *event, gpointer data)
}
if (do_zoom) {
-#if GTK_CHECK_VERSION (3, 20, 0)
GdkSeat *seat;
-#else
- GdkDeviceManager *device_manager;
-#endif
GdkDevice *device;
gint x, y;
-#if GTK_CHECK_VERSION (3, 20, 0)
seat = gdk_display_get_default_seat (gtk_widget_get_display (widget));
device = gdk_seat_get_pointer (seat);
-#else
- device_manager = gdk_display_get_device_manager (gtk_widget_get_display (widget));
- device = gdk_device_manager_get_client_pointer (device_manager);
-#endif
gdk_window_get_device_position (gtk_widget_get_window (widget), device,
&x, &y, NULL);
@@ -2155,14 +2146,8 @@ view_on_button_press_event_cb (GtkWidget *widget, GdkEventButton *event,
/* Ignore double-clicks and triple-clicks */
if (event->button == 3 && event->type == GDK_BUTTON_PRESS)
{
-#if GTK_CHECK_VERSION (3, 22, 0)
gtk_menu_popup_at_pointer (GTK_MENU (view->priv->menu),
(const GdkEvent*) event);
-#else
- gtk_menu_popup (GTK_MENU (view->priv->menu),
- NULL, NULL, NULL, NULL,
- event->button, event->time);
-#endif
return TRUE;
}