summaryrefslogtreecommitdiff
path: root/media-plugins/deadbeef-infobar/files/deadbeef-infobar-load-gtk2-and-gtk3-version-fix.diff
diff options
context:
space:
mode:
Diffstat (limited to 'media-plugins/deadbeef-infobar/files/deadbeef-infobar-load-gtk2-and-gtk3-version-fix.diff')
-rw-r--r--media-plugins/deadbeef-infobar/files/deadbeef-infobar-load-gtk2-and-gtk3-version-fix.diff15
1 files changed, 15 insertions, 0 deletions
diff --git a/media-plugins/deadbeef-infobar/files/deadbeef-infobar-load-gtk2-and-gtk3-version-fix.diff b/media-plugins/deadbeef-infobar/files/deadbeef-infobar-load-gtk2-and-gtk3-version-fix.diff
new file mode 100644
index 00000000..1ed84ba0
--- /dev/null
+++ b/media-plugins/deadbeef-infobar/files/deadbeef-infobar-load-gtk2-and-gtk3-version-fix.diff
@@ -0,0 +1,15 @@
+diff -r b870df1b662c infobar.c
+--- a/infobar.c Thu Jan 30 15:13:12 2014 +0200
++++ b/infobar.c Thu Jul 10 09:00:29 2014 +0200
+@@ -333,6 +333,11 @@
+ .plugin.version_major = 1,
+ .plugin.version_minor = 4,
+ .plugin.type = DB_PLUGIN_MISC,
++#if !GTK_CHECK_VERSION(3, 0, 0)
++ .plugin.id = "infobar_gtk2",
++#else
++ .plugin.id = "infobar_gtk3",
++#endif
+ .plugin.name = "Infobar",
+ .plugin.descr = "Infobar plugin for DeadBeeF audio player.\nFetches and shows:\n"
+ "- song's lyrics;\n- artist's biography;\n- list of similar artists.\n\n"