2007-01-08  Rodrigo Moya <rodrigo@gnome-db.org>

	Fixes #356076

	Patch by Brian Cameron <brian.cameron@sun.com>

	* gnome-about-me.c (about_me_update_photo): fixed compilation on Solaris.

svn path=/trunk/; revision=7105
This commit is contained in:
Rodrigo Moya 2007-01-08 19:48:13 +00:00 committed by Rodrigo Moya
parent 1062b38bba
commit 49d96fa08c
2 changed files with 11 additions and 3 deletions

View file

@ -1,3 +1,11 @@
2007-01-08 Rodrigo Moya <rodrigo@gnome-db.org>
Fixes #356076
Patch by Brian Cameron <brian.cameron@sun.com>
* gnome-about-me.c (about_me_update_photo): fixed compilation on Solaris.
2007-01-06 Hiroyuki Ikezoe <poincare@ikezoe.net>
Fixes #343584 (patch from Evolution)

View file

@ -435,7 +435,7 @@ about_me_update_photo (GnomeAboutMe *me)
gchar *file;
FILE *fp;
gchar *data;
guchar *data;
gsize length;
dialog = me->dialog;
@ -449,12 +449,12 @@ about_me_update_photo (GnomeAboutMe *me)
float scale;
widget = WID ("image-chooser");
e_image_chooser_get_image_data (E_IMAGE_CHOOSER (widget), &data, &length);
e_image_chooser_get_image_data (E_IMAGE_CHOOSER (widget), (char **) &data, &length);
/* Before updating the image in EDS scale it to a reasonable size
so that the user doesn't get an application that does not respond
or that takes 100% CPU */
gdk_pixbuf_loader_write (loader, (guchar *)data, length, NULL);
gdk_pixbuf_loader_write (loader, data, length, NULL);
gdk_pixbuf_loader_close (loader, NULL);
pixbuf = gdk_pixbuf_loader_get_pixbuf (loader);