Author: glen                         Date: Sat Jan 28 19:29:19 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- setup window title with song name first

---- Files affected:
packages/gmpc:
   gmpc.spec (1.41 -> 1.42) , window-title.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/gmpc/gmpc.spec
diff -u packages/gmpc/gmpc.spec:1.41 packages/gmpc/gmpc.spec:1.42
--- packages/gmpc/gmpc.spec:1.41        Sat Jan 28 19:30:10 2012
+++ packages/gmpc/gmpc.spec     Sat Jan 28 20:29:13 2012
@@ -12,7 +12,8 @@
 Source0:       
http://downloads.sourceforge.net/musicpd/%{name}-%{version}.tar.gz
 # Source0-md5: 902fd69b0b6bb40abb647604080dd7ef
 Patch0:                %{name}-desktop.patch
-URL:           http://gmpc.wikia.com
+Patch1:                window-title.patch
+URL:           http://www.gmpclient.org/
 BuildRequires: autoconf >= 2.59
 BuildRequires: automake
 BuildRequires: curl-devel
@@ -70,6 +71,7 @@
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__intltoolize}
@@ -148,6 +150,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.42  2012/01/28 19:29:13  glen
+- setup window title with song name first
+
 Revision 1.41  2012/01/28 18:30:10  arekm
 - release 5
 

================================================================
Index: packages/gmpc/window-title.patch
diff -u /dev/null packages/gmpc/window-title.patch:1.1
--- /dev/null   Sat Jan 28 20:29:19 2012
+++ packages/gmpc/window-title.patch    Sat Jan 28 20:29:13 2012
@@ -0,0 +1,20 @@
+--- gmpc-0.20.0/src/./playlist3.c~     2010-03-22 05:18:43.000000000 +0200
++++ gmpc-0.20.0/src/./playlist3.c      2012-01-28 18:37:04.116982383 +0200
+@@ -813,7 +813,7 @@
+               if(gmpc_profiles_get_number_of_profiles(gmpc_profiles) >1){
+                       gchar *id = gmpc_profiles_get_current(gmpc_profiles);
+                       if(id) {
+-                              string = g_strdup_printf("[%s] %s - %s 
%s",gmpc_profiles_get_name(gmpc_profiles, id), _("GMPC"), _("Connected to"), 
mpd_get_hostname(mi));
++                              string = g_strdup_printf("%s - %s %s [%s]", 
_("GMPC"), _("Connected to"), mpd_get_hostname(mi), 
gmpc_profiles_get_name(gmpc_profiles, id));
+                               g_free(id);
+                       }
+               }
+@@ -827,7 +827,7 @@
+               if(gmpc_profiles_get_number_of_profiles(gmpc_profiles) >1){
+                       gchar *id = gmpc_profiles_get_current(gmpc_profiles);
+                       if(id) {
+-                              string = g_strdup_printf("[%s] %s - 
%s",gmpc_profiles_get_name(gmpc_profiles, id), _("GMPC"), _("Disconnected"));
++                              string = g_strdup_printf("%s - %s [%s]", 
_("GMPC"), _("Disconnected"), gmpc_profiles_get_name(gmpc_profiles, id));
+                               g_free(id);
+                       }
+               }
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gmpc/gmpc.spec?r1=1.41&r2=1.42&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to