[SCM] gnome-mplayer/experimental: Add patch from upstream to disable album art downloading
sramacher at users.alioth.debian.org
sramacher at users.alioth.debian.org
Thu Nov 22 00:06:12 UTC 2012
The following commit has been merged in the experimental branch:
commit 5b5ac2ad874370c0d061e190c6ecd50e30e10e54
Author: Sebastian Ramacher <sramacher at debian.org>
Date: Thu Nov 22 01:06:02 2012 +0100
Add patch from upstream to disable album art downloading
diff --git a/debian/changelog b/debian/changelog
index 15a93c1..3816473 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,8 @@ gnome-mplayer (1.0.7-2) UNRELEASED; urgency=low
not available there.
* debian/patches:
- fallback-to-nonsymbolic.patch: Update to use upstream's fix.
+ - option-album-image-fetch.patch: Add option to disable downloading of
+ album covers.
-- Sebastian Ramacher <sramacher at debian.org> Mon, 19 Nov 2012 19:50:08 +0100
diff --git a/debian/patches/option-album-image-fetch.patch b/debian/patches/option-album-image-fetch.patch
new file mode 100644
index 0000000..e4510a6
--- /dev/null
+++ b/debian/patches/option-album-image-fetch.patch
@@ -0,0 +1,52 @@
+Description: Add option to disable album image download
+Origin: https://code.google.com/p/gnome-mplayer/source/detail?r=2361
+Last-Update: 2012-11-22
+
+--- a/src/gui.c
++++ b/src/gui.c
+@@ -242,6 +242,7 @@
+ static GtkWidget *config_use_mediakeys;
+ static GtkWidget *config_use_defaultpl;
+ static GtkWidget *config_disable_animation;
++static GtkWidget *config_disable_cover_art_fetch;
+ static GtkWidget *config_mouse_wheel;
+ static GtkWidget *config_enable_nautilus_plugin;
+
+@@ -4203,6 +4204,7 @@
+ disable_embeddedfonts = !(gboolean) gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(config_embeddedfonts));
+ disable_pause_on_click = !(gboolean) gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(config_pause_on_click));
+ disable_animation = (gboolean) gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(config_disable_animation));
++ disable_cover_art_fetch = (gboolean) gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(config_disable_cover_art_fetch));
+ oldosd = osdlevel;
+ osdlevel = (gint) gtk_range_get_value(GTK_RANGE(config_osdlevel));
+ pplevel = (gint) gtk_range_get_value(GTK_RANGE(config_pplevel));
+@@ -6025,6 +6027,11 @@
+ gtk_table_attach(GTK_TABLE(conf_table), config_disable_animation, 0, 2, i, i + 1, GTK_FILL, GTK_SHRINK, 0, 0);
+ i++;
+
++ config_disable_cover_art_fetch = gtk_check_button_new_with_label(_("Disable Cover Art Fetch"));
++ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(config_disable_cover_art_fetch), disable_cover_art_fetch);
++ gtk_table_attach(GTK_TABLE(conf_table), config_disable_cover_art_fetch, 0, 2, i, i + 1, GTK_FILL, GTK_SHRINK, 0, 0);
++ i++;
++
+ config_mouse_wheel = gtk_check_button_new_with_label(_("Use Mouse Wheel to change volume, instead of seeking"));
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(config_mouse_wheel), mouse_wheel_changes_volume);
+ gtk_table_attach(GTK_TABLE(conf_table), config_mouse_wheel, 0, 2, i, i + 1, GTK_FILL, GTK_SHRINK, 0, 0);
+--- a/src/main.c
++++ b/src/main.c
+@@ -766,6 +766,7 @@
+ embedding_disabled = FALSE;
+ disable_pause_on_click = FALSE;
+ disable_animation = FALSE;
++ disable_cover_art_fetch = FALSE;
+ auto_hide_timeout = 3;
+ mouse_over_controls = FALSE;
+ use_mediakeys = TRUE;
+@@ -897,6 +898,7 @@
+ disable_embeddedfonts = gm_pref_store_get_boolean(gm_store, DISABLEEMBEDDEDFONTS);
+ disable_pause_on_click = gm_pref_store_get_boolean(gm_store, DISABLEPAUSEONCLICK);
+ disable_animation = gm_pref_store_get_boolean(gm_store, DISABLEANIMATION);
++ disable_cover_art_fetch = gm_pref_store_get_boolean_with_default(gm_store, DISABLE_COVER_ART_FETCH, disable_cover_art_fetch);
+ auto_hide_timeout = gm_pref_store_get_int_with_default(gm_store, AUTOHIDETIMEOUT, auto_hide_timeout);
+ disable_cover_art_fetch = gm_pref_store_get_boolean(gm_store, DISABLE_COVER_ART_FETCH);
+ use_mediakeys = gm_pref_store_get_boolean_with_default(gm_store, USE_MEDIAKEYS, use_mediakeys);
diff --git a/debian/patches/series b/debian/patches/series
index 42c172e..e678e20 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
remove-audio-midi-from-desktop.patch
fallback-to-nonsymbolic-icons.patch
+option-album-image-fetch.patch
--
gnome-mplayer packaging
More information about the pkg-multimedia-commits
mailing list