Update of /cvsroot/gtkpod/gtkpod/src
In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv11370/src
Modified Files:
Tag: coverart_display_development_branch
display_coverart.c
Log Message:
set_covers(): fixed segfault when clicking on empty playlist.
Index: display_coverart.c
===================================================================
RCS file: /cvsroot/gtkpod/gtkpod/src/Attic/display_coverart.c,v
retrieving revision 1.1.2.10
retrieving revision 1.1.2.11
diff -u -d -r1.1.2.10 -r1.1.2.11
--- display_coverart.c 20 Feb 2007 13:02:21 -0000 1.1.2.10
+++ display_coverart.c 20 Feb 2007 13:12:42 -0000 1.1.2.11
@@ -1,4 +1,4 @@
-/* Time-stamp: <2007-02-20 22:00:53 jcs>
+/* Time-stamp: <2007-02-20 22:11:42 jcs>
|
| Copyright (C) 2002-2005 Jorg Schuler <jcsjcs at users sourceforge net>
| Part of the gtkpod project.
@@ -253,12 +253,22 @@
if (i == IMG_MAIN)
{
+ gchar *text;
+ if (track)
+ {
+ text = g_strconcat (track->artist, "\n", track->album, NULL);
+ }
+ else
+ {
+ text = g_strdup ("");
+ }
/* Set the text to display details of the main image */
gnome_canvas_item_set (GNOME_CANVAS_ITEM (cdwidget->cvrtext),
- "text", g_strconcat (track->artist, "\n",
track->album, NULL),
+ "text", text,
"fill_color", "white",
"justification", GTK_JUSTIFY_CENTER,
NULL);
+ g_free (text);
}
}
}
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2