[packages/gmpc-plugin-jamendo] - some type fixes, release 4
qboosh
qboosh at pld-linux.org
Tue Sep 2 18:31:52 CEST 2025
commit 990caf368e82a68e3d151b212e8e8888e7316b68
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Tue Sep 2 18:34:37 2025 +0200
- some type fixes, release 4
gmpc-jamendo-types.patch | 45 +++++++++++++++++++++++++++++++++++++++++++++
gmpc-plugin-jamendo.spec | 4 +++-
2 files changed, 48 insertions(+), 1 deletion(-)
---
diff --git a/gmpc-plugin-jamendo.spec b/gmpc-plugin-jamendo.spec
index bdab26d..26948dd 100644
--- a/gmpc-plugin-jamendo.spec
+++ b/gmpc-plugin-jamendo.spec
@@ -3,11 +3,12 @@ Summary: Jamendo plugin for Gnome Music Player Client
Summary(pl.UTF-8): Wtyczka udostępniająca dane z Jamendo dla odtwarzacza Gnome Music Player Client
Name: gmpc-plugin-jamendo
Version: 11.8.16
-Release: 3
+Release: 4
License: GPL v2+
Group: X11/Applications/Sound
Source0: https://download.sarine.nl/Programs/gmpc/%{version}/%{source_name}-%{version}.tar.gz
# Source0-md5: 7395074612fd7e1eec00427b65c9f188
+Patch0: gmpc-jamendo-types.patch
URL: https://gmpc.fandom.com/wiki/GMPC_PLUGIN_JAMENDO
BuildRequires: autoconf >= 2.59
BuildRequires: automake >= 1.6
@@ -38,6 +39,7 @@ Przeglądanie i słuchanie muzyki z usługi Jamendo.
%prep
%setup -q -n %{source_name}-%{version}
+%patch -P0 -p1
%build
%{__libtoolize}
diff --git a/gmpc-jamendo-types.patch b/gmpc-jamendo-types.patch
new file mode 100644
index 0000000..9cabf06
--- /dev/null
+++ b/gmpc-jamendo-types.patch
@@ -0,0 +1,45 @@
+--- gmpc-jamendo-11.8.16/src/jamendo.c.orig 2011-08-17 05:17:04.000000000 +0200
++++ gmpc-jamendo-11.8.16/src/jamendo.c 2025-09-02 18:17:16.913387001 +0200
+@@ -323,7 +323,7 @@ void jamendo_db_load_data(const char *da
+ {
+ char *query = sqlite3_mprintf("INSERT INTO 'Artist' ('artist', 'image') VALUES('%q','%q')",
+ artist,
+- (image != NULL)?image:"");
++ (image != NULL)?(char*)image:"");
+ sqlite3_exec(jamendo_sqlhandle, query, NULL, NULL, NULL);
+ sqlite3_free(query);
+ while(cur_albums)
+--- gmpc-jamendo-11.8.16/src/plugin.c.orig 2025-09-02 18:25:39.229810738 +0200
++++ gmpc-jamendo-11.8.16/src/plugin.c 2025-09-02 18:25:43.139834785 +0200
+@@ -29,11 +29,13 @@
+ #include <gmpc-mpddata-model.h>
+ #include <gmpc-mpddata-treeview.h>
+ #include <gmpc-extras.h>
++#include <mpdinteraction.h>
+ #include <sqlite3.h>
+ #include "jamendo.h"
+ #include <libmpd/debug_printf.h>
+
+ extern GtkBuilder *pl3_xml;
++void jamendo_db_load_data(const char *data, const goffset length);
+
+ gmpcPlugin plugin;
+ /**
+@@ -279,7 +281,7 @@ static void jamendo_show_artist_list(Gtk
+ data = jamendo_db_get_album_list(genre ,artist);
+ gmpc_mpddata_model_set_request_artist(GMPC_MPDDATA_MODEL(gtk_tree_view_get_model(GTK_TREE_VIEW(treeviews[2]))),artist);
+
+- GmpcMpdDataTreeviewTooltip *tool = gtk_widget_get_tooltip_window(GTK_WIDGET(treeviews[2]));
++ GmpcMpdDataTreeviewTooltip *tool = GMPC_MPD_DATA_TREEVIEW_TOOLTIP(gtk_widget_get_tooltip_window(GTK_WIDGET(treeviews[2])));
+ if(tool->request_artist){
+ g_free(tool->request_artist);
+ }
+@@ -336,7 +338,7 @@ static void jamendo_init()
+ GtkTreeModel *model = NULL;
+ GtkTreeViewColumn *column = NULL;
+ jamendo_vbox = gtk_hpaned_new();
+- gmpc_paned_size_group_add_paned(paned_size_group, GTK_PANED(jamendo_vbox));
++ gmpc_paned_size_group_add_paned(GMPC_PANED_SIZE_GROUP(paned_size_group), GTK_PANED(jamendo_vbox));
+
+
+ vbox = gtk_vbox_new(FALSE,6);
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/gmpc-plugin-jamendo.git/commitdiff/990caf368e82a68e3d151b212e8e8888e7316b68
More information about the pld-cvs-commit
mailing list