Add Polish translation
Fix gtk_widget_get_root_window deprecation

The function gtk_widget_get_root_window has been depcreated in GTK+ 3.12
in favor of gdk_screen_get_root_window. This gets rid of the deprecation
warning.

Signed-off-by: Niklas Koep <niklas.koep@gmail.com>
Add .gitignore file to ignore autogenerated files

Signed-off-by: Niklas Koep <niklas.koep@gmail.com>
Fixed bug that caused 100% CPU usage if soundcard is unplugged

Pass G_IO_ERR to asound_poll_cb, and exit gracefully if an error happens. Without this, it never passes the error and infinitely loops as fast as it can, causing 100% CPU utilization.

Signed-off-by: Steven Honeyman <stevenhoneyman@users.noreply.github.com>
only use gtk -panel icons if they exist
Clean up glade file

Signed-off-by: Niklas Koep <niklas.koep@gmail.com>
gitignore: ignore volumeicon binary

Signed-off-by: Niklas Koep <niklas.koep@gmail.com>
gitignore: ignore Makefile.in.in

The file po/Makefile.in.in gets autogenerated by intltoolize so don't
track it.

Signed-off-by: Niklas Koep <niklas.koep@gmail.com>
Fix warning about implicit declaration

Signed-off-by: Niklas Koep <niklas.koep@gmail.com>
Fix non-exhaustive switch statement warning

Signed-off-by: Niklas Koep <niklas.koep@gmail.com>
Never remove invalid GSource ids

Calling `g_source_remove` with an invalid GSource id is considered a
programming error since GLib 2.39 so we have to check that the id is
still valid before trying to remove it.

Signed-off-by: Niklas Koep <niklas.koep@gmail.com>
config.{c,h}: add option for panel icons

Signed-off-by: Niklas Koep <niklas.koep@gmail.com>
Use *-panel icons for the statusicon if requested

This adds proper support for the audio-volume-*-panel icon variants. If
requested in the config, we now try to use audio-volume-*-panel for the
statusicon if the default GTK icon theme is used. Otherwise we fall back
on the regular audio-volume-* variants. Note that the notification icons
always use the system's GTK icon theme again now. We mistakenly changed
this to use the *-panel versions as well at some point.

Signed-off-by: Niklas Koep <niklas.koep@gmail.com>
Preferences: add option to use *-panel icons

This adds the ability to change whether audio-volume-*-panel icon
variants should be used or not to the preferences window.

Signed-off-by: Niklas Koep <niklas.koep@gmail.com>
Preferences: change panel option label

Signed-off-by: Niklas Koep <niklas.koep@gmail.com>
preferences.ui: reset required GTK+ version to 3.0

Bumping the required GTK+ version in Glade in commit 90c29a9 was
unnecessary as volumeicon still only uses GTK+-3.0 widgets.

Signed-off-by: Niklas Koep <niklas.koep@gmail.com>
Preferences: fix padding issue caused by dc69371

Signed-off-by: Niklas Koep <niklas.koep@gmail.com>
.clang-format: use tab for indentation and...

don't use space after control statement

Signed-off-by: Niklas Koep <niklas.koep@gmail.com>
Don't format third-party code

Signed-off-by: Niklas Koep <niklas.koep@gmail.com>