diff options
author | Matthew Barnes <mbarnes@src.gnome.org> | 2009-04-15 02:32:57 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2009-04-15 02:32:57 +0800 |
commit | 4279d2042844fddc4429b8690a550778740222e3 (patch) | |
tree | a035b753a0eab170f5354dcfdfea21f7b74fc2c2 /mail/em-format-html-print.c | |
parent | 942cdf2df9091e347e09c25d62015e77775f38b6 (diff) | |
download | gsoc2013-evolution-4279d2042844fddc4429b8690a550778740222e3.tar.gz gsoc2013-evolution-4279d2042844fddc4429b8690a550778740222e3.tar.zst gsoc2013-evolution-4279d2042844fddc4429b8690a550778740222e3.zip |
Commit some code cleanups that I want to keep separate.
svn path=/branches/kill-bonobo/; revision=37522
Diffstat (limited to 'mail/em-format-html-print.c')
-rw-r--r-- | mail/em-format-html-print.c | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/mail/em-format-html-print.c b/mail/em-format-html-print.c index 28767d216d..137711dbb7 100644 --- a/mail/em-format-html-print.c +++ b/mail/em-format-html-print.c @@ -38,22 +38,27 @@ static gpointer parent_class = NULL; static void -efhp_finalize (GObject *o) +efhp_finalize (GObject *object) { - EMFormatHTMLPrint *efhp = (EMFormatHTMLPrint *)o; + EMFormatHTMLPrint *efhp = (EMFormatHTMLPrint *)object; gtk_widget_destroy (efhp->window); if (efhp->source != NULL) g_object_unref (efhp->source); - ((GObjectClass *) parent_class)->finalize (o); + /* Chain up to parent's finalize() method. */ + G_OBJECT_CLASS (parent_class)->finalize (object); } static void -efhp_class_init (GObjectClass *class) +efhp_class_init (EMFormatHTMLPrintClass *class) { + GObjectClass *object_class; + parent_class = g_type_class_peek_parent (class); - class->finalize = efhp_finalize; + + object_class = G_OBJECT_CLASS (class); + object_class->finalize = efhp_finalize; } static void @@ -93,7 +98,7 @@ em_format_html_print_get_type (void) }; type = g_type_register_static ( - em_format_html_get_type (), "EMFormatHTMLPrint", + EM_TYPE_FORMAT_HTML, "EMFormatHTMLPrint", &type_info, 0); } @@ -101,7 +106,8 @@ em_format_html_print_get_type (void) } EMFormatHTMLPrint * -em_format_html_print_new (EMFormatHTML *source, GtkPrintOperationAction action) +em_format_html_print_new (EMFormatHTML *source, + GtkPrintOperationAction action) { EMFormatHTMLPrint *efhp; |