]> git.pld-linux.org Git - packages/control-center.git/blob - control-center-bug348821.patch
- http://bugzilla.gnome.org/show_bug.cgi?id=348821
[packages/control-center.git] / control-center-bug348821.patch
1 diff -aurN control-center-2.15.90.orig/capplets/about-me/gnome-about-me.c control-center-2.15.90/capplets/about-me/gnome-about-me.c
2 --- control-center-2.15.90.orig/capplets/about-me/gnome-about-me.c      2006-01-21 17:59:38.000000000 +0100
3 +++ control-center-2.15.90/capplets/about-me/gnome-about-me.c   2006-07-26 23:27:28.000000000 +0200
4 @@ -419,7 +419,7 @@
5  
6         if (photo) {
7                 me->have_image = TRUE;
8 -               e_image_chooser_set_image_data (E_IMAGE_CHOOSER (widget), photo->data, photo->length);
9 +               e_image_chooser_set_image_data (E_IMAGE_CHOOSER (widget), photo->data.inlined.data, photo->data.inlined.length);
10                 e_contact_photo_free (photo);
11         } else {
12                 me->have_image = FALSE;
13 @@ -490,15 +490,15 @@
14                 }
15  
16                 photo = g_new0 (EContactPhoto, 1);
17 -               photo->data = data;
18 -               photo->length = length;
19 +               photo->data.inlined.data = data;
20 +               photo->data.inlined.length = length;
21                 e_contact_set (me->contact, E_CONTACT_PHOTO, photo);
22  
23                 /* Save the image for GDM */
24                 /* FIXME: I would have to read the default used by the gdmgreeter program */
25                 file = g_strdup_printf ("%s/.face", g_get_home_dir ());
26                 fp = fopen (file, "wb");
27 -               fwrite (photo->data, 1, photo->length, fp);
28 +               fwrite (photo->data.inlined.data, 1, photo->data.inlined.length, fp);
29                 fclose (fp);
30  
31                 g_free (file);  
This page took 0.061364 seconds and 3 git commands to generate.