1
0
mirror of https://github.com/gryf/gryf-overlay.git synced 2026-04-11 01:23:32 +02:00

initial import

This commit is contained in:
root
2010-02-09 21:25:29 +01:00
commit b2719dc011
1080 changed files with 41656 additions and 0 deletions

View File

@@ -0,0 +1 @@
MD5 694b7b2d5f9a3c4dc6b60f5cc42666e3 lyrc-0.3.tar.gz 38053

View File

@@ -0,0 +1 @@
MD5 694b7b2d5f9a3c4dc6b60f5cc42666e3 lyrc-0.3.tar.gz 38053

View File

@@ -0,0 +1,50 @@
--- Makefile 2003-11-26 16:59:34.000000000 +0100
+++ Makefile.gentoo 2004-06-12 14:46:09.260318128 +0200
@@ -17,7 +17,7 @@
LFLAGS+=-shared
LFLAGS+=-fPIC
-all: lyrc.so
+all: mo lyrc.so
lyrc.so: lyrc.o window.o string_tool.o tag_read.o cd-discid.o lyrc_site.o
@echo Linking
@@ -35,27 +35,28 @@
clean:
rm -f *.o core *.so*
-install: all mo
+install:
@echo Installation
@echo ------------
@echo "Installing library in `xmms-config --visualization-plugin-dir`"
- @cp -f lyrc.so `xmms-config --visualization-plugin-dir`
+ @mkdir -p ${DESTDIR}`xmms-config --visualization-plugin-dir`
+ @cp -f lyrc.so ${DESTDIR}`xmms-config --visualization-plugin-dir`
@echo "Installing files in $(INSTALL_DIRECTORY)"
- @mkdir -p $(INSTALL_DIRECTORY) 2>/dev/null
- @cp -f script.py $(INSTALL_DIRECTORY)
- @cp -f submit.py $(INSTALL_DIRECTORY)
- @cp -f adv_script.py $(INSTALL_DIRECTORY)
- @cp -f html/lyrc.jpg $(INSTALL_DIRECTORY)
- @cp -f html/timer.gif $(INSTALL_DIRECTORY)
+ @mkdir -p ${DESTDIR}$(INSTALL_DIRECTORY) 2>/dev/null
+ @cp -f script.py ${DESTDIR}$(INSTALL_DIRECTORY)
+ @cp -f submit.py ${DESTDIR}$(INSTALL_DIRECTORY)
+ @cp -f adv_script.py ${DESTDIR}$(INSTALL_DIRECTORY)
+ @cp -f html/lyrc.jpg ${DESTDIR}$(INSTALL_DIRECTORY)
+ @cp -f html/timer.gif ${DESTDIR}$(INSTALL_DIRECTORY)
@for i in `ls po/*.mo`; do \
j=`basename $$i .mo`; \
dir=`echo "$(LOCALEDIR)/$$j/LC_MESSAGES"`; \
- mkdir -p $$dir 2>/dev/null; \
+ mkdir -p ${DESTDIR}$$dir 2>/dev/null; \
echo "Installing traduction file $$i to $$dir/lyrc.mo"; \
- cp -f $$i $$dir/lyrc.mo ; \
+ cp -f $$i ${DESTDIR}$$dir/lyrc.mo ; \
done
uninstall:

View File

@@ -0,0 +1,34 @@
Index: window.c
===================================================================
RCS file: /cvsroot/lyrc/lyrc/unix/xmms/window.c,v
retrieving revision 1.39
diff -u -u -r1.39 window.c
--- window.c 23 Feb 2004 04:20:24 -0000 1.39
+++ window.c 10 May 2005 21:15:14 -0000
@@ -172,9 +172,24 @@
if (filename && strstr(filename,".xml"))
{ /* xml file */
xmlDocPtr doc;
- xmlNodePtr node,node2;
+ xmlNodePtr node=NULL,node2;
doc=xmlParseFile(filename);
- node = xmlDocGetRootElement(doc);
+ if( doc != NULL )
+ node = xmlDocGetRootElement(doc);
+ if( node == NULL ) {
+ source=(gchar *) strdup(_("Received data are invalid!"));
+ lyric1=gtk_text_new(NULL,NULL);
+ gtk_text_set_word_wrap(GTK_TEXT(lyric1),TRUE);
+ gtk_text_insert(GTK_TEXT(lyric1),font,NULL,NULL,source,-1);
+ gtk_widget_modify_style(lyric1, rc_style);
+ gtk_fixed_put(GTK_FIXED(lyrics_layout),lyric1,10,10);
+ gtk_widget_show(lyric1);
+ width=get_width(source,font);
+ height=get_height(source,font);
+ free(source);
+ gtk_widget_set_usize(lyric1, width+10,height*2);
+ return;
+ }
if (!xmlStrcmp(node->name, (const xmlChar *) "lyrc"))
{
node=node->xmlChildrenNode;