diff options
author | JP Rosevear <jpr@novell.com> | 2004-10-14 23:22:32 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2004-10-14 23:22:32 +0800 |
commit | 6ff314b9cc64c6a409f61913d40e1e935439a46c (patch) | |
tree | 423306d7f315ab72dbc34d9df87657ba6e808af5 /calendar/gui/e-cal-list-view.c | |
parent | 66152fe6537418489c2186a5e5c269c6e7c81db3 (diff) | |
download | gsoc2013-evolution-6ff314b9cc64c6a409f61913d40e1e935439a46c.tar.gz gsoc2013-evolution-6ff314b9cc64c6a409f61913d40e1e935439a46c.tar.zst gsoc2013-evolution-6ff314b9cc64c6a409f61913d40e1e935439a46c.zip |
convert to G_DEFINE_TYPE
2004-10-14 JP Rosevear <jpr@novell.com>
* gui/e-cal-list-view-config.c: convert to G_DEFINE_TYPE
* gui/e-cal-list-view.c: ditto
* gui/e-cal-model-calendar.c: ditto
* gui/e-cal-model-tasks.c: ditto
* gui/e-cal-model.c: ditto
* gui/e-calendar-table-config.c: ditto
* gui/e-calendar-table.c: ditto
* gui/e-calendar-view.c: ditto
svn path=/trunk/; revision=27580
Diffstat (limited to 'calendar/gui/e-cal-list-view.c')
-rw-r--r-- | calendar/gui/e-cal-list-view.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/calendar/gui/e-cal-list-view.c b/calendar/gui/e-cal-list-view.c index 69f4c85aa9..8e13003b12 100644 --- a/calendar/gui/e-cal-list-view.c +++ b/calendar/gui/e-cal-list-view.c @@ -25,7 +25,9 @@ * ECalListView - display calendar events in an ETable. */ +#ifdef HAVE_CONFIG_H #include <config.h> +#endif #include "e-cal-list-view.h" #include "ea-calendar.h" @@ -41,7 +43,6 @@ #include <gtk/gtkvscrollbar.h> #include <gtk/gtkwindow.h> #include <gal/widgets/e-gui-utils.h> -#include <gal/util/e-util.h> #include <gal/e-table/e-table-memory-store.h> #include <gal/e-table/e-cell-checkbox.h> #include <gal/e-table/e-cell-toggle.h> @@ -70,8 +71,6 @@ #include "goto.h" #include "misc.h" -static void e_cal_list_view_class_init (ECalListViewClass *class); -static void e_cal_list_view_init (ECalListView *cal_list_view); static void e_cal_list_view_destroy (GtkObject *object); static GList *e_cal_list_view_get_selected_events (ECalendarView *cal_view); @@ -88,10 +87,7 @@ static gboolean e_cal_list_view_on_table_double_click (GtkWidget *table, gint static gboolean e_cal_list_view_on_table_right_click (GtkWidget *table, gint row, gint col, GdkEvent *event, gpointer data); -static GtkTableClass *parent_class; /* Should be ECalendarViewClass? */ - -E_MAKE_TYPE (e_cal_list_view, "ECalListView", ECalListView, e_cal_list_view_class_init, - e_cal_list_view_init, e_calendar_view_get_type ()); +G_DEFINE_TYPE (ECalListView, e_cal_list_view, E_TYPE_CALENDAR_VIEW); static void e_cal_list_view_class_init (ECalListViewClass *class) @@ -100,7 +96,6 @@ e_cal_list_view_class_init (ECalListViewClass *class) GtkWidgetClass *widget_class; ECalendarViewClass *view_class; - parent_class = g_type_class_peek_parent (class); object_class = (GtkObjectClass *) class; widget_class = (GtkWidgetClass *) class; view_class = (ECalendarViewClass *) class; @@ -361,7 +356,7 @@ e_cal_list_view_destroy (GtkObject *object) cal_list_view->table_scrolled = NULL; } - GTK_OBJECT_CLASS (parent_class)->destroy (object); + GTK_OBJECT_CLASS (e_cal_list_view_parent_class)->destroy (object); } static void |