Hello community,

here is the log from the commit of package pavucontrol-qt for openSUSE:Factory 
checked in at 2017-10-24 22:23:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/pavucontrol-qt (Old)
 and      /work/SRC/openSUSE:Factory/.pavucontrol-qt.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "pavucontrol-qt"

Tue Oct 24 22:23:29 2017 rev:3 rq:535987 version:0.3.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/pavucontrol-qt/pavucontrol-qt.changes    
2017-03-13 15:33:36.221257196 +0100
+++ /work/SRC/openSUSE:Factory/.pavucontrol-qt.new/pavucontrol-qt.changes       
2017-10-24 22:23:30.276058547 +0200
@@ -1,0 +2,26 @@
+Mon Oct 23 11:55:15 UTC 2017 - [email protected]
+
+- Update to 0.3.0:
+  * Bump version to 0.3.0
+  * correct spelling mistake
+  * Added Lithuanian .desktop file
+  * liblxqt make no sense here
+  * Copied issue template
+  * set Qt::AA_UseHighDpiPixmaps to true
+  * Added version to cli options
+  * Added default CMAKE_BUILD_TYPE and versioning
+  * added pl.desktop
+  * ui: Use "changes-prevent-symbolic" icon
+  * MainWindow: Remove old GTK remnants
+  * Add Catalan translation
+  * Channel: Add slider snapping to 100%
+  * Channel: Address compiler warnings
+  * Channel: Align slider controls correclty
+  * Channel: Add ticks to volume slider
+  * Channel: Use percentage for volume scale
+  * devicewidgte: Re-add device renaming
+  * MainWindow: Force using the size from previous run
+  * MainWindow: Add quit shortcut
+  * Added pavucontrol-qt_da.desktop
+
+-------------------------------------------------------------------

Old:
----
  pavucontrol-qt-0.2.0.tar.xz
  pavucontrol-qt-0.2.0.tar.xz.asc

New:
----
  pavucontrol-qt-0.3.0.tar.xz
  pavucontrol-qt-0.3.0.tar.xz.asc

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ pavucontrol-qt.spec ++++++
--- /var/tmp/diff_new_pack.bjKDCa/_old  2017-10-24 22:23:30.860031249 +0200
+++ /var/tmp/diff_new_pack.bjKDCa/_new  2017-10-24 22:23:30.860031249 +0200
@@ -17,14 +17,14 @@
 
 
 Name:           pavucontrol-qt
-Version:        0.2.0
+Version:        0.3.0
 Release:        0
 Summary:        Qt port of pavucontrol
 License:        GPL-2.0
 Group:          System/GUI/LXQt
 Url:            https://github.com/lxde/pavucontrol-qt
-Source0:        
https://downloads.lxqt.org/%{name}/%{version}/%{name}-%{version}.tar.xz
-Source1:        
https://downloads.lxqt.org/%{name}/%{version}/%{name}-%{version}.tar.xz.asc
+Source:         
https://github.com/lxde/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz
+Source1:        
https://github.com/lxde/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz.asc
 Source2:        %{name}.keyring
 BuildRequires:  cmake >= 3.0.2
 BuildRequires:  gcc-c++
@@ -39,6 +39,7 @@
 BuildRequires:  pkgconfig(libpulse) >= 5.0
 BuildRequires:  pkgconfig(libpulse-mainloop-glib) >= 0.9.16
 BuildRequires:  pkgconfig(lxqt)
+Recommends:     %{name}-lang
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
 %description

