diff options
author | Alam Arias <alam.gbc@gmail.com> | 2013-03-08 14:27:02 -0500 |
---|---|---|
committer | Tanu Kaskinen <tanuk@iki.fi> | 2013-03-11 13:23:06 +0200 |
commit | 0d7cbc57a01ecb2f6e86c183fbba22c30ca06a06 (patch) | |
tree | db0abcdac4e215cbcfe02b310522560b1a1432f2 /src | |
parent | 85e09f48a9384a30a526b3498921e5516ba4d5d4 (diff) |
added back support for gtkmm-2.4 builds
Diffstat (limited to 'src')
-rw-r--r-- | src/devicewidget.cc | 5 | ||||
-rw-r--r-- | src/devicewidget.h | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/devicewidget.cc b/src/devicewidget.cc index 1c34ea6..1a148ee 100644 --- a/src/devicewidget.cc +++ b/src/devicewidget.cc @@ -63,8 +63,13 @@ DeviceWidget::DeviceWidget(BaseObjectType* cobject, const Glib::RefPtr<Gtk::Buil for (unsigned i = 0; i < PA_CHANNELS_MAX; i++) channelWidgets[i] = NULL; +#ifdef HAVE_GTK3 offsetAdjustment = Gtk::Adjustment::create(0.0, -2000.0, 2000.0, 10.0, 50.0, 0.0); offsetButton->configure(offsetAdjustment, 0, 2); +#else + offsetAdjustment = new Gtk::Adjustment(0.0, -2000.0, 2000.0, 10.0, 50.0, 0.0); + offsetButton->configure(*offsetAdjustment, 0.0, 2); +#endif /* HAVE_GTK3 */ } void DeviceWidget::init(MainWindow* mainWindow, Glib::ustring deviceType) { diff --git a/src/devicewidget.h b/src/devicewidget.h index d2dff51..586c2cf 100644 --- a/src/devicewidget.h +++ b/src/devicewidget.h @@ -98,7 +98,11 @@ protected: Gtk::HBox *portSelect, *offsetSelect; Gtk::ComboBox *portList; Glib::RefPtr<Gtk::ListStore> treeModel; +#ifdef HAVE_GTK3 Glib::RefPtr<Gtk::Adjustment> offsetAdjustment; +#else + Gtk::Adjustment *offsetAdjustment; +#endif /* HAVE_GTK3 */ private: Glib::ustring mDeviceType; |