X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-account-protocol.c;h=76aff6e86ef10d721f3dab4cf3f677330c012169;hp=c36e8498fa3d14741c943c7dd3cf84c7d09656e1;hb=4d39841513a3a7f7aa9d38ab97cb9fcc9171e80b;hpb=d711a4fb856d51a66da47e104c017b4ef61a2967 diff --git a/src/modest-account-protocol.c b/src/modest-account-protocol.c index c36e849..76aff6e 100644 --- a/src/modest-account-protocol.c +++ b/src/modest-account-protocol.c @@ -107,6 +107,11 @@ static gchar *modest_account_protocol_get_service_name_default (ModestAccountPro const gchar *account_id, const gchar *mailbox); +static const GdkPixbuf *modest_account_protocol_get_service_icon_default (ModestAccountProtocol *self, + const gchar *account_id, + const gchar *mailbox, + guint icon_size); + /* globals */ static GObjectClass *parent_class = NULL; @@ -203,6 +208,8 @@ modest_account_protocol_class_init (ModestAccountProtocolClass *klass) modest_account_protocol_get_icon_default; account_class->get_service_name = modest_account_protocol_get_service_name_default; + account_class->get_service_icon = + modest_account_protocol_get_service_icon_default; } static void @@ -730,3 +737,23 @@ modest_account_protocol_get_service_name_default (ModestAccountProtocol *self, return NULL; } +const GdkPixbuf * +modest_account_protocol_get_service_icon (ModestAccountProtocol *self, + const gchar *account_id, + const gchar *mailbox, + guint icon_size) +{ + return MODEST_ACCOUNT_PROTOCOL_GET_CLASS (self)->get_service_icon (self, account_id, mailbox, icon_size); +} + +static const GdkPixbuf * +modest_account_protocol_get_service_icon_default (ModestAccountProtocol *self, + const gchar *account_id, + const gchar *mailbox, + guint icon_size) +{ + g_return_val_if_fail (MODEST_ACCOUNT_PROTOCOL (self), NULL); + + return NULL; +} +