From 2c9a5721cf6dd4f10ebfb2a06eb7663c4fc120d9 Mon Sep 17 00:00:00 2001 From: Alex Valavanis Date: Tue, 22 May 2012 23:27:35 +0100 Subject: Drop deprecated GtkNotebookPage usage (bzr r11401) --- src/ui/dialog/transformation.cpp | 7 +++++-- src/ui/dialog/transformation.h | 8 ++++++-- 2 files changed, 11 insertions(+), 4 deletions(-) (limited to 'src/ui') diff --git a/src/ui/dialog/transformation.cpp b/src/ui/dialog/transformation.cpp index 1951dc92a..cae2ec131 100644 --- a/src/ui/dialog/transformation.cpp +++ b/src/ui/dialog/transformation.cpp @@ -431,8 +431,11 @@ void Transformation::updateSelection(PageType page, Inkscape::Selection *selecti selection && !selection->isEmpty()); } -void Transformation::onSwitchPage(GtkNotebookPage */*page*/, - guint pagenum) +#if WITH_GTKMM_3_0 +void Transformation::onSwitchPage(Gtk::Widget * /*page*/, guint pagenum) +#else +void Transformation::onSwitchPage(GtkNotebookPage * /*page*/, guint pagenum) +#endif { updateSelection((PageType)pagenum, sp_desktop_selection(getDesktop())); } diff --git a/src/ui/dialog/transformation.h b/src/ui/dialog/transformation.h index 901a807a5..5df9fd57e 100644 --- a/src/ui/dialog/transformation.h +++ b/src/ui/dialog/transformation.h @@ -167,8 +167,12 @@ protected: virtual void _apply(); void presentPage(PageType page); - void onSwitchPage(GtkNotebookPage *page, - guint pagenum); + +#if WITH_GTKMM_3_0 + void onSwitchPage(Gtk::Widget *page, guint pagenum); +#else + void onSwitchPage(GtkNotebookPage *page, guint pagenum); +#endif /** * Callbacks for when a user changes values on the panels -- cgit v1.2.3