aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-week-view-event-item.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@novell.com>2004-10-14 22:56:18 +0800
committerJP Rosevear <jpr@src.gnome.org>2004-10-14 22:56:18 +0800
commit979feab18eb378b4623f2edc6a357407e95e3493 (patch)
tree7435a2f2555cba759b1cdd2a0685b51c34679f2e /calendar/gui/e-week-view-event-item.c
parent05b60f793cc6d7dff47b5980487f7ee1248d8f08 (diff)
downloadgsoc2013-evolution-979feab18eb378b4623f2edc6a357407e95e3493.tar
gsoc2013-evolution-979feab18eb378b4623f2edc6a357407e95e3493.tar.gz
gsoc2013-evolution-979feab18eb378b4623f2edc6a357407e95e3493.tar.bz2
gsoc2013-evolution-979feab18eb378b4623f2edc6a357407e95e3493.tar.lz
gsoc2013-evolution-979feab18eb378b4623f2edc6a357407e95e3493.tar.xz
gsoc2013-evolution-979feab18eb378b4623f2edc6a357407e95e3493.tar.zst
gsoc2013-evolution-979feab18eb378b4623f2edc6a357407e95e3493.zip
convert to G_DEFINE_TYPE
2004-10-14 JP Rosevear <jpr@novell.com> * gui/e-week-view-config.c: convert to G_DEFINE_TYPE * gui/e-week-view-event-item.c: ditto * gui/e-week-view-main-item.c: ditto * gui/e-week-view-titles-item.c: ditto * gui/e-week-view.c: ditto svn path=/trunk/; revision=27578
Diffstat (limited to 'calendar/gui/e-week-view-event-item.c')
-rw-r--r--calendar/gui/e-week-view-event-item.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/calendar/gui/e-week-view-event-item.c b/calendar/gui/e-week-view-event-item.c
index ff07eea6ba..300945aa03 100644
--- a/calendar/gui/e-week-view-event-item.c
+++ b/calendar/gui/e-week-view-event-item.c
@@ -28,7 +28,9 @@
* edit the text.
*/
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
#include "e-util/e-categories-config.h"
#include "e-week-view-event-item.h"
@@ -36,9 +38,6 @@
#include <gtk/gtksignal.h>
#include <gal/e-text/e-text.h>
-static void e_week_view_event_item_class_init (EWeekViewEventItemClass *class);
-static void e_week_view_event_item_init (EWeekViewEventItem *wveitem);
-
static void e_week_view_event_item_set_arg (GtkObject *o,
GtkArg *arg,
guint arg_id);
@@ -89,8 +88,6 @@ static ECalendarViewPosition e_week_view_event_item_get_position (EWeekViewEvent
gdouble y);
-static GnomeCanvasItemClass *parent_class;
-
/* The arguments we take */
enum {
ARG_0,
@@ -98,9 +95,7 @@ enum {
ARG_SPAN_NUM
};
-E_MAKE_TYPE (e_week_view_event_item, "EWeekViewEventItem", EWeekViewEventItem,
- e_week_view_event_item_class_init, e_week_view_event_item_init,
- GNOME_TYPE_CANVAS_ITEM);
+G_DEFINE_TYPE (EWeekViewEventItem, e_week_view_event_item, GNOME_TYPE_CANVAS_ITEM);
static void
e_week_view_event_item_class_init (EWeekViewEventItemClass *class)
@@ -108,8 +103,6 @@ e_week_view_event_item_class_init (EWeekViewEventItemClass *class)
GtkObjectClass *object_class;
GnomeCanvasItemClass *item_class;
- parent_class = g_type_class_peek_parent (class);
-
object_class = (GtkObjectClass *) class;
item_class = (GnomeCanvasItemClass *) class;
@@ -182,8 +175,8 @@ e_week_view_event_item_update (GnomeCanvasItem *item,
week_view = E_WEEK_VIEW (GTK_WIDGET (item->canvas)->parent);
g_return_if_fail (E_IS_WEEK_VIEW (week_view));
- 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_week_view_event_item_parent_class)->update)
+ (* GNOME_CANVAS_ITEM_CLASS (e_week_view_event_item_parent_class)->update) (item, affine, clip_path, flags);
item->x1 = 0;
item->y1 = 0;