Unlink the .face file instead of calling gnome_config functions.
Fri Oct 24 19:33:12 2008 Søren Sandmann <sandmann@redhat.com> * gnome-about-me.c (about_me_update_photo): Unlink the .face file instead of calling gnome_config functions. svn path=/trunk/; revision=9113
This commit is contained in:
parent
3a227fbc66
commit
9961c9d4ad
3 changed files with 11 additions and 6 deletions
|
@ -1,3 +1,8 @@
|
|||
Fri Oct 24 19:33:12 2008 Søren Sandmann <sandmann@redhat.com>
|
||||
|
||||
* gnome-about-me.c (about_me_update_photo): Unlink the .face file
|
||||
instead of calling gnome_config functions.
|
||||
|
||||
Fri Oct 24 19:16:46 2008 Søren Sandmann <sandmann@redhat.com>
|
||||
|
||||
* gnome-about-me.c (main): Remove unused GnomeProgram variable
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
#endif
|
||||
|
||||
/* Are all of these needed? */
|
||||
#include <gnome.h>
|
||||
#include <gdk/gdkkeysyms.h>
|
||||
#include <pwd.h>
|
||||
#include <stdlib.h>
|
||||
#include <glade/glade.h>
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#endif
|
||||
|
||||
#include <glib/gstdio.h>
|
||||
#include <gnome.h>
|
||||
#include <pwd.h>
|
||||
#include <gio/gio.h>
|
||||
#include <libgnomeui/gnome-desktop-thumbnail.h>
|
||||
|
@ -621,10 +620,11 @@ about_me_update_photo (GnomeAboutMe *me)
|
|||
/* Update the image in the card */
|
||||
e_contact_set (me->contact, E_CONTACT_PHOTO, NULL);
|
||||
|
||||
/* Update GDM configuration */
|
||||
gnome_config_set_string ("/gdmphotosetup/last/picture", "");
|
||||
gnome_config_set_string ("/gdm/face/picture", "");
|
||||
gnome_config_sync ();
|
||||
file = g_build_filename (g_get_home_dir (), ".face", NULL);
|
||||
|
||||
g_unlink (file);
|
||||
|
||||
g_free (file);
|
||||
}
|
||||
|
||||
about_me_commit (me);
|
||||
|
|
Loading…
Add table
Reference in a new issue