diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-06-14 22:44:56 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-06-14 23:27:08 +0800 |
commit | 96c32f5facc22faefd2f753d22d462266009de21 (patch) | |
tree | f312db5b8203c03fec0335dffad9cf00288eda50 /mail | |
parent | f60986649aed9c2ce7dbd69db6a44d9c6ef87d9f (diff) | |
download | gsoc2013-evolution-96c32f5facc22faefd2f753d22d462266009de21.tar.gz gsoc2013-evolution-96c32f5facc22faefd2f753d22d462266009de21.tar.zst gsoc2013-evolution-96c32f5facc22faefd2f753d22d462266009de21.zip |
Make MessageList extensible.
Also add a placeholder ESettingsMessageList extension. Going to clean
out some of the direct GSettings usage in MessageList by adding GObject
properties and binding them to GSettings keys from the extension.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/message-list.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/mail/message-list.c b/mail/message-list.c index f8d2f10446..dcf5a245f1 100644 --- a/mail/message-list.c +++ b/mail/message-list.c @@ -162,6 +162,8 @@ G_DEFINE_TYPE_WITH_CODE ( message_list, E_TYPE_TREE, G_IMPLEMENT_INTERFACE ( + E_TYPE_EXTENSIBLE, NULL) + G_IMPLEMENT_INTERFACE ( E_TYPE_SELECTABLE, message_list_selectable_init)) @@ -2748,6 +2750,15 @@ message_list_finalize (GObject *object) } static void +message_list_constructed (GObject *object) +{ + /* Chain up to parent's constructed() method. */ + G_OBJECT_CLASS (message_list_parent_class)->constructed (object); + + e_extensible_load_extensions (E_EXTENSIBLE (object)); +} + +static void message_list_selectable_update_actions (ESelectable *selectable, EFocusTracker *focus_tracker, GdkAtom *clipboard_targets, @@ -2784,6 +2795,7 @@ message_list_class_init (MessageListClass *class) object_class->get_property = message_list_get_property; object_class->dispose = message_list_dispose; object_class->finalize = message_list_finalize; + object_class->constructed = message_list_constructed; class->message_list_built = NULL; |