diff options
author | JP Rosevear <jpr@novell.com> | 2004-10-14 22:44:41 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2004-10-14 22:44:41 +0800 |
commit | 05b60f793cc6d7dff47b5980487f7ee1248d8f08 (patch) | |
tree | 5307fbc497e51420033956cdca3b1a2f3dab55d1 /calendar/gui/e-day-view-main-item.c | |
parent | 4d0c841a0368793bee8b0d5a17ead69b3093b30b (diff) | |
download | gsoc2013-evolution-05b60f793cc6d7dff47b5980487f7ee1248d8f08.tar.gz gsoc2013-evolution-05b60f793cc6d7dff47b5980487f7ee1248d8f08.tar.zst gsoc2013-evolution-05b60f793cc6d7dff47b5980487f7ee1248d8f08.zip |
convert to G_DEFINE_TYPE
2004-10-14 JP Rosevear <jpr@novell.com>
* gui/e-day-view.c: convert to G_DEFINE_TYPE
* gui/e-day-view-config.c: ditto
* gui/e-day-view-main-item.c: ditto
* gui/e-day-view-time-item.c: ditto
* gui/e-day-view-top-item.c: ditto
svn path=/trunk/; revision=27577
Diffstat (limited to 'calendar/gui/e-day-view-main-item.c')
-rw-r--r-- | calendar/gui/e-day-view-main-item.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/calendar/gui/e-day-view-main-item.c b/calendar/gui/e-day-view-main-item.c index a63a4da13c..4aaf02fcfb 100644 --- a/calendar/gui/e-day-view-main-item.c +++ b/calendar/gui/e-day-view-main-item.c @@ -27,15 +27,15 @@ * data in the main Day/Work Week display. */ +#ifdef HAVE_CONFIG_H #include <config.h> +#endif + #include "e-util/e-categories-config.h" #include "e-day-view-layout.h" #include "e-day-view-main-item.h" #include "ea-calendar.h" -static void e_day_view_main_item_class_init (EDayViewMainItemClass *class); -static void e_day_view_main_item_init (EDayViewMainItem *dvtitem); - static void e_day_view_main_item_set_arg (GtkObject *o, GtkArg *arg, guint arg_id); static void e_day_view_main_item_update (GnomeCanvasItem *item, @@ -74,16 +74,13 @@ static void e_day_view_main_item_draw_day_event (EDayViewMainItem *dvmitem, int width, int height, gint day, gint event_num); -static GnomeCanvasItemClass *parent_class; - /* The arguments we take */ enum { ARG_0, ARG_DAY_VIEW }; -E_MAKE_TYPE (e_day_view_main_item, "EDayViewMainItem", EDayViewMainItem, - e_day_view_main_item_class_init, e_day_view_main_item_init, GNOME_TYPE_CANVAS_ITEM); +G_DEFINE_TYPE (EDayViewMainItem, e_day_view_main_item, GNOME_TYPE_CANVAS_ITEM); static void e_day_view_main_item_class_init (EDayViewMainItemClass *class) @@ -91,8 +88,6 @@ e_day_view_main_item_class_init (EDayViewMainItemClass *class) GtkObjectClass *object_class; GnomeCanvasItemClass *item_class; - parent_class = g_type_class_peek_parent (class); - object_class = (GtkObjectClass *) class; item_class = (GnomeCanvasItemClass *) class; @@ -143,8 +138,8 @@ e_day_view_main_item_update (GnomeCanvasItem *item, ArtSVP *clip_path, int flags) { - if (GNOME_CANVAS_ITEM_CLASS (parent_class)->update) - (* GNOME_CANVAS_ITEM_CLASS (parent_class)->update) (item, affine, clip_path, flags); + if (GNOME_CANVAS_ITEM_CLASS (e_day_view_main_item_parent_class)->update) + (* GNOME_CANVAS_ITEM_CLASS (e_day_view_main_item_parent_class)->update) (item, affine, clip_path, flags); /* The item covers the entire canvas area. */ item->x1 = 0; |