diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-08-24 23:21:41 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-08-25 02:37:02 +0800 |
commit | ecf3434da05b1f39f793c24b38bfd278e10b5786 (patch) | |
tree | 485ed2399920ecb10dbee2b4db4c437c22574a20 /mail/e-mail-browser.c | |
parent | f1d2541c487fbf7433a1b9aad8e8982ef08b85f5 (diff) | |
download | gsoc2013-evolution-ecf3434da05b1f39f793c24b38bfd278e10b5786.tar.gz gsoc2013-evolution-ecf3434da05b1f39f793c24b38bfd278e10b5786.tar.zst gsoc2013-evolution-ecf3434da05b1f39f793c24b38bfd278e10b5786.zip |
GObject boilerplate cleanup.
Prefer thread-safe G_DEFINE_TYPE and G_DEFINE_INTERFACE macros over
manual GType registration.
This is just a start... lots more to do.
Diffstat (limited to 'mail/e-mail-browser.c')
-rw-r--r-- | mail/e-mail-browser.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/mail/e-mail-browser.c b/mail/e-mail-browser.c index 9d4fdf95ba..2ace9e4dd6 100644 --- a/mail/e-mail-browser.c +++ b/mail/e-mail-browser.c @@ -723,13 +723,13 @@ static void mail_browser_set_message (EMailReader *reader, const gchar *uid) { - EMailReaderIface *iface; + EMailReaderInterface *interface; CamelMessageInfo *info; CamelFolder *folder; /* Chain up to parent's set_message() method. */ - iface = g_type_default_interface_peek (E_TYPE_MAIL_READER); - iface->set_message (reader, uid); + interface = g_type_default_interface_peek (E_TYPE_MAIL_READER); + interface->set_message (reader, uid); if (uid == NULL) { e_mail_browser_close (E_MAIL_BROWSER (reader)); @@ -814,17 +814,17 @@ mail_browser_class_init (EMailBrowserClass *class) } static void -mail_browser_iface_init (EMailReaderIface *iface) +mail_browser_interface_init (EMailReaderInterface *interface) { - iface->get_action_group = mail_browser_get_action_group; - iface->get_formatter = mail_browser_get_formatter; - iface->get_hide_deleted = mail_browser_get_hide_deleted; - iface->get_message_list = mail_browser_get_message_list; - iface->get_popup_menu = mail_browser_get_popup_menu; - iface->get_shell_backend = mail_browser_get_shell_backend; - iface->get_window = mail_browser_get_window; - iface->set_message = mail_browser_set_message; - iface->show_search_bar = mail_browser_show_search_bar; + interface->get_action_group = mail_browser_get_action_group; + interface->get_formatter = mail_browser_get_formatter; + interface->get_hide_deleted = mail_browser_get_hide_deleted; + interface->get_message_list = mail_browser_get_message_list; + interface->get_popup_menu = mail_browser_get_popup_menu; + interface->get_shell_backend = mail_browser_get_shell_backend; + interface->get_window = mail_browser_get_window; + interface->set_message = mail_browser_set_message; + interface->show_search_bar = mail_browser_show_search_bar; } static void @@ -864,8 +864,8 @@ e_mail_browser_get_type (void) NULL /* value_table */ }; - static const GInterfaceInfo iface_info = { - (GInterfaceInitFunc) mail_browser_iface_init, + static const GInterfaceInfo interface_info = { + (GInterfaceInitFunc) mail_browser_interface_init, (GInterfaceFinalizeFunc) NULL, NULL /* interface_data */ }; @@ -874,7 +874,7 @@ e_mail_browser_get_type (void) GTK_TYPE_WINDOW, "EMailBrowser", &type_info, 0); g_type_add_interface_static ( - type, E_TYPE_MAIL_READER, &iface_info); + type, E_TYPE_MAIL_READER, &interface_info); } return type; |