aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-06-24 19:31:28 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-06-25 08:31:42 +0800
commitf960fd2dff5358f0e13eba7041d35855bf48c22e (patch)
tree92859c8ba093fa15a3bd7b888332d6e61a704a51 /modules
parent88db20f3e9ff38296c031671de963ae665fd8143 (diff)
downloadgsoc2013-evolution-f960fd2dff5358f0e13eba7041d35855bf48c22e.tar
gsoc2013-evolution-f960fd2dff5358f0e13eba7041d35855bf48c22e.tar.gz
gsoc2013-evolution-f960fd2dff5358f0e13eba7041d35855bf48c22e.tar.bz2
gsoc2013-evolution-f960fd2dff5358f0e13eba7041d35855bf48c22e.tar.lz
gsoc2013-evolution-f960fd2dff5358f0e13eba7041d35855bf48c22e.tar.xz
gsoc2013-evolution-f960fd2dff5358f0e13eba7041d35855bf48c22e.tar.zst
gsoc2013-evolution-f960fd2dff5358f0e13eba7041d35855bf48c22e.zip
Reduce usage of g_type_class_peek_parent().
G_DEFINE_TYPE macros define a static "parent_class" variable.
Diffstat (limited to 'modules')
-rw-r--r--modules/audio-inline/e-mail-formatter-audio-inline.c2
-rw-r--r--modules/audio-inline/e-mail-parser-audio-inline.c2
-rw-r--r--modules/itip-formatter/e-mail-formatter-itip.c2
-rw-r--r--modules/itip-formatter/e-mail-parser-itip.c2
-rw-r--r--modules/prefer-plain/e-mail-parser-prefer-plain.c2
-rw-r--r--modules/text-highlight/text-highlight.c4
-rw-r--r--modules/tnef-attachment/e-mail-parser-tnef-attachment.c2
-rw-r--r--modules/vcard-inline/e-mail-formatter-vcard-inline.c2
-rw-r--r--modules/vcard-inline/e-mail-parser-vcard-inline.c2
9 files changed, 0 insertions, 20 deletions
diff --git a/modules/audio-inline/e-mail-formatter-audio-inline.c b/modules/audio-inline/e-mail-formatter-audio-inline.c
index 4116748923..92e8ca94f1 100644
--- a/modules/audio-inline/e-mail-formatter-audio-inline.c
+++ b/modules/audio-inline/e-mail-formatter-audio-inline.c
@@ -340,8 +340,6 @@ e_mail_formatter_audio_inline_class_init (EMailFormatterAudioInlineClass *klass)
GObjectClass *object_class;
EExtensionClass *extension_class;
- e_mail_formatter_audio_inline_parent_class = g_type_class_peek_parent (klass);
-
object_class = G_OBJECT_CLASS (klass);
object_class->constructed = e_mail_formatter_audio_inline_constructed;
diff --git a/modules/audio-inline/e-mail-parser-audio-inline.c b/modules/audio-inline/e-mail-parser-audio-inline.c
index 0e872971f4..2084f18a54 100644
--- a/modules/audio-inline/e-mail-parser-audio-inline.c
+++ b/modules/audio-inline/e-mail-parser-audio-inline.c
@@ -178,8 +178,6 @@ e_mail_parser_audio_inline_class_init (EMailParserAudioInlineClass *klass)
GObjectClass *object_class;
EExtensionClass *extension_class;
- e_mail_parser_audio_inline_parent_class = g_type_class_peek_parent (klass);
-
object_class = G_OBJECT_CLASS (klass);
object_class->constructed = e_mail_parser_audio_inline_constructed;
diff --git a/modules/itip-formatter/e-mail-formatter-itip.c b/modules/itip-formatter/e-mail-formatter-itip.c
index ebec6bc56c..f386420613 100644
--- a/modules/itip-formatter/e-mail-formatter-itip.c
+++ b/modules/itip-formatter/e-mail-formatter-itip.c
@@ -177,8 +177,6 @@ e_mail_formatter_itip_class_init (EMailFormatterItipClass *klass)
GObjectClass *object_class;
EExtensionClass *extension_class;
- e_mail_formatter_itip_parent_class = g_type_class_peek_parent (klass);
-
object_class = G_OBJECT_CLASS (klass);
object_class->constructed = e_mail_formatter_itip_constructed;
object_class->finalize = e_mail_formatter_itip_finalize;
diff --git a/modules/itip-formatter/e-mail-parser-itip.c b/modules/itip-formatter/e-mail-parser-itip.c
index 6324cd25e1..3c5532998b 100644
--- a/modules/itip-formatter/e-mail-parser-itip.c
+++ b/modules/itip-formatter/e-mail-parser-itip.c
@@ -294,8 +294,6 @@ e_mail_parser_itip_class_init (EMailParserItipClass *klass)
GObjectClass *object_class;
EExtensionClass *extension_class;
- e_mail_parser_itip_parent_class = g_type_class_peek_parent (klass);
-
object_class = G_OBJECT_CLASS (klass);
object_class->constructed = e_mail_parser_itip_constructed;
object_class->finalize = e_mail_parser_itip_finalize;
diff --git a/modules/prefer-plain/e-mail-parser-prefer-plain.c b/modules/prefer-plain/e-mail-parser-prefer-plain.c
index 37da8d3a43..178edc7e6b 100644
--- a/modules/prefer-plain/e-mail-parser-prefer-plain.c
+++ b/modules/prefer-plain/e-mail-parser-prefer-plain.c
@@ -449,8 +449,6 @@ e_mail_parser_prefer_plain_class_init (EMailParserPreferPlainClass *klass)
GObjectClass *object_class;
EExtensionClass *extension_class;
- e_mail_parser_prefer_plain_parent_class = g_type_class_peek_parent (klass);
-
object_class = G_OBJECT_CLASS (klass);
object_class->constructed = e_mail_parser_prefer_plain_constructed;
object_class->get_property = e_mail_parser_prefer_plain_get_property;
diff --git a/modules/text-highlight/text-highlight.c b/modules/text-highlight/text-highlight.c
index 462e5f0dc3..d5ebecb0f9 100644
--- a/modules/text-highlight/text-highlight.c
+++ b/modules/text-highlight/text-highlight.c
@@ -61,8 +61,6 @@ G_DEFINE_DYNAMIC_TYPE_EXTENDED (
E_TYPE_MAIL_FORMATTER_EXTENSION,
e_mail_formatter_formatter_extension_interface_init));
-static gpointer emfe_parent_class = 0;
-
static const gchar *formatter_mime_types[] = { "text/x-diff",
"text/x-patch",
NULL };
@@ -279,8 +277,6 @@ e_mail_formatter_text_highlight_class_init (EMailFormatterTextHighlightClass *kl
GObjectClass *object_class;
EExtensionClass *extension_class;
- emfe_parent_class = g_type_class_peek_parent (klass);
-
object_class = G_OBJECT_CLASS (klass);
object_class->constructed = emfe_text_highlight_constructed;
diff --git a/modules/tnef-attachment/e-mail-parser-tnef-attachment.c b/modules/tnef-attachment/e-mail-parser-tnef-attachment.c
index 854a17765a..d2f1e7f843 100644
--- a/modules/tnef-attachment/e-mail-parser-tnef-attachment.c
+++ b/modules/tnef-attachment/e-mail-parser-tnef-attachment.c
@@ -298,8 +298,6 @@ e_mail_parser_tnef_attachment_class_init (EMailParserTnefAttachmentClass *klass)
GObjectClass *object_class;
EExtensionClass *extension_class;
- e_mail_parser_tnef_attachment_parent_class = g_type_class_peek_parent (klass);
-
object_class = G_OBJECT_CLASS (klass);
object_class->constructed = e_mail_parser_tnef_attachment_constructed;
diff --git a/modules/vcard-inline/e-mail-formatter-vcard-inline.c b/modules/vcard-inline/e-mail-formatter-vcard-inline.c
index 54d095fc31..2fa6d2d024 100644
--- a/modules/vcard-inline/e-mail-formatter-vcard-inline.c
+++ b/modules/vcard-inline/e-mail-formatter-vcard-inline.c
@@ -226,8 +226,6 @@ e_mail_formatter_vcard_inline_class_init (EMailFormatterVCardInlineClass *klass)
GObjectClass *object_class;
EExtensionClass *extension_class;
- e_mail_formatter_vcard_inline_parent_class = g_type_class_peek_parent (klass);
-
object_class = G_OBJECT_CLASS (klass);
object_class->constructed = e_mail_formatter_vcard_inline_constructed;
diff --git a/modules/vcard-inline/e-mail-parser-vcard-inline.c b/modules/vcard-inline/e-mail-parser-vcard-inline.c
index e4827d0709..5ab297d049 100644
--- a/modules/vcard-inline/e-mail-parser-vcard-inline.c
+++ b/modules/vcard-inline/e-mail-parser-vcard-inline.c
@@ -412,8 +412,6 @@ e_mail_parser_vcard_inline_class_init (EMailParserVCardInlineClass *klass)
GObjectClass *object_class;
EExtensionClass *extension_class;
- e_mail_parser_vcard_inline_parent_class = g_type_class_peek_parent (klass);
-
object_class = G_OBJECT_CLASS (klass);
object_class->constructed = e_mail_parser_vcard_inline_constructed;