From f960fd2dff5358f0e13eba7041d35855bf48c22e Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sun, 24 Jun 2012 07:31:28 -0400 Subject: Reduce usage of g_type_class_peek_parent(). G_DEFINE_TYPE macros define a static "parent_class" variable. --- widgets/table/e-table-header.c | 2 -- widgets/table/e-table-sort-info.c | 2 -- 2 files changed, 4 deletions(-) (limited to 'widgets/table') diff --git a/widgets/table/e-table-header.c b/widgets/table/e-table-header.c index 2045896532..2728a7ebd9 100644 --- a/widgets/table/e-table-header.c +++ b/widgets/table/e-table-header.c @@ -276,8 +276,6 @@ e_table_header_class_init (ETableHeaderClass *class) object_class->set_property = eth_set_property; object_class->get_property = eth_get_property; - e_table_header_parent_class = g_type_class_peek_parent (object_class); - g_object_class_install_property ( object_class, PROP_WIDTH, g_param_spec_double ("width", "Width", "Width", diff --git a/widgets/table/e-table-sort-info.c b/widgets/table/e-table-sort-info.c index c477618f09..c85731bc36 100644 --- a/widgets/table/e-table-sort-info.c +++ b/widgets/table/e-table-sort-info.c @@ -77,8 +77,6 @@ e_table_sort_info_class_init (ETableSortInfoClass *class) { GObjectClass * object_class = G_OBJECT_CLASS (class); - e_table_sort_info_parent_class = g_type_class_peek_parent (class); - object_class->finalize = etsi_finalize; e_table_sort_info_signals[SORT_INFO_CHANGED] = -- cgit v1.2.3