aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-accounts.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2003-02-01 03:40:31 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-02-01 03:40:31 +0800
commitd48d40c7cea47dc69e10988417e99c525b877a16 (patch)
treeb415d40a5d10dbdbdfd7ae52c69a3da3b487ee58 /mail/mail-accounts.c
parent08fdb0bd4aeac43bc42438e9735e843c352b4e05 (diff)
downloadgsoc2013-evolution-d48d40c7cea47dc69e10988417e99c525b877a16.tar
gsoc2013-evolution-d48d40c7cea47dc69e10988417e99c525b877a16.tar.gz
gsoc2013-evolution-d48d40c7cea47dc69e10988417e99c525b877a16.tar.bz2
gsoc2013-evolution-d48d40c7cea47dc69e10988417e99c525b877a16.tar.lz
gsoc2013-evolution-d48d40c7cea47dc69e10988417e99c525b877a16.tar.xz
gsoc2013-evolution-d48d40c7cea47dc69e10988417e99c525b877a16.tar.zst
gsoc2013-evolution-d48d40c7cea47dc69e10988417e99c525b877a16.zip
New function to return a cached list of labels.
2003-01-31 Jeffrey Stedfast <fejj@ximian.com> * mail-config.c (mail_config_get_labels): New function to return a cached list of labels. (mail_config_get_label_color_by_name): New convenience function to search the cached labels. (mail_config_get_label_color_by_index): Same. (mail_config_init): Cache the labels and also listen for changes to them in the gconf db. (config_cache_labels): Internal function to cache the labels. * folder-browser.c (on_right_click): Fixed the label colours in the menu by using the cached linked list of labels. * mail-preferences.c (colorpicker_set_color): Now takes a string argument allowing us to get rid of converting a string into an rgb guint32 all over the place when trying to set defaults, since we now store colors in gconf as strings. (mail_preferences_construct): Use the cached labels (they are already parsed for us). svn path=/trunk/; revision=19694
Diffstat (limited to 'mail/mail-accounts.c')
-rw-r--r--mail/mail-accounts.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/mail/mail-accounts.c b/mail/mail-accounts.c
index f3c16f50b2..ddd92a1bbc 100644
--- a/mail/mail-accounts.c
+++ b/mail/mail-accounts.c
@@ -87,8 +87,6 @@ mail_accounts_tab_class_init (MailAccountsTabClass *klass)
parent_class = g_type_class_ref (gtk_vbox_get_type ());
object_class->finalize = mail_accounts_tab_finalise;
- /* override methods */
-
/* setup static data */
disabled_pixbuf = NULL;
@@ -113,7 +111,7 @@ mail_accounts_tab_finalise (GObject *obj)
gdk_pixmap_unref (prefs->mark_pixmap);
g_object_unref (prefs->mark_bitmap);
- ((GObjectClass *)(parent_class))->finalize (obj);
+ G_OBJECT_CLASS (parent_class)->finalize (obj);
}
static void