[system-tools-backends-clone] Add field for face in UserConfig
- From: Milan Bouchet-Valat <milanbv src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [system-tools-backends-clone] Add field for face in UserConfig
- Date: Mon, 8 Feb 2010 22:43:42 +0000 (UTC)
commit d94c927ce12ee68fa9c90d56b3898b017941787b
Author: Milan Bouchet-Valat <nalimilan club fr>
Date: Sun Feb 7 21:29:32 2010 +0100
Add field for face in UserConfig
This field will be used later to set the path to a file containing the image to be used as a face (~/.face). For now it's just a placeholder to avoid changing the protocol again.
UserConfig.pm | 4 ++--
Users/Users.pm | 2 ++
2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/UserConfig.pm b/UserConfig.pm
index a50f10e..e0185a7 100644
--- a/UserConfig.pm
+++ b/UserConfig.pm
@@ -32,9 +32,9 @@ my $OBJECT_PATH = "$Utils::Backend::DBUS_PATH/$OBJECT_NAME";
# base user struct, also used in UsersConfig
# variables: login, password, UID, main group GID, GECOS fields, home, shell,
-# password flags, encrypted home, home dir flags, locale, location
+# password flags, encrypted home, home dir flags, locale, location, face
our $USER_FORMAT = [ "struct", "string", "string", "uint32", "uint32", [ "array", "string" ], "string", "string",
- "int32", "bool", "int32", "string", "string" ];
+ "int32", "bool", "int32", "string", "string", "string" ];
sub new
{
diff --git a/Users/Users.pm b/Users/Users.pm
index 24b806e..523aa2a 100644
--- a/Users/Users.pm
+++ b/Users/Users.pm
@@ -90,6 +90,7 @@ my $ENC_HOME = $i++;
my $HOME_FLAGS = $i++;
my $LOCALE = $i++;
my $LOCATION = $i++;
+my $FACE = $i++;
%login_defs_prop_map = ();
%profiles_prop_map = ();
@@ -380,6 +381,7 @@ sub get
$users_hash{$login}[$HOME_FLAGS] = 0;
$users_hash{$login}[$LOCALE] = "";
$users_hash{$login}[$LOCATION] = "";
+ $users_hash{$login}[$FACE] = "";
}
&Utils::File::close_file ($ifh);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]