logo       

Sponsor
FREE Network Mapping Tool for Microsoft® Office Visio® Professional 2007
Don't map your network by hand - let LANsurveyor Exx press for Microsoft Visio Professional 2007 automatically create network diagrams for you!

[gtpd-cvs] gtkpod/src fetchcover.c,1.1.2.6,1.1.2.7: msg#00038

ipod.gtkpod.cvs

Subject: [gtpd-cvs] gtkpod/src fetchcover.c,1.1.2.6,1.1.2.7

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/





Only community members can participate in forum threads. You must Register or log in to contribute.

<Prev in Thread] Current Thread [Next in Thread>
Sponsor
FREE Network Mapping Tool for Microsoft® OfficeVisio Professional 2007
Don't map your network by hand - let LANsurveyor Express for Microsoft Visio Professional 2007
automatically create network diagrams for you!
Google Custom Search

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation

Home | sitemap | advertise | OSDir is an inevitable website. super tiny logo