diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2012-06-24 19:31:28 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2012-06-25 08:31:42 +0800 |
commit | f960fd2dff5358f0e13eba7041d35855bf48c22e (patch) | |
tree | 92859c8ba093fa15a3bd7b888332d6e61a704a51 /mail/e-mail-printer.c | |
parent | 88db20f3e9ff38296c031671de963ae665fd8143 (diff) | |
download | gsoc2013-evolution-f960fd2dff5358f0e13eba7041d35855bf48c22e.tar.gz 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 'mail/e-mail-printer.c')
-rw-r--r-- | mail/e-mail-printer.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/mail/e-mail-printer.c b/mail/e-mail-printer.c index f90414f02d..309e2bdeef 100644 --- a/mail/e-mail-printer.c +++ b/mail/e-mail-printer.c @@ -35,8 +35,6 @@ #include "e-mail-printer.h" #include "e-mail-display.h" -static gpointer parent_class = NULL; - enum { BUTTON_SELECT_ALL, BUTTON_SELECT_NONE, @@ -727,7 +725,7 @@ emp_finalize (GObject *object) } /* Chain up to parent's finalize() method. */ - G_OBJECT_CLASS (parent_class)->finalize (object); + G_OBJECT_CLASS (e_mail_printer_parent_class)->finalize (object); } static void @@ -735,7 +733,6 @@ e_mail_printer_class_init (EMailPrinterClass *klass) { GObjectClass *object_class; - parent_class = g_type_class_peek_parent (klass); g_type_class_add_private (klass, sizeof (EMailPrinterPrivate)); object_class = G_OBJECT_CLASS (klass); |