summaryrefslogtreecommitdiff
path: root/libmissioncontrol
diff options
context:
space:
mode:
authorAlberto Mardegan <mardy@users.sourceforge.net>2007-09-24 13:38:12 +0000
committerAlberto Mardegan <mardy@users.sourceforge.net>2007-09-24 13:38:12 +0000
commitd3b25470f050d4b790bddba5ac7d07e5facf4efa (patch)
tree2f52df78212a28448f445a68ff9283aa07ab5577 /libmissioncontrol
parentb693df4893e8e247a96b65f91f67872302df0538 (diff)
Immediately update display/normalized name, without waiting for GConf
notification. Fixes: #1797819. git-svn-id: https://mission-control.svn.sourceforge.net/svnroot/mission-control/trunk@148 d91c8aed-3f2b-0410-a83d-924a1c20a0ba
Diffstat (limited to 'libmissioncontrol')
-rw-r--r--libmissioncontrol/mc-account.c22
1 files changed, 17 insertions, 5 deletions
diff --git a/libmissioncontrol/mc-account.c b/libmissioncontrol/mc-account.c
index 2c11c90b..ea122836 100644
--- a/libmissioncontrol/mc-account.c
+++ b/libmissioncontrol/mc-account.c
@@ -1050,9 +1050,15 @@ mc_account_get_normalized_name (McAccount *account)
gboolean
mc_account_set_normalized_name (McAccount *account, const gchar *name)
{
- return _mc_account_gconf_set_string (account,
+ if (_mc_account_gconf_set_string (account,
MC_ACCOUNTS_GCONF_KEY_NORMALIZED_NAME,
- name);
+ name))
+ {
+ _mc_account_set_normalized_name_priv (account, name);
+ return TRUE;
+ }
+ else
+ return FALSE;
}
/**
@@ -1131,9 +1137,15 @@ mc_account_get_display_name (McAccount *account)
gboolean
mc_account_set_display_name (McAccount *account, const gchar *name)
{
- return _mc_account_gconf_set_string (account,
- MC_ACCOUNTS_GCONF_KEY_DISPLAY_NAME,
- (name && *name) ? name : NULL);
+ if (_mc_account_gconf_set_string (account,
+ MC_ACCOUNTS_GCONF_KEY_DISPLAY_NAME,
+ (name && *name) ? name : NULL))
+ {
+ _mc_account_set_display_name_priv (account, name);
+ return TRUE;
+ }
+ else
+ return FALSE;
}
/**