diff options
author | Mateusz Łukasik <mati75@linuxmint.pl> | 2021-10-13 21:45:42 +0200 |
---|---|---|
committer | Mateusz Łukasik <mati75@linuxmint.pl> | 2021-10-13 21:45:42 +0200 |
commit | e8c3cd08f798c653f81a367ae30d04eedc7ed769 (patch) | |
tree | 1ec1e7bd5dc57834ebdbf93cba99ebeedc443a85 /patches/default-to-gtk.patch |
Import audacious_4.0.5-2.debian.tar.xz
[dgit import tarball audacious 4.0.5-2 audacious_4.0.5-2.debian.tar.xz]
Diffstat (limited to 'patches/default-to-gtk.patch')
-rw-r--r-- | patches/default-to-gtk.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/patches/default-to-gtk.patch b/patches/default-to-gtk.patch new file mode 100644 index 0000000..c18504b --- /dev/null +++ b/patches/default-to-gtk.patch @@ -0,0 +1,39 @@ +From: Andrej Shadura <andrewsh@debian.org> +Subject: Default to the GTK interface, not Qt + +--- a/src/audacious/main.cc ++++ b/src/audacious/main.cc +@@ -50,6 +50,7 @@ + int mainwin, show_jump_box; + int headless, quit_after_play; + int verbose; ++ int qt; + int gtk; + } options; + +@@ -78,6 +79,7 @@ + {"quit-after-play", 'q', & options.quit_after_play, N_("Quit on playback stop")}, + {"verbose", 'V', & options.verbose, N_("Print debugging messages (may be used twice)")}, + #if defined(USE_QT) && defined(USE_GTK) ++ {"qt", 'Q', & options.qt, N_("Run in Qt mode")}, + {"gtk", 'G', & options.gtk, N_("Run in GTK mode")}, + #endif + }; +@@ -171,8 +173,16 @@ + else if (options.verbose) + audlog::set_stderr_level (audlog::Info); + +- if (options.gtk) ++ if (options.qt && options.gtk) { ++ fprintf (stderr, _("Conflicting options: --gtk and --qt\n")); ++ return false; ++ } ++ ++ if (options.qt) { ++ aud_set_mainloop_type (MainloopType::Qt); ++ } else { + aud_set_mainloop_type (MainloopType::GLib); ++ } + + return true; + } |