pavucontrol

This commit is contained in:
milisman 2016-04-26 19:55:59 +00:00
parent 4618b125b7
commit 364019c3ea
2 changed files with 60 additions and 0 deletions

View File

@ -0,0 +1,32 @@
diff -u -r pavucontrol-2.0.orig/src/devicewidget.cc pavucontrol-2.0/src/devicewidget.cc
--- pavucontrol-2.0.orig/src/devicewidget.cc 2014-11-10 10:30:36.273878918 +0900
+++ pavucontrol-2.0/src/devicewidget.cc 2014-11-10 10:39:18.554891364 +0900
@@ -63,8 +63,13 @@
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, 2);
+#endif
}
void DeviceWidget::init(MainWindow* mainWindow, Glib::ustring deviceType) {
diff -u -r pavucontrol-2.0.orig/src/devicewidget.h pavucontrol-2.0/src/devicewidget.h
--- pavucontrol-2.0.orig/src/devicewidget.h 2014-11-10 10:30:36.273878918 +0900
+++ pavucontrol-2.0/src/devicewidget.h 2014-11-10 10:39:12.869891228 +0900
@@ -98,7 +98,11 @@
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
private:
Glib::ustring mDeviceType;

View File

@ -0,0 +1,28 @@
# Description: Pulseaudio graphical mixer
# URL: http://www.freedesktop.org/software/pulseaudio/pavucontrol/
# Maintainer: Alan Mizrahi, alan at mizrahi dot com dot ve
# packager: milisarge
# Depends on: pulseaudio gtk2 libcanberra gtkmm libsigc++
name=pavucontrol
version=2.0
release=1
source=(http://freedesktop.org/software/pulseaudio/pavucontrol/$name-$version.tar.xz pavucontrol-gtk2.patch)
build() {
cd $name-$version
# Fix gtk2 compilation
patch -p1 -i $SRC/pavucontrol-gtk2.patch
export CXXFLAGS="$CXXFLAGS -std=c++11"
./configure \
--prefix=/usr \
--disable-gtk3 \
--disable-lynx \
--disable-dependency-tracking
make
make DESTDIR=$PKG install
rm -rf $PKG/usr/share/doc
}