gnome-control-center r9113 - trunk/capplets/about-me



Author: ssp
Date: Fri Oct 24 23:36:14 2008
New Revision: 9113
URL: http://svn.gnome.org/viewvc/gnome-control-center?rev=9113&view=rev

Log:
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.



Modified:
   trunk/capplets/about-me/ChangeLog
   trunk/capplets/about-me/gnome-about-me-password.c
   trunk/capplets/about-me/gnome-about-me.c

Modified: trunk/capplets/about-me/gnome-about-me-password.c
==============================================================================
--- trunk/capplets/about-me/gnome-about-me-password.c	(original)
+++ trunk/capplets/about-me/gnome-about-me-password.c	Fri Oct 24 23:36:14 2008
@@ -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>

Modified: trunk/capplets/about-me/gnome-about-me.c
==============================================================================
--- trunk/capplets/about-me/gnome-about-me.c	(original)
+++ trunk/capplets/about-me/gnome-about-me.c	Fri Oct 24 23:36:14 2008
@@ -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 @@
 		/* 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]