summaryrefslogtreecommitdiff
path: root/shell/ev-sidebar-attachments.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-06-24 17:14:26 +0200
committerraveit65 <[email protected]>2016-06-29 16:23:03 +0200
commitaa9a83b64ac38330991168ab799d482960e07437 (patch)
treec2004fa518b41740fd221939c581470fa464c86d /shell/ev-sidebar-attachments.c
parente3aaf39c9ca3fa3dc3d030caef68f28b8a27b086 (diff)
downloadatril-aa9a83b64ac38330991168ab799d482960e07437.tar.bz2
atril-aa9a83b64ac38330991168ab799d482960e07437.tar.xz
GTK+-3: Use ev_document_misc_get_pointer_position() instad of deprecated gtk_widget_get_pointer()
Diffstat (limited to 'shell/ev-sidebar-attachments.c')
-rw-r--r--shell/ev-sidebar-attachments.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/shell/ev-sidebar-attachments.c b/shell/ev-sidebar-attachments.c
index 84e6cb38..ddcaccda 100644
--- a/shell/ev-sidebar-attachments.c
+++ b/shell/ev-sidebar-attachments.c
@@ -32,6 +32,7 @@
#include <gtk/gtk.h>
#include "ev-document-attachments.h"
+#include "ev-document-misc.h"
#include "ev-jobs.h"
#include "ev-job-scheduler.h"
#include "ev-file-helpers.h"
@@ -263,7 +264,11 @@ ev_sidebar_attachments_popup_menu (GtkWidget *widget)
EvSidebarAttachments *ev_attachbar = EV_SIDEBAR_ATTACHMENTS (widget);
gint x, y;
+#if GTK_CHECK_VERSION(3, 0, 0)
+ ev_document_misc_get_pointer_position (widget, &x, &y);
+#else
gtk_widget_get_pointer (widget, &x, &y);
+#endif
return ev_sidebar_attachments_popup_menu_show (ev_attachbar, x, y);
}