++++++ pavucontrol-qt-0.2.0.tar.xz -> pavucontrol-qt-0.3.0.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pavucontrol-qt-0.2.0/.gitignore 
new/pavucontrol-qt-0.3.0/.gitignore
--- old/pavucontrol-qt-0.2.0/.gitignore 2016-12-11 11:20:39.000000000 +0100
+++ new/pavucontrol-qt-0.3.0/.gitignore 1970-01-01 01:00:00.000000000 +0100
@@ -1,29 +0,0 @@
-ABOUT-NLS
-ChangeLog
-*~
-config.guess
-config.rpath
-config.sub
-intltool-extract.in
-intltool-merge.in
-intltool-update.in
-aclocal.m4
-*.cache
-compile
-config.h
-config.h.in
-config.log
-config.status
-configure
-depcomp
-README
-README.html
-install-sh
-missing
-*.o
-stamp*
-Makefile
-Makefile.in
-.deps
-*.tar.gz
-*.swp
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pavucontrol-qt-0.2.0/CHANGELOG 
new/pavucontrol-qt-0.3.0/CHANGELOG
--- old/pavucontrol-qt-0.2.0/CHANGELOG  2016-12-11 11:20:39.000000000 +0100
+++ new/pavucontrol-qt-0.3.0/CHANGELOG  2017-09-24 14:35:55.000000000 +0200
@@ -1,7 +1,33 @@
 
-pavucontrol-qt-0.2.0 / 2016-12-11
+pavucontrol-qt-0.3.0 / 2017-09-24
 =================================
 
+  * Bump version to 0.3.0
+  * correct spelling mistake
+  * Added Lithuanian .desktop file
+  * liblxqt make no sense here
+  * Copied issue template
+  * set Qt::AA_UseHighDpiPixmaps to true
+  * Added version to cli options
+  * Added default CMAKE_BUILD_TYPE and versioning
+  * added pl.desktop
+  * ui: Use "changes-prevent-symbolic" icon
+  * MainWindow: Remove old GTK remnants
+  * Add Catalan translation
+  * Channel: Add slider snapping to 100%
+  * Channel: Address compiler warnings
+  * Channel: Align slider controls correclty
+  * Channel: Add ticks to volume slider
+  * Channel: Use percentage for volume scale
+  * devicewidgte: Re-add device renaming
+  * MainWindow: Force using the size from previous run
+  * MainWindow: Add quit shortcut
+  * Added pavucontrol-qt_da.desktop
+
+0.2.0 / 2016-12-11
+==================
+
+  * Release 0.2.0: Update changelog
   * Release 0.2.0: Update changelog
   * Use QSettings for storing configuration
   * Create pavucontrol-qt_pt.desktop
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pavucontrol-qt-0.2.0/CMakeLists.txt 
new/pavucontrol-qt-0.3.0/CMakeLists.txt
--- old/pavucontrol-qt-0.2.0/CMakeLists.txt     2016-12-11 11:20:39.000000000 
+0100
+++ new/pavucontrol-qt-0.3.0/CMakeLists.txt     2017-09-24 14:35:55.000000000 
+0200
@@ -3,7 +3,7 @@
 
 option(UPDATE_TRANSLATIONS "Update source translation translations/*.ts files" 
OFF)
 
-set(LXQTBT_MINIMUM_VERSION "0.1.0")
+set(LXQTBT_MINIMUM_VERSION "0.4.0")
 list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
 
 set(CMAKE_INCLUDE_CURRENT_DIR ON)
@@ -13,16 +13,26 @@
 
 include(GNUInstallDirs)
 
-find_package(Qt5Widgets REQUIRED QUIET)
-find_package(Qt5LinguistTools REQUIRED QUIET)
+find_package(Qt5Widgets REQUIRED)
+find_package(Qt5LinguistTools REQUIRED)
 find_package(Qt5DBus REQUIRED)
 
 find_package(lxqt-build-tools ${LXQTBT_MINIMUM_VERSION} REQUIRED)
 
+if(NOT CMAKE_BUILD_TYPE)
+    set(CMAKE_BUILD_TYPE Release)
+endif()
+
+set(PAVUCONTROLQT_MAJOR_VERSION 0)
+set(PAVUCONTROLQT_MINOR_VERSION 3)
+set(PAVUCONTROLQT_PATCH_VERSION 0)
+set(PAVUCONTROLQT_VERSION 
${PAVUCONTROLQT_MAJOR_VERSION}.${PAVUCONTROLQT_MINOR_VERSION}.${PAVUCONTROLQT_PATCH_VERSION})
+add_definitions("-DPAVUCONTROLQT_VERSION=\"${PAVUCONTROLQT_VERSION}\"")
+
 include(LXQtCompilerSettings NO_POLICY_SCOPE)
 include(LXQtTranslate)
 
-find_package(PkgConfig REQUIRED QUIET)
+find_package(PkgConfig REQUIRED)
 pkg_check_modules(
     PULSE REQUIRED
     libpulse>=5.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pavucontrol-qt-0.2.0/src/.gitignore 
new/pavucontrol-qt-0.3.0/src/.gitignore
--- old/pavucontrol-qt-0.2.0/src/.gitignore     2016-12-11 11:20:39.000000000 
+0100
+++ new/pavucontrol-qt-0.3.0/src/.gitignore     1970-01-01 01:00:00.000000000 
+0100
@@ -1,2 +0,0 @@
-pavucontrol
-pavucontrol.desktop
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pavucontrol-qt-0.2.0/src/channel.cc 
new/pavucontrol-qt-0.3.0/src/channel.cc
--- old/pavucontrol-qt-0.2.0/src/channel.cc     2016-12-11 11:20:39.000000000 
+0100
+++ new/pavucontrol-qt-0.3.0/src/channel.cc     2017-09-24 14:35:55.000000000 
+0200
@@ -25,9 +25,23 @@
 #include <QGridLayout>
 #include <QLabel>
 #include <QSlider>
+#include <QFontMetrics>
 #include "channel.h"
 #include "minimalstreamwidget.h"
 
+constexpr int SLIDER_SNAP = 2;
+static inline int paVolume2Percent(pa_volume_t vol)
+{
+    if (vol > PA_VOLUME_UI_MAX)
+        vol = PA_VOLUME_UI_MAX;
+    return qRound(static_cast<double>(vol - PA_VOLUME_MUTED) / PA_VOLUME_NORM 
* 100);
+}
+
+static inline pa_volume_t percent2PaVolume(int percent)
+{
+    return PA_VOLUME_MUTED + qRound(static_cast<double>(percent) / 100 * 
PA_VOLUME_NORM);
+}
+
 /*** ChannelWidget ***/
 
 Channel::Channel(QGridLayout* parent) :
@@ -45,34 +59,41 @@
     parent->addWidget(volumeScale, row, 1);
     parent->addWidget(volumeLabel, row, 2);
 
-    volumeScale->setMinimum(PA_VOLUME_MUTED);
-    volumeScale->setMaximum(PA_VOLUME_UI_MAX);
-    volumeScale->setValue(PA_VOLUME_NORM);
-    volumeScale->setSingleStep(qRound((double)PA_VOLUME_NORM)/100.0);
-    volumeScale->setPageStep(qRound((double)PA_VOLUME_NORM)/20.0);
+    // make the info font smaller
+    QFont label_font = volumeLabel->font();
+    if (label_font.pixelSize() == -1)
+        label_font.setPointSizeF(label_font.pointSizeF() * 0.8);
+    else
+        
label_font.setPixelSize(qRound(static_cast<double>(label_font.pixelSize()) * 
0.8));
+    volumeLabel->setFont(label_font);
+    
volumeLabel->setFixedWidth(QFontMetrics{volumeLabel->font()}.size(Qt::TextSingleLine,
 QStringLiteral("100%(-99.99dB)")).width());
+    volumeLabel->setAlignment(Qt::AlignHCenter);
+    volumeLabel->setTextFormat(Qt::RichText);
+
+    volumeScale->setRange(paVolume2Percent(PA_VOLUME_MUTED), 
paVolume2Percent(PA_VOLUME_UI_MAX));
+    volumeScale->setValue(paVolume2Percent(PA_VOLUME_NORM));
+    volumeScale->setPageStep(5);
+    volumeScale->setTickInterval(paVolume2Percent(PA_VOLUME_NORM));
+    volumeScale->setTickPosition(QSlider::TicksBelow);
+    volumeScale->setTracking(false);
     setBaseVolume(PA_VOLUME_NORM);
 
     connect(volumeScale, &QSlider::valueChanged, this, 
&Channel::onVolumeScaleValueChanged);
+    connect(volumeScale, &QSlider::sliderMoved, this, 
&Channel::onVolumeScaleSliderMoved);
 }
 
 void Channel::setVolume(pa_volume_t volume) {
-    double v;
-    char txt[64];
-
-    v = ((gdouble) volume * 100) / PA_VOLUME_NORM;
+    const int v = paVolume2Percent(volume);
     if (can_decibel) {
-        double dB = pa_sw_volume_to_dB(volume);
-        if (dB > PA_DECIBEL_MININFTY)
-            snprintf(txt, sizeof(txt), "<small>%0.0f%% (%0.2fdB)</small>", v, 
dB);
-        else
-            snprintf(txt, sizeof(txt), "<small>%0.0f%% (-&#8734;dB)</small>", 
v);
+        const double dB = pa_sw_volume_to_dB(volume);
+        volumeLabel->setText(tr("%1% (%2dB)", "volume slider label [X% 
(YdB)]").arg(v)
+                .arg(dB > PA_DECIBEL_MININFTY ? QString::asprintf("%0.2f", dB) 
: QStringLiteral("-&#8734;")));
     }
     else
-        snprintf(txt, sizeof(txt), "%0.0f%%", v);
-    volumeLabel->setText(QString::fromUtf8(txt));
+        volumeLabel->setText(tr("%1%", "volume slider label [X%]").arg(v));
 
     volumeScaleEnabled = false;
-    volumeScale->setValue(volume > PA_VOLUME_UI_MAX ? PA_VOLUME_UI_MAX : 
volume);
+    volumeScale->setValue(v);
     volumeScaleEnabled = true;
 }
 
@@ -98,8 +119,27 @@
     if (minimalStreamWidget->updating)
         return;
 
-    pa_volume_t volume = (pa_volume_t) volumeScale->value();
-    minimalStreamWidget->updateChannelVolume(channel, volume);
+    minimalStreamWidget->updateChannelVolume(channel, percent2PaVolume(value));
+}
+
+void Channel::onVolumeScaleSliderMoved(int value)
+{
+    if (!volumeScaleEnabled)
+        return;
+
+    if (minimalStreamWidget->updating)
+        return;
+
+    const int current_value = volumeScale->value();
+    if (current_value == 100 && qAbs(value - current_value) <= SLIDER_SNAP)
+    {
+        volumeScale->blockSignals(true);
+        volumeScale->setSliderPosition(current_value);
+        volumeScale->blockSignals(false);
+        return;
+    }
+
+    volumeScale->setValue(value);
 }
 
 /*
@@ -112,7 +152,7 @@
 }
 */
 
-void Channel::setBaseVolume(pa_volume_t v) {
+void Channel::setBaseVolume(pa_volume_t /*v*/) {
 #if 0  // FIXME: Qt does not support this functionality
     gtk_scale_clear_marks(GTK_SCALE(volumeScale->gobj()));
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pavucontrol-qt-0.2.0/src/channel.h 
new/pavucontrol-qt-0.3.0/src/channel.h
--- old/pavucontrol-qt-0.2.0/src/channel.h      2016-12-11 11:20:39.000000000 
+0100
+++ new/pavucontrol-qt-0.3.0/src/channel.h      2017-09-24 14:35:55.000000000 
+0200
@@ -43,6 +43,7 @@
 
 protected Q_SLOTS:
     void onVolumeScaleValueChanged(int value);
+    void onVolumeScaleSliderMoved(int value);
 
 public:
     bool can_decibel;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pavucontrol-qt-0.2.0/src/devicewidget.cc 
new/pavucontrol-qt-0.3.0/src/devicewidget.cc
--- old/pavucontrol-qt-0.2.0/src/devicewidget.cc        2016-12-11 
11:20:39.000000000 +0100
+++ new/pavucontrol-qt-0.3.0/src/devicewidget.cc        2017-09-24 
14:35:55.000000000 +0200
@@ -29,12 +29,15 @@
 #include "channel.h"
 #include <sstream>
 #include <QLabel>
+#include <QMessageBox>
+#include <QInputDialog>
 
 /*** DeviceWidget ***/
 DeviceWidget::DeviceWidget(MainWindow* parent, QByteArray deviceType) :
     MinimalStreamWidget(parent),
     offsetButtonEnabled(false),
     mpMainWindow(parent),
+    rename{new QAction{tr("Rename device..."), this}},
     mDeviceType(deviceType) {
 
     setupUi(this);
@@ -45,18 +48,13 @@
     timeout.setInterval(100);
     connect(&timeout, &QTimer::timeout, this, &DeviceWidget::timeoutEvent);
 
-    // FIXME: this->signal_button_press_event().connect(sigc::mem_fun(*this, 
&DeviceWidget::onContextTriggerEvent));
     connect(muteToggleButton, &QToolButton::toggled, this, 
&DeviceWidget::onMuteToggleButton);
     connect(lockToggleButton, &QToolButton::toggled, this, 
&DeviceWidget::onLockToggleButton);
     connect(defaultToggleButton, &QToolButton::toggled, this, 
&DeviceWidget::onDefaultToggleButton);
 
-#if 0
-
-    rename.set_label(tr("Rename Device...").toUtf8().constData());
-    rename.signal_activate().connect(sigc::mem_fun(*this, 
&DeviceWidget::renamePopup));
-    contextMenu.append(rename);
-    contextMenu.show_all();
-#endif
+    connect(rename, &QAction::triggered, this, &DeviceWidget::renamePopup);
+    addAction(rename);
+    setContextMenuPolicy(Qt::ActionsContextMenu);
 
     connect(portList, 
static_cast<void(QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this, 
&DeviceWidget::onPortChange);
     connect(offsetButton, 
static_cast<void(QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, 
&DeviceWidget::onOffsetChange);
@@ -220,56 +218,27 @@
     }
 }
 
-#if 0
-bool DeviceWidget::onContextTriggerEvent(GdkEventButton* event) {
-    if (GDK_BUTTON_PRESS == event->type && 3 == event->button) {
-        contextMenu.popup(event->button, event->time);
-        return true;
-    }
-
-    return false;
-}
-#endif
-
 void DeviceWidget::renamePopup() {
     if (updating)
         return;
-#if 0
     if (!mpMainWindow->canRenameDevices) {
-        Gtk::MessageDialog dialog(
-            *mpMainWindow,
-            tr("Sorry, but device renaming is not 
supported.").toUtf8().constData(),
-            false,
-            Gtk::MESSAGE_WARNING,
-            Gtk::BUTTONS_OK,
-            true);
-        dialog.set_secondary_text(tr("You need to load module-device-manager 
in the PulseAudio server in order to rename devices").toUtf8().constData());
-        dialog.run();
+        QMessageBox::warning(this, tr("Sorry, but device renaming is not 
supported.")
+                , tr("You need to load module-device-manager in the PulseAudio 
server in order to rename devices"));
         return;
     }
 
-    Gtk::Dialog* dialog;
-    Gtk::Entry* renameText;
-
-    Glib::RefPtr<Gtk::Builder> x = Gtk::Builder::create_from_file(GLADE_FILE, 
"renameDialog");
-    x->get_widget("renameDialog", dialog);
-    x->get_widget("renameText", renameText);
-
-    renameText->set_text(description);
-    dialog->add_button(Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL);
-    dialog->add_button(Gtk::Stock::OK, Gtk::RESPONSE_OK);
-    dialog->set_default_response(Gtk::RESPONSE_OK);
-    if (Gtk::RESPONSE_OK == dialog->run()) {
+    const QString old_name = description.constData();
+    bool ok;
+    const QString new_name = QInputDialog::getText(this, 
QCoreApplication::organizationName(), tr("Rename device %1 to:").arg(old_name)
+            , QLineEdit::Normal, old_name, &ok);
+    if (ok && new_name != old_name) {
         pa_operation* o;
-        gchar *key = g_markup_printf_escaped("%s:%s", mDeviceType, name);
+        gchar *key = g_markup_printf_escaped("%s:%s", mDeviceType.constData(), 
name.constData());
 
-        if (!(o = pa_ext_device_manager_set_device_description(get_context(), 
key, renameText->get_text(), NULL, NULL))) {
-            show_error(tr("pa_ext_device_manager_write() 
failed").toUtf8().constData());
-            return;
-        }
-        pa_operation_unref(o);
+        if (!(o = pa_ext_device_manager_set_device_description(get_context(), 
key, new_name.toUtf8().constData(), NULL, NULL)))
+            show_error(tr("pa_ext_device_manager_set_device_description() 
failed").toUtf8().constData());
+        else
+            pa_operation_unref(o);
         g_free(key);
     }
-    delete dialog;
-#endif
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pavucontrol-qt-0.2.0/src/devicewidget.h 
new/pavucontrol-qt-0.3.0/src/devicewidget.h
--- old/pavucontrol-qt-0.2.0/src/devicewidget.h 2016-12-11 11:20:39.000000000 
+0100
+++ new/pavucontrol-qt-0.3.0/src/devicewidget.h 2017-09-24 14:35:55.000000000 
+0200
@@ -81,8 +81,7 @@
 
     virtual void onPortChange() = 0;
 
-    // Gtk::Menu contextMenu;
-    // Gtk::MenuItem rename;
+    QAction * rename;
 
 private:
     QByteArray mDeviceType;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pavucontrol-qt-0.2.0/src/devicewidget.ui 
new/pavucontrol-qt-0.3.0/src/devicewidget.ui
--- old/pavucontrol-qt-0.2.0/src/devicewidget.ui        2016-12-11 
11:20:39.000000000 +0100
+++ new/pavucontrol-qt-0.3.0/src/devicewidget.ui        2017-09-24 
14:35:55.000000000 +0200
@@ -69,7 +69,7 @@
         <string>Lock channels together</string>
        </property>
        <property name="icon">
-        <iconset theme="changes-prevent"/>
+        <iconset theme="changes-prevent-symbolic"/>
        </property>
        <property name="checkable">
         <bool>true</bool>
@@ -111,7 +111,11 @@
     </widget>
    </item>
    <item>
-    <layout class="QGridLayout" name="channelsGrid"/>
+    <layout class="QGridLayout" name="channelsGrid">
+     <property name="horizontalSpacing">
+      <number>0</number>
+     </property>
+    </layout>
    </item>
    <item>
     <widget class="QCheckBox" name="advancedOptions">
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pavucontrol-qt-0.2.0/src/mainwindow.cc 
new/pavucontrol-qt-0.3.0/src/mainwindow.cc
--- old/pavucontrol-qt-0.2.0/src/mainwindow.cc  2016-12-11 11:20:39.000000000 
+0100
+++ new/pavucontrol-qt-0.3.0/src/mainwindow.cc  2017-09-24 14:35:55.000000000 
+0200
@@ -90,13 +90,17 @@
     connect(sourceTypeComboBox, 
static_cast<void(QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this, 
&MainWindow::onSourceTypeComboBoxChanged);
     connect(showVolumeMetersCheckButton, &QCheckBox::toggled, this, 
&MainWindow::onShowVolumeMetersCheckButtonToggled);
 
+    QAction * quit = new QAction{this};
+    connect(quit, &QAction::triggered, this, &QWidget::close);
+    quit->setShortcut(QKeySequence::Quit);
+    addAction(quit);
+
     const QSettings config;
 
     
showVolumeMetersCheckButton->setChecked(config.value("window/showVolumeMeters", 
true).toBool());
 
     const QSize last_size  = config.value("window/size").toSize();
-    const QSize default_size = size(); // widget is resized in setupUi based 
on values in *.ui
-    if (last_size.width() >= default_size.width() && last_size.height() >= 
default_size.height())
+    if (last_size.isValid())
         resize(last_size);
 
     const QVariant sinkInputTypeSelection = 
config.value("window/sinkInputType");
@@ -120,50 +124,6 @@
     connectingLabel->show();
 }
 
-void MainWindow::on_realize() {
-#if 0
-
-    Gtk::Window::on_realize();
-    get_window()->set_cursor(Gdk::Cursor::create(Gdk::WATCH));
-
-#endif
-}
-
-#if 0
-bool MainWindow::on_key_press_event(GdkEventKey* event) {
-
-    if (GDK_KEY_Escape == event->keyval) {
-        Gtk::Main::quit();
-        return true;
-    }
-    if (event->state & GDK_CONTROL_MASK) {
-        switch (event->keyval) {
-            case GDK_KEY_KP_1:
-            case GDK_KEY_KP_2:
-            case GDK_KEY_KP_3:
-            case GDK_KEY_KP_4:
-            case GDK_KEY_KP_5:
-                notebook->set_current_page(event->keyval - GDK_KEY_KP_1);
-                return true;
-            case GDK_KEY_1:
-            case GDK_KEY_2:
-            case GDK_KEY_3:
-            case GDK_KEY_4:
-            case GDK_KEY_5:
-                notebook->set_current_page(event->keyval - GDK_KEY_1);
-                return true;
-            case GDK_KEY_W:
-            case GDK_KEY_Q:
-            case GDK_KEY_w:
-            case GDK_KEY_q:
-                Gtk::Main::quit();
-                return true;
-        }
-    }
-    return Gtk::Window::on_key_press_event(event);
-}
-#endif
-
 MainWindow::~MainWindow() {
     QSettings config;
     config.setValue("window/size", size());
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pavucontrol-qt-0.2.0/src/mainwindow.h 
new/pavucontrol-qt-0.3.0/src/mainwindow.h
--- old/pavucontrol-qt-0.2.0/src/mainwindow.h   2016-12-11 11:20:39.000000000 
+0100
+++ new/pavucontrol-qt-0.3.0/src/mainwindow.h   2017-09-24 14:35:55.000000000 
+0200
@@ -104,10 +104,6 @@
 
     bool canRenameDevices;
 
-protected:
-    virtual void on_realize();
-    // virtual bool on_key_press_event(GdkEventKey* event);
-
 private:
     gboolean m_connected;
     gchar* m_config_filename;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pavucontrol-qt-0.2.0/src/pavucontrol.cc 
new/pavucontrol-qt-0.3.0/src/pavucontrol.cc
--- old/pavucontrol-qt-0.2.0/src/pavucontrol.cc 2016-12-11 11:20:39.000000000 
+0100
+++ new/pavucontrol-qt-0.3.0/src/pavucontrol.cc 2017-09-24 14:35:55.000000000 
+0200
@@ -653,7 +653,7 @@
         return 0;
 
     app.setOrganizationName(QStringLiteral("pavucontrol-qt"));
-
+    app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
 
     QString locale = QLocale::system().name();
     QTranslator qtTranslator;
@@ -668,6 +668,11 @@
     parser.setApplicationDescription(QObject::tr("PulseAudio Volume Control"));
     parser.addHelpOption();
 
+    const QString VERINFO = QStringLiteral(PAVUCONTROLQT_VERSION
+                                           "\nQt        " QT_VERSION_STR);
+    app.setApplicationVersion(VERINFO);
+    parser.addVersionOption();
+
     QCommandLineOption tabOption(QStringList() << "tab" << "t", 
QObject::tr("Select a specific tab on load."), "tab");
     parser.addOption(tabOption);
 
@@ -677,9 +682,6 @@
     QCommandLineOption maximizeOption(QStringList() << "maximize" << "m", 
QObject::tr("Maximize the window."));
     parser.addOption(maximizeOption);
 
-    // QCommandLineOption versionOption("version", QObject::tr("Show 
version"));
-    // parser.addOption(versionOption);
-
     parser.process(app);
     default_tab = parser.value(tabOption).toInt();
     retry = parser.isSet(retryOption);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pavucontrol-qt-0.2.0/src/streamwidget.ui 
new/pavucontrol-qt-0.3.0/src/streamwidget.ui
--- old/pavucontrol-qt-0.2.0/src/streamwidget.ui        2016-12-11 
11:20:39.000000000 +0100
+++ new/pavucontrol-qt-0.3.0/src/streamwidget.ui        2017-09-24 
14:35:55.000000000 +0200
@@ -79,7 +79,7 @@
         <string>Lock channels together</string>
        </property>
        <property name="icon">
-        <iconset theme="changes-prevent"/>
+        <iconset theme="changes-prevent-symbolic"/>
        </property>
        <property name="checkable">
         <bool>true</bool>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/pavucontrol-qt-0.2.0/src/translations/pavucontrol-qt_ca.desktop 
new/pavucontrol-qt-0.3.0/src/translations/pavucontrol-qt_ca.desktop
--- old/pavucontrol-qt-0.2.0/src/translations/pavucontrol-qt_ca.desktop 
1970-01-01 01:00:00.000000000 +0100
+++ new/pavucontrol-qt-0.3.0/src/translations/pavucontrol-qt_ca.desktop 
2017-09-24 14:35:55.000000000 +0200
@@ -0,0 +1,3 @@
+Name[ca]=Control del volum de PulseAudio
+GenericName[ca]=Control del volum
+Comment[ca]=Ajusteu el nivell del volum
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/pavucontrol-qt-0.2.0/src/translations/pavucontrol-qt_da.desktop 
new/pavucontrol-qt-0.3.0/src/translations/pavucontrol-qt_da.desktop
--- old/pavucontrol-qt-0.2.0/src/translations/pavucontrol-qt_da.desktop 
1970-01-01 01:00:00.000000000 +0100
+++ new/pavucontrol-qt-0.3.0/src/translations/pavucontrol-qt_da.desktop 
2017-09-24 14:35:55.000000000 +0200
@@ -0,0 +1,3 @@
+Name[da]=PulseAudio-lydstyrkekontrol
+GenericName[da]=Lydstyrkekontrol
+Comment[da]=Justér lydstyrkeniveauet
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/pavucontrol-qt-0.2.0/src/translations/pavucontrol-qt_lt.desktop 
new/pavucontrol-qt-0.3.0/src/translations/pavucontrol-qt_lt.desktop
--- old/pavucontrol-qt-0.2.0/src/translations/pavucontrol-qt_lt.desktop 
1970-01-01 01:00:00.000000000 +0100
+++ new/pavucontrol-qt-0.3.0/src/translations/pavucontrol-qt_lt.desktop 
2017-09-24 14:35:55.000000000 +0200
@@ -0,0 +1,3 @@
+Name[lt]=PulseAudio garsio reguliavimas
+GenericName[lt]=Garsio reguliavimas
+Comment[lt]=Reguliuoti garsio lygį
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/pavucontrol-qt-0.2.0/src/translations/pavucontrol-qt_pl.desktop 
new/pavucontrol-qt-0.3.0/src/translations/pavucontrol-qt_pl.desktop
--- old/pavucontrol-qt-0.2.0/src/translations/pavucontrol-qt_pl.desktop 
1970-01-01 01:00:00.000000000 +0100
+++ new/pavucontrol-qt-0.3.0/src/translations/pavucontrol-qt_pl.desktop 
2017-09-24 14:35:55.000000000 +0200
@@ -0,0 +1,3 @@
+Name[pl]=Kontrola PulseAudio
+GenericName[pl]=Kontrola głośności
+Comment[pl]=Dostosuj głośność i ustawienia dźwięku



Reply via email to