added back support for gtkmm-2.4 builds
This commit is contained in:
parent
85e09f48a9
commit
0d7cbc57a0
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue