summaryrefslogtreecommitdiffstats
path: root/src/extension/param/notebook.cpp
diff options
context:
space:
mode:
authorAlex Valavanis <valavanisalex@gmail.com>2012-05-22 22:27:35 +0000
committerAlex Valavanis <valavanisalex@gmail.com>2012-05-22 22:27:35 +0000
commit2c9a5721cf6dd4f10ebfb2a06eb7663c4fc120d9 (patch)
tree1f47f1368dc01404db69f443e76fe847700e3047 /src/extension/param/notebook.cpp
parentDutch translation update (diff)
downloadinkscape-2c9a5721cf6dd4f10ebfb2a06eb7663c4fc120d9.tar.gz
inkscape-2c9a5721cf6dd4f10ebfb2a06eb7663c4fc120d9.zip
Drop deprecated GtkNotebookPage usage
(bzr r11401)
Diffstat (limited to 'src/extension/param/notebook.cpp')
-rw-r--r--src/extension/param/notebook.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/extension/param/notebook.cpp b/src/extension/param/notebook.cpp
index ee7f15004..b4d4cbd16 100644
--- a/src/extension/param/notebook.cpp
+++ b/src/extension/param/notebook.cpp
@@ -352,7 +352,11 @@ public:
// hook function
this->signal_switch_page().connect(sigc::mem_fun(this, &ParamNotebookWdg::changed_page));
};
+#if WITH_GTKMM_3_0
+ void changed_page(Gtk::Widget *page, guint pagenum);
+#else
void changed_page(GtkNotebookPage *page, guint pagenum);
+#endif
bool activated;
};
@@ -363,8 +367,11 @@ public:
* is actually visible. This to exclude 'fake' changes when the
* notebookpages are added or removed.
*/
-void ParamNotebookWdg::changed_page(GtkNotebookPage */*page*/,
- guint pagenum)
+#if WITH_GTKMM_3_0
+void ParamNotebookWdg::changed_page(Gtk::Widget * /*page*/, guint pagenum)
+#else
+void ParamNotebookWdg::changed_page(GtkNotebookPage * /*page*/, guint pagenum)
+#endif
{
if (get_visible()) {
_pref->set((int)pagenum, _doc, _node);