[MPlayer-cvslog] r33572 - in trunk: Makefile debian/rules etc/mplayer.ico etc/mplayer.png etc/mplayer.xpm gui/mplayer/pixmaps/MPlayer_mini.xpm gui/mplayer/pixmaps/mplayer.xpm gui/mplayer/widgets.c rpm/mplayer.spec

ib subversion at mplayerhq.hu
Tue Jun 7 17:16:23 CEST 2011


Author: ib
Date: Tue Jun  7 17:16:22 2011
New Revision: 33572

Log:
Provide a desktop icon of reasonable size (48x48) and quality.

All three icon files (ico, png and xpm) derive from the same
48x48 graphic which itself derives from the svg at
http://en.wikipedia.org/wiki/File:MPlayer.svg.

GUI's icon has been renamed mplayer.xpm (from MPlayer_mini.xpm)
and the format of the icon to be installed has been changed
from xpm to png.

Added:
   trunk/etc/mplayer.png   (contents, props changed)
   trunk/gui/mplayer/pixmaps/mplayer.xpm
Deleted:
   trunk/etc/mplayer.xpm
   trunk/gui/mplayer/pixmaps/MPlayer_mini.xpm
Modified:
   trunk/Makefile
   trunk/debian/rules
   trunk/etc/mplayer.ico
   trunk/gui/mplayer/widgets.c
   trunk/rpm/mplayer.spec

Modified: trunk/Makefile
==============================================================================
--- trunk/Makefile	Tue Jun  7 15:40:41 2011	(r33571)
+++ trunk/Makefile	Tue Jun  7 17:16:22 2011	(r33572)
@@ -905,7 +905,7 @@ install-%: %$(EXESUF) install-dirs
 install-gui: install-mplayer
 	-ln -sf mplayer$(EXESUF) $(BINDIR)/gmplayer$(EXESUF)
 	$(INSTALL) -d $(DATADIR)/skins $(prefix)/share/pixmaps $(prefix)/share/applications
-	$(INSTALL) -m 644 etc/mplayer.xpm $(prefix)/share/pixmaps/
+	$(INSTALL) -m 644 etc/mplayer.png $(prefix)/share/pixmaps/
 	$(INSTALL) -m 644 etc/mplayer.desktop $(prefix)/share/applications/
 
 install-gui-man:      $(foreach lang,$(MAN_LANGS),install-gui-man-$(lang))
@@ -946,7 +946,7 @@ uninstall:
 	rm -f $(BINDIR)/mplayer$(EXESUF) $(BINDIR)/gmplayer$(EXESUF)
 	rm -f $(BINDIR)/mencoder$(EXESUF)
 	rm -f $(MANDIR)/man1/mencoder.1 $(MANDIR)/man1/mplayer.1
-	rm -f $(prefix)/share/pixmaps/mplayer.xpm
+	rm -f $(prefix)/share/pixmaps/mplayer.png
 	rm -f $(prefix)/share/applications/mplayer.desktop
 	rm -f $(MANDIR)/man1/mplayer.1 $(MANDIR)/man1/mencoder.1
 	rm -f $(foreach lang,$(MAN_LANGS),$(foreach man,mplayer.1 mencoder.1,$(MANDIR)/$(lang)/man1/$(man)))

Modified: trunk/debian/rules
==============================================================================
--- trunk/debian/rules	Tue Jun  7 15:40:41 2011	(r33571)
+++ trunk/debian/rules	Tue Jun  7 17:16:22 2011	(r33572)
@@ -121,8 +121,8 @@ debian/mplayer-gui/usr/bin/gmplayer:
 	install -D -m 755 mplayer $(CURDIR)/debian/mplayer-gui/usr/bin/gmplayer
 	install -D -m 644 etc/mplayer.desktop \
 	                  $(CURDIR)/debian/mplayer-gui/usr/share/applications/mplayer.desktop
-	install -D -m 644 etc/mplayer.xpm \
-	                  $(CURDIR)/debian/mplayer-gui/usr/share/pixmaps/mplayer.xpm
+	install -D -m 644 etc/mplayer.png \
+	                  $(CURDIR)/debian/mplayer-gui/usr/share/pixmaps/mplayer.png
 
 
 # binaries already installed via build rules as we have to build several flavors

Modified: trunk/etc/mplayer.ico
==============================================================================
Binary file (source and/or target). No diff available.

Added: trunk/etc/mplayer.png
==============================================================================
Binary file. No diff available.

Added: trunk/gui/mplayer/pixmaps/mplayer.xpm
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ trunk/gui/mplayer/pixmaps/mplayer.xpm	Tue Jun  7 17:16:22 2011	(r33572)
@@ -0,0 +1,186 @@
+/* XPM */
+static const char * const mplayer_xpm[] = {
+/* columns rows colors chars-per-pixel */
+"48 48 132 2",
+"   c #000000",
+".  c #0C0C0C",
+"X  c #121212",
+"o  c #1A1A1A",
+"O  c gray14",
+"+  c #2D2D2D",
+"@  c #333333",
+"#  c #3B3B3B",
+"$  c #2E2374",
+"%  c #2E2F7E",
+"&  c #322374",
+"*  c #362877",
+"=  c #372978",
+"-  c #3A2C79",
+";  c #3F317D",
+":  c #40327D",
+">  c #444444",
+",  c #4A4A4A",
+"<  c #515151",
+"1  c gray36",
+"2  c #626262",
+"3  c #6B6B6B",
+"4  c #737373",
+"5  c #7B7B7B",
+"6  c #433580",
+"7  c #453881",
+"8  c #4A3D85",
+"9  c #4D4087",
+"0  c #4F4288",
+"q  c #504489",
+"w  c #55498C",
+"e  c #5A4E8F",
+"r  c #5B4F90",
+"t  c #5D5291",
+"y  c #615594",
+"u  c #655A97",
+"i  c #665B98",
+"p  c #6A5F9A",
+"a  c #6C619B",
+"s  c #70669E",
+"d  c #72689F",
+"f  c #6D72A8",
+"g  c #7369A0",
+"h  c #786EA3",
+"j  c #7B71A5",
+"k  c #7E75A8",
+"l  c #08A7E6",
+"z  c #0AA8E6",
+"x  c #13ABE7",
+"c  c #1DAEE8",
+"v  c #23B1E9",
+"b  c #2AB3E9",
+"n  c #31B6EA",
+"m  c #3EBAEB",
+"M  c #4BBFED",
+"N  c #4DC0ED",
+"B  c #5AC4EE",
+"V  c #69C9F0",
+"C  c #75CEF1",
+"Z  c #79CFF1",
+"A  c #7ED1F2",
+"S  c #8076A9",
+"D  c #847BAB",
+"F  c #887FAE",
+"G  c #838383",
+"H  c #8A8A8A",
+"J  c #929292",
+"K  c #9B9B9B",
+"L  c #8780AF",
+"P  c #8980AF",
+"I  c #8C84B1",
+"U  c #938BB6",
+"Y  c #968EB8",
+"T  c #9A93BB",
+"R  c #9F98BE",
+"E  c #A09ABF",
+"W  c #A2A2A2",
+"Q  c #AAAAAA",
+"!  c #BBBBBB",
+"~  c #A49DC1",
+"^  c #A7A0C3",
+"/  c #AAA4C5",
+"(  c #AEA8C8",
+")  c #B2ACCA",
+"_  c #B6B0CD",
+"`  c #B8B3CF",
+"'  c #BAB5D0",
+"]  c #BEB9D3",
+"[  c #84D3F3",
+"{  c #8AD5F3",
+"}  c #90D7F4",
+"|  c #95D9F4",
+" . c #9CDCF5",
+".. c #A5DEF5",
+"X. c #ABE1F6",
+"o. c #B2E3F7",
+"O. c #B4E4F8",
+"+. c #BAE6F8",
+"@. c #C1BDD5",
+"#. c #C3C3C3",
+"$. c #CBCBCB",
+"%. c #C4C0D7",
+"&. c #C6C2D8",
+"*. c #CDCADD",
+"=. c #D3D3D3",
+"-. c #DBDBDB",
+";. c #D1CEE0",
+":. c #D4D1E2",
+">. c #D9D6E5",
+",. c #DCDAE7",
+"<. c #DDDBE8",
+"1. c #C3EAF9",
+"2. c #CAEDFA",
+"3. c #D2EFFA",
+"4. c #D8E3F0",
+"5. c #D6F0FB",
+"6. c #DBF2FB",
+"7. c #E2E2E2",
+"8. c #E4E1EC",
+"9. c #E8E6EF",
+"0. c #ECECEC",
+"q. c #E8E7F0",
+"w. c #ECEAF2",
+"e. c #E6F6FC",
+"r. c #E9F7FD",
+"t. c #ECF8FD",
+"y. c #F4F3F5",
+"u. c #F6F5F9",
+"i. c #F3FBFD",
+"p. c #F8F7FA",
+"a. c #FEFEFE",
+"s. c None",
+/* pixels */
+"s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.",
+"s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.",
+"s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.",
+"s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.",
+"s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s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a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.i.+.s.",
+" .m r.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.i.+.s.",
+"..M e.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.u.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.i.X.s.",
+"X.B r.a.a.a.a.a D a.a.:.q *.a./ q w h q.7., > a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.i...s.",
+"o.V r.a.a.a.u.= - y.a.P & ~ a.T : T 8 j a.3 3 a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.i. .X.",
+"X.Z r.a.a.a.>.& * ` p.8 * D a.T 8 9.s p a.# K a.7.5 5 4 $.G K a.$.H a.! G K 7.H W J K a.a.i.} O.",
+"+.[ t.a.a.a.` = h g *.* j t a.T & * - @.p.X $.0.O #.#.  u.Q o p.2 $.K 1 -.X 0.> , G 4 a.a.t.{ X.",
+"..{ t.a.a.a.U r ] - h i ) 7 p.T 7 ;.w.a.-.X 0.H # a.Q @ a.0.. =.3 u.o 2 < K a.O Q a.a.a.a.i.Z X.",
+"2.| i.a.a.a.a S u.; * / :.* 9.T 8 a.a.a.Q + a.2 < a.5 1 a.a.O , -.0.. =.a.p.0.. 7.a.a.a.a.t.V o.",
+"s. .i.a.a.p.9 ~ a.j = w.y.= @.T 8 a.a.a.H O Q K . 4 # # #.a.1 1 a.a.# > 5 K #.. a.a.a.a.a.t.B ..",
+"s.X.i.a.a.a.*.w.a.q.;.a.a.;.q.9.;.a.a.a.u.#.0.a.=.7.0.=.y.a.5 -.a.a.p.#.7.a.0.-.a.a.a.a.a.t.M ..",
+"s...i.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a.a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] ' R F s.s.s.& & D a.a.#       o J u.] & & s.",
+"s.s.s.s.s.& & a T R ^ ^ ( ( ^ ( / I w s.s.s.s.s.s.s.s.s.s.s.s.s.s.& 7 y.a.#   . G 0.a.a.d & & s.",
+"s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.& & D a.# 3 7.a.a.a.] & & s.s.",
+"s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.& & S -.a.a.a.p.~ = & & s.s.",
+"s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.$ & & ; s P j 9 & & & s.s.s.",
+"s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.$ & & & & & & & s.s.s.s.",
+"s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.",
+"s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.",
+"s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.",
+"s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.",
+"s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s."
+};

Modified: trunk/gui/mplayer/widgets.c
==============================================================================
--- trunk/gui/mplayer/widgets.c	Tue Jun  7 15:40:41 2011	(r33571)
+++ trunk/gui/mplayer/widgets.c	Tue Jun  7 17:16:22 2011	(r33572)
@@ -65,7 +65,7 @@ int gtkInitialized = 0;
 #include "gtk/gtk_url.h"
 #include "gtk/eq.h"
 
-#include "pixmaps/MPlayer_mini.xpm"
+#include "pixmaps/mplayer.xpm"
 
 // --- init & close gtk
 
@@ -99,7 +99,7 @@ void gtkInit( void )
   win=gtk_window_new( GTK_WINDOW_TOPLEVEL );
 
   if ( !gtkIcon )
-    gtkIcon=gdk_pixmap_colormap_create_from_xpm_d( win->window,gdk_colormap_get_system(),&gtkIconMask,&win->style->bg[GTK_STATE_NORMAL],(gchar **) MPlayer_mini_xpm );
+    gtkIcon=gdk_pixmap_colormap_create_from_xpm_d( win->window,gdk_colormap_get_system(),&gtkIconMask,&win->style->bg[GTK_STATE_NORMAL],(gchar **) mplayer_xpm );
 
   guiIcon=GDK_WINDOW_XWINDOW( gtkIcon );
   guiIconMask=GDK_WINDOW_XWINDOW( gtkIconMask );

Modified: trunk/rpm/mplayer.spec
==============================================================================
--- trunk/rpm/mplayer.spec	Tue Jun  7 15:40:41 2011	(r33571)
+++ trunk/rpm/mplayer.spec	Tue Jun  7 17:16:22 2011	(r33572)
@@ -253,9 +253,9 @@ tar xjC $RPM_BUILD_ROOT%{_datadir}/mplay
 ln -s Blue $RPM_BUILD_ROOT%{_datadir}/mplayer/skins/default
 
 # Icons
-install -dm 755 $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps
-install -pm 644 etc/mplayer.xpm \
-    $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps
+install -dm 755 $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps
+install -pm 644 etc/mplayer.png \
+    $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps
 
 # Desktop file
 desktop-file-install \
@@ -306,7 +306,7 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(-, root, root, -)
 %{_bindir}/gmplayer
 %{_datadir}/applications/*mplayer.desktop
-%{_datadir}/icons/hicolor/32x32/apps/mplayer.xpm
+%{_datadir}/icons/hicolor/48x48/apps/mplayer.png
 %{_datadir}/mplayer/skins/
 
 %files -n mencoder


More information about the MPlayer-cvslog mailing list