summaryrefslogtreecommitdiffstats
path: root/sysutils/gnome-control-center
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2006-07-26 11:23:31 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2006-07-26 11:23:31 +0800
commit23ccf737fa5d0c5cc709b7b7623652726664ba64 (patch)
treebbca480e0598172086bd1bd9f3b6e1941607abda /sysutils/gnome-control-center
parentfdd30c28ec962d71e8ad7db0549b09b0e42c9f96 (diff)
downloadmarcuscom-ports-23ccf737fa5d0c5cc709b7b7623652726664ba64.tar
marcuscom-ports-23ccf737fa5d0c5cc709b7b7623652726664ba64.tar.gz
marcuscom-ports-23ccf737fa5d0c5cc709b7b7623652726664ba64.tar.bz2
marcuscom-ports-23ccf737fa5d0c5cc709b7b7623652726664ba64.tar.lz
marcuscom-ports-23ccf737fa5d0c5cc709b7b7623652726664ba64.tar.xz
marcuscom-ports-23ccf737fa5d0c5cc709b7b7623652726664ba64.tar.zst
marcuscom-ports-23ccf737fa5d0c5cc709b7b7623652726664ba64.zip
Fix build with new e-d-s.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@6823 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'sysutils/gnome-control-center')
-rw-r--r--sysutils/gnome-control-center/files/patch-capplets_about-me_gnome-about-me.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/sysutils/gnome-control-center/files/patch-capplets_about-me_gnome-about-me.c b/sysutils/gnome-control-center/files/patch-capplets_about-me_gnome-about-me.c
new file mode 100644
index 000000000..31267fdcb
--- /dev/null
+++ b/sysutils/gnome-control-center/files/patch-capplets_about-me_gnome-about-me.c
@@ -0,0 +1,31 @@
+--- capplets/about-me/gnome-about-me.c.orig Tue Jul 25 23:14:52 2006
++++ capplets/about-me/gnome-about-me.c Tue Jul 25 23:19:10 2006
+@@ -419,7 +419,7 @@ about_me_load_photo (GnomeAboutMe *me, E
+
+ if (photo) {
+ me->have_image = TRUE;
+- e_image_chooser_set_image_data (E_IMAGE_CHOOSER (widget), photo->data, photo->length);
++ e_image_chooser_set_image_data (E_IMAGE_CHOOSER (widget), photo->data.inlined.data, photo->data.inlined.length);
+ e_contact_photo_free (photo);
+ } else {
+ me->have_image = FALSE;
+@@ -490,15 +490,16 @@ about_me_update_photo (GnomeAboutMe *me)
+ }
+
+ photo = g_new0 (EContactPhoto, 1);
+- photo->data = data;
+- photo->length = length;
++ photo->data.inlined.data = data;
++ photo->data.inlined.length = length;
++ photo->data.inlined.mime_type = "image/png";
+ e_contact_set (me->contact, E_CONTACT_PHOTO, photo);
+
+ /* Save the image for GDM */
+ /* FIXME: I would have to read the default used by the gdmgreeter program */
+ file = g_strdup_printf ("%s/.face", g_get_home_dir ());
+ fp = fopen (file, "wb");
+- fwrite (photo->data, 1, photo->length, fp);
++ fwrite (photo->data.inlined.data, 1, photo->data.inlined.length, fp);
+ fclose (fp);
+
+ g_free (file);