aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-cal-component-preview.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@novell.com>2004-10-14 23:02:32 +0800
committerJP Rosevear <jpr@src.gnome.org>2004-10-14 23:02:32 +0800
commit66152fe6537418489c2186a5e5c269c6e7c81db3 (patch)
tree8e65d0de151e07adb43a67c77a4e85c15d004bab /calendar/gui/e-cal-component-preview.c
parent979feab18eb378b4623f2edc6a357407e95e3493 (diff)
downloadgsoc2013-evolution-66152fe6537418489c2186a5e5c269c6e7c81db3.tar
gsoc2013-evolution-66152fe6537418489c2186a5e5c269c6e7c81db3.tar.gz
gsoc2013-evolution-66152fe6537418489c2186a5e5c269c6e7c81db3.tar.bz2
gsoc2013-evolution-66152fe6537418489c2186a5e5c269c6e7c81db3.tar.lz
gsoc2013-evolution-66152fe6537418489c2186a5e5c269c6e7c81db3.tar.xz
gsoc2013-evolution-66152fe6537418489c2186a5e5c269c6e7c81db3.tar.zst
gsoc2013-evolution-66152fe6537418489c2186a5e5c269c6e7c81db3.zip
convert to G_DEFINE_TYPE
2004-10-14 JP Rosevear <jpr@novell.com> * gui/calendar-view.c: convert to G_DEFINE_TYPE * gui/calendar-view-factory.c: ditto * gui/cal-search-bar.c: ditto * gui/e-cal-component-preview.c: ditto svn path=/trunk/; revision=27579
Diffstat (limited to 'calendar/gui/e-cal-component-preview.c')
-rw-r--r--calendar/gui/e-cal-component-preview.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/calendar/gui/e-cal-component-preview.c b/calendar/gui/e-cal-component-preview.c
index 91c48e1165..c85f90b526 100644
--- a/calendar/gui/e-cal-component-preview.c
+++ b/calendar/gui/e-cal-component-preview.c
@@ -30,7 +30,6 @@
#include <gtk/gtk.h>
#include <libgnomevfs/gnome-vfs-ops.h>
#include <libecal/e-cal-time-util.h>
-#include <gal/util/e-util.h>
#include <gtkhtml/gtkhtml.h>
#include <gtkhtml/gtkhtml-stream.h>
#include <e-util/e-time-utils.h>
@@ -44,8 +43,7 @@ struct _ECalComponentPreviewPrivate {
icaltimezone *zone;
};
-static GtkTableClass *parent_class;
-
+G_DEFINE_TYPE (ECalComponentPreview, e_cal_component_preview, GTK_TYPE_TABLE);
static void
on_link_clicked (GtkHTML *html, const char *url, gpointer data)
@@ -358,8 +356,8 @@ e_cal_component_preview_destroy (GtkObject *object)
preview->priv = NULL;
}
- if (GTK_OBJECT_CLASS (parent_class)->destroy)
- (* GTK_OBJECT_CLASS (parent_class)->destroy) (object);
+ if (GTK_OBJECT_CLASS (e_cal_component_preview_parent_class)->destroy)
+ (* GTK_OBJECT_CLASS (e_cal_component_preview_parent_class)->destroy) (object);
}
static void
@@ -369,15 +367,9 @@ e_cal_component_preview_class_init (ECalComponentPreviewClass *klass)
object_class = (GtkObjectClass *) klass;
- parent_class = g_type_class_peek_parent (klass);
-
object_class->destroy = e_cal_component_preview_destroy;
}
-E_MAKE_TYPE (e_cal_component_preview, "ECalComponentPreview", ECalComponentPreview,
- e_cal_component_preview_class_init, e_cal_component_preview_init,
- GTK_TYPE_TABLE)
-
GtkWidget *
e_cal_component_preview_new (void)
{