diff options
author | JP Rosevear <jpr@novell.com> | 2004-10-14 23:53:29 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2004-10-14 23:53:29 +0800 |
commit | dce3735025a16ac72151b751a061120fe4209648 (patch) | |
tree | f3c60bed93fe807fbeccbbde1cce6c2599852610 /calendar/gui/e-meeting-list-view.c | |
parent | 086338bb035c96491b792bd93f65a94d1f236916 (diff) | |
download | gsoc2013-evolution-dce3735025a16ac72151b751a061120fe4209648.tar.gz gsoc2013-evolution-dce3735025a16ac72151b751a061120fe4209648.tar.zst gsoc2013-evolution-dce3735025a16ac72151b751a061120fe4209648.zip |
convert to G_DEFINE_TYPE
2004-10-14 JP Rosevear <jpr@novell.com>
* gui/e-meeting-attendee.c: convert to G_DEFINE_TYPE
* gui/e-meeting-list-view.c: ditto
* gui/e-meeting-time-sel.c: ditto
* gui/e-meeting-time-sel-item.c: ditto
* gui/e-select-names-renderer.c: ditto
* gui/e-timezone-entry.c: ditto
* gui/e-tasks.c: ditto
* gui/gnome-cal.c: ditto
* gui/weekday-picker.c: ditto
svn path=/trunk/; revision=27584
Diffstat (limited to 'calendar/gui/e-meeting-list-view.c')
-rw-r--r-- | calendar/gui/e-meeting-list-view.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/calendar/gui/e-meeting-list-view.c b/calendar/gui/e-meeting-list-view.c index 82be947d8c..a8f30f9bec 100644 --- a/calendar/gui/e-meeting-list-view.c +++ b/calendar/gui/e-meeting-list-view.c @@ -67,10 +67,10 @@ static icalparameter_role roles[] = {ICAL_ROLE_CHAIR, ICAL_ROLE_NONPARTICIPANT, ICAL_ROLE_NONE}; -static GtkTreeViewClass *parent_class = NULL; +G_DEFINE_TYPE (EMeetingListView, e_meeting_list_view, GTK_TYPE_TREE_VIEW); static void -emlv_finalize (GObject *obj) +e_meeting_list_view_finalize (GObject *obj) { EMeetingListView *view = E_MEETING_LIST_VIEW (obj); EMeetingListViewPrivate *priv = view->priv; @@ -84,21 +84,23 @@ emlv_finalize (GObject *obj) g_free (priv); - if (G_OBJECT_CLASS (parent_class)->finalize) - (* G_OBJECT_CLASS (parent_class)->finalize) (obj); + if (G_OBJECT_CLASS (e_meeting_list_view_parent_class)->finalize) + (* G_OBJECT_CLASS (e_meeting_list_view_parent_class)->finalize) (obj); } static void -emlv_class_init (GObjectClass *klass) +e_meeting_list_view_class_init (EMeetingListViewClass *klass) { - parent_class = g_type_class_peek_parent (klass); + GObjectClass *object_class; - klass->finalize = emlv_finalize; + object_class = G_OBJECT_CLASS (klass); + + object_class->finalize = e_meeting_list_view_finalize; } static void -emlv_init (EMeetingListView *view) +e_meeting_list_view_init (EMeetingListView *view) { EMeetingListViewPrivate *priv; @@ -109,7 +111,6 @@ emlv_init (EMeetingListView *view) priv->corba_select_names = CORBA_OBJECT_NIL; } -E_MAKE_TYPE (e_meeting_list_view, "EMeetingListView", EMeetingListView, emlv_class_init, emlv_init, GTK_TYPE_TREE_VIEW); static GList * get_type_strings () { |