Update of /cvsroot/gtkpod/gtkpod/src
In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv7421/src

Modified Files:
      Tag: fetchcover_development_branch
        fetchcover.c 
Log Message:
        * src/fetchcover.c: add NULL pointer at the end of some
          variable argument calls to avoid segfaults.



Index: fetchcover.c
===================================================================
RCS file: /cvsroot/gtkpod/gtkpod/src/Attic/fetchcover.c,v
retrieving revision 1.1.2.6
retrieving revision 1.1.2.7
diff -u -d -r1.1.2.6 -r1.1.2.7
--- fetchcover.c        14 Apr 2007 20:02:45 -0000      1.1.2.6
+++ fetchcover.c        15 Apr 2007 11:44:51 -0000      1.1.2.7
@@ -443,7 +443,7 @@
        fetchcover_debug("Displayed Image path: %s/%s\n", displayed_cover->dir, 
displayed_cover->filename);
        
        GdkPixbuf *scaled = gdk_pixbuf_scale_simple(displayed_cover->image, 
IMGSCALE, IMGSCALE, GDK_INTERP_NEAREST);
-       gnome_canvas_item_set(fetchcover_canvasitem, "pixbuf", scaled);
+       gnome_canvas_item_set(fetchcover_canvasitem, "pixbuf", scaled, NULL);
        
        gdk_window_set_cursor (window, gdk_cursor_new (GDK_LEFT_PTR));
        
@@ -489,7 +489,7 @@
        }
        
        GdkPixbuf *scaled = gdk_pixbuf_scale_simple(displayed_cover->image, 
IMGSCALE, IMGSCALE, GDK_INTERP_NEAREST);
-       gnome_canvas_item_set(fetchcover_canvasitem, "pixbuf", scaled);
+       gnome_canvas_item_set(fetchcover_canvasitem, "pixbuf", scaled, NULL);
        
        return;
 }
@@ -767,7 +767,8 @@
        
        /* Apply the image cover to the canvas */
        gnome_canvas_item_set ( fetchcover_canvasitem,
-                                                                               
                                                                                
                "pixbuf", displayed_cover->image);
+                                                                               
                                                                                
                "pixbuf", displayed_cover->image,
+                               NULL);
        
        /* Create the canvas border */
        art_border = gnome_canvas_item_new(


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
gtkpod-cvs2 mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to