Ticket #46730: 0003-gtk2-mode.patch

File 0003-gtk2-mode.patch, 576 bytes (added by RJVB (René Bertin), 10 years ago)

filter out GTk3-specific code

  • src/devicewidget.cc

    diff --git a/src/devicewidget.cc b/src/devicewidget.cc
    index 1c34ea6..165a4b8 100644
    a b DeviceWidget::DeviceWidget(BaseObjectType* cobject, const Glib::RefPtr<Gtk::Buil 
    6363    for (unsigned i = 0; i < PA_CHANNELS_MAX; i++)
    6464        channelWidgets[i] = NULL;
    6565
     66#ifdef HAVE_GTK3
    6667    offsetAdjustment = Gtk::Adjustment::create(0.0, -2000.0, 2000.0, 10.0, 50.0, 0.0);
    6768    offsetButton->configure(offsetAdjustment, 0, 2);
     69#endif
    6870}
    6971
    7072void DeviceWidget::init(MainWindow* mainWindow, Glib::ustring deviceType) {