diff options
| author | Alex Valavanis <valavanisalex@gmail.com> | 2016-08-10 08:50:43 +0000 |
|---|---|---|
| committer | Alex Valavanis <valavanisalex@gmail.com> | 2016-08-10 08:50:43 +0000 |
| commit | ca863bcb36efdc7d16f4ba0e85c948837bc4d9d5 (patch) | |
| tree | 7dc44c3e06452a57448678459211c54768f24fd0 /src/ui | |
| parent | Move some main functions to Application class (diff) | |
| parent | Use Gdk::Seat instead of Gdk::DeviceManager (diff) | |
| download | inkscape-ca863bcb36efdc7d16f4ba0e85c948837bc4d9d5.tar.gz inkscape-ca863bcb36efdc7d16f4ba0e85c948837bc4d9d5.zip | |
Fix build with Gtk+ 3.20
(bzr r15049)
Diffstat (limited to 'src/ui')
| -rw-r--r-- | src/ui/dialog/filter-effects-dialog.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/ui/dialog/filter-effects-dialog.cpp b/src/ui/dialog/filter-effects-dialog.cpp index 8dbc90cc5..a0cd786dc 100644 --- a/src/ui/dialog/filter-effects-dialog.cpp +++ b/src/ui/dialog/filter-effects-dialog.cpp @@ -22,7 +22,12 @@ #include "dialog-manager.h" #include <gtkmm/imagemenuitem.h> -#include <gdkmm/devicemanager.h> +#include <gdkmm/display.h> +#if GTK_CHECK_VERSION(3, 20, 0) +# include <gdkmm/seat.h> +#else +# include <gdkmm/devicemanager.h> +#endif #include "ui/widget/spinbutton.h" @@ -1966,8 +1971,13 @@ bool FilterEffectsDialog::PrimitiveList::on_draw_signal(const Cairo::RefPtr<Cair Gdk::ModifierType mask; auto display = get_bin_window()->get_display(); +#if GTK_CHECK_VERSION(3, 20, 0) + auto seat = display->get_default_seat(); + auto device = seat->get_pointer(); +#else auto dm = display->get_device_manager(); auto device = dm->get_client_pointer(); +#endif get_bin_window()->get_device_position(device, mx, my, mask); // Outline the bottom of the connection area |
