summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/svg-fonts-dialog.cpp
diff options
context:
space:
mode:
authorAlexander Valavanis <valavanisalex@gmail.com>2017-12-26 22:54:27 +0000
committerAlexander Valavanis <valavanisalex@gmail.com>2017-12-26 22:54:27 +0000
commit5075322fc9b7fabc429c294ca9e8a00e9da69377 (patch)
treedd1f02bb4209b273401c95b7be57904c675f64d6 /src/ui/dialog/svg-fonts-dialog.cpp
parentInkview: GtkMM deprecation fixes (diff)
downloadinkscape-5075322fc9b7fabc429c294ca9e8a00e9da69377.tar.gz
inkscape-5075322fc9b7fabc429c294ca9e8a00e9da69377.zip
GtkMM popup menu deprecation fixes
Diffstat (limited to 'src/ui/dialog/svg-fonts-dialog.cpp')
-rw-r--r--src/ui/dialog/svg-fonts-dialog.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/ui/dialog/svg-fonts-dialog.cpp b/src/ui/dialog/svg-fonts-dialog.cpp
index 5284940be..d58e0a064 100644
--- a/src/ui/dialog/svg-fonts-dialog.cpp
+++ b/src/ui/dialog/svg-fonts-dialog.cpp
@@ -276,21 +276,33 @@ void SvgFontsDialog::on_kerning_value_changed(){
void SvgFontsDialog::glyphs_list_button_release(GdkEventButton* event)
{
if((event->type == GDK_BUTTON_RELEASE) && (event->button == 3)) {
+#if GTKMM_CHECK_VERSION(3,22,0)
+ _GlyphsContextMenu.popup_at_pointer(reinterpret_cast<GdkEvent *>(event));
+#else
_GlyphsContextMenu.popup(event->button, event->time);
+#endif
}
}
void SvgFontsDialog::kerning_pairs_list_button_release(GdkEventButton* event)
{
if((event->type == GDK_BUTTON_RELEASE) && (event->button == 3)) {
+#if GTKMM_CHECK_VERSION(3,22,0)
+ _KerningPairsContextMenu.popup_at_pointer(reinterpret_cast<GdkEvent *>(event));
+#else
_KerningPairsContextMenu.popup(event->button, event->time);
+#endif
}
}
void SvgFontsDialog::fonts_list_button_release(GdkEventButton* event)
{
if((event->type == GDK_BUTTON_RELEASE) && (event->button == 3)) {
+#if GTKMM_CHECK_VERSION(3,22,0)
+ _FontsContextMenu.popup_at_pointer(reinterpret_cast<GdkEvent *>(event));
+#else
_FontsContextMenu.popup(event->button, event->time);
+#endif
}
}