summaryrefslogtreecommitdiff
path: root/libmissioncontrol
diff options
context:
space:
mode:
authorAlberto Mardegan <mardy@users.sourceforge.net>2007-12-18 13:13:26 +0000
committerAlberto Mardegan <mardy@users.sourceforge.net>2007-12-18 13:13:26 +0000
commit82ff172170d68c435a04588c9d5aefa3a20ced37 (patch)
tree5d64e86ab920d70213af4c54a6fa5587d7e34cb6 /libmissioncontrol
parentadd285396b2bad20c611bbcdd7f69e17a44d24ae (diff)
Use a timestamp as avatar ID, instead of a random number (which is not
necessarily unique). git-svn-id: https://mission-control.svn.sourceforge.net/svnroot/mission-control/trunk@214 d91c8aed-3f2b-0410-a83d-924a1c20a0ba
Diffstat (limited to 'libmissioncontrol')
-rw-r--r--libmissioncontrol/mc-account.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmissioncontrol/mc-account.c b/libmissioncontrol/mc-account.c
index 1ea89b6b..8e4634d9 100644
--- a/libmissioncontrol/mc-account.c
+++ b/libmissioncontrol/mc-account.c
@@ -2152,7 +2152,7 @@ mc_account_set_avatar_from_data (McAccount *account, const gchar *data,
* having to load the file */
key = _mc_account_path (MC_ACCOUNT_PRIV (account)->unique_name,
MC_ACCOUNTS_GCONF_KEY_AVATAR_ID, FALSE);
- ret = gconf_client_set_int(client, key, g_random_int(), NULL);
+ ret = gconf_client_set_int(client, key, time(0), NULL);
g_free (key);
if (mime_type)
@@ -2317,7 +2317,7 @@ mc_account_reset_avatar_id (McAccount *account)
key = _mc_account_path (MC_ACCOUNT_PRIV (account)->unique_name,
MC_ACCOUNTS_GCONF_KEY_AVATAR_ID, FALSE);
- ok = gconf_client_set_int (client, key, g_random_int(), NULL);
+ ok = gconf_client_set_int (client, key, time(0), NULL);
g_free (key);
g_object_unref (client);