diff options
author | Milan Crha <mcrha@redhat.com> | 2007-11-23 17:42:41 +0800 |
---|---|---|
committer | Milan Crha <mcrha@src.gnome.org> | 2007-11-23 17:42:41 +0800 |
commit | 906aa2cf6afa48c8431c62c0e9632434d6776086 (patch) | |
tree | 10818b60a4997687e05cba2342d31cab800dcf00 /mail | |
parent | 614642401ca9368814f29978dbbbda988d6df18c (diff) | |
download | gsoc2013-evolution-906aa2cf6afa48c8431c62c0e9632434d6776086.tar gsoc2013-evolution-906aa2cf6afa48c8431c62c0e9632434d6776086.tar.gz gsoc2013-evolution-906aa2cf6afa48c8431c62c0e9632434d6776086.tar.bz2 gsoc2013-evolution-906aa2cf6afa48c8431c62c0e9632434d6776086.tar.lz gsoc2013-evolution-906aa2cf6afa48c8431c62c0e9632434d6776086.tar.xz gsoc2013-evolution-906aa2cf6afa48c8431c62c0e9632434d6776086.tar.zst gsoc2013-evolution-906aa2cf6afa48c8431c62c0e9632434d6776086.zip |
** Fix for bug #494414
2007-11-23 Milan Crha <mcrha@redhat.com>
** Fix for bug #494414
* em-folder-selection-button.c: (set_contents): If used uri points
to an account, then prepend account's name to folder name.
svn path=/trunk/; revision=34574
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 7 | ||||
-rw-r--r-- | mail/em-folder-selection-button.c | 12 |
2 files changed, 18 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 9d93afd5a7..83058385cb 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,5 +1,12 @@ 2007-11-23 Milan Crha <mcrha@redhat.com> + ** Fix for bug #494414 + + * em-folder-selection-button.c: (set_contents): If used uri points + to an account, then prepend account's name to folder name. + +2007-11-23 Milan Crha <mcrha@redhat.com> + ** Fix for bug #494425 * em-utils.c: (get_unique_file_names): diff --git a/mail/em-folder-selection-button.c b/mail/em-folder-selection-button.c index 1a6406943f..a88095082d 100644 --- a/mail/em-folder-selection-button.c +++ b/mail/em-folder-selection-button.c @@ -34,6 +34,7 @@ #include <glib/gi18n.h> #include "mail-component.h" +#include "mail-config.h" #include "em-folder-tree.h" #include "em-folder-selector.h" #include "em-utils.h" @@ -130,7 +131,16 @@ set_contents (EMFolderSelectionButton *button) char *folder_name = em_utils_folder_name_from_uri (priv->uri); if (folder_name) { - gtk_label_set_text (GTK_LABEL (priv->label), _(folder_name)); + EAccount *account = mail_config_get_account_by_source_url (priv->uri); + + if (account) { + char *tmp = folder_name; + folder_name = g_strdup_printf ("%s/%s", e_account_get_string (account, E_ACCOUNT_NAME), _(folder_name)); + g_free (tmp); + gtk_label_set_text (GTK_LABEL (priv->label), folder_name); + } else + gtk_label_set_text (GTK_LABEL (priv->label), _(folder_name)); + g_free (folder_name); } else { set_contents_unselected (button); |