aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/cal-util/cal-component.h
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2002-11-04 23:14:52 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2002-11-04 23:14:52 +0800
commitd86aa241f927117975b59835d9ce889ba57a8cc0 (patch)
tree1b91604b9e4576df3e0f512be41ab98e23257dfc /calendar/cal-util/cal-component.h
parent427c7a92282a6ee8def483774f8655648d2e6564 (diff)
downloadgsoc2013-evolution-d86aa241f927117975b59835d9ce889ba57a8cc0.tar
gsoc2013-evolution-d86aa241f927117975b59835d9ce889ba57a8cc0.tar.gz
gsoc2013-evolution-d86aa241f927117975b59835d9ce889ba57a8cc0.tar.bz2
gsoc2013-evolution-d86aa241f927117975b59835d9ce889ba57a8cc0.tar.lz
gsoc2013-evolution-d86aa241f927117975b59835d9ce889ba57a8cc0.tar.xz
gsoc2013-evolution-d86aa241f927117975b59835d9ce889ba57a8cc0.tar.zst
gsoc2013-evolution-d86aa241f927117975b59835d9ce889ba57a8cc0.zip
ported to GObject.
2002-11-04 Rodrigo Moya <rodrigo@ximian.com> * cal-util/cal-component.[ch]: ported to GObject. * cal-util/cal-util.c (cal_util_generate_alarms_for_comp): use g_object_* instead of gtk_object_*. svn path=/trunk/; revision=18525
Diffstat (limited to 'calendar/cal-util/cal-component.h')
-rw-r--r--calendar/cal-util/cal-component.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/calendar/cal-util/cal-component.h b/calendar/cal-util/cal-component.h
index 7a52414ce3..dba2e5a179 100644
--- a/calendar/cal-util/cal-component.h
+++ b/calendar/cal-util/cal-component.h
@@ -24,7 +24,7 @@
#include <glib/gmacros.h>
#include <time.h>
-#include <gtk/gtkobject.h>
+#include <glib-object.h>
#include <ical.h>
G_BEGIN_DECLS
@@ -32,11 +32,11 @@ G_BEGIN_DECLS
#define CAL_COMPONENT_TYPE (cal_component_get_type ())
-#define CAL_COMPONENT(obj) (GTK_CHECK_CAST ((obj), CAL_COMPONENT_TYPE, CalComponent))
-#define CAL_COMPONENT_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), CAL_COMPONENT_TYPE, \
+#define CAL_COMPONENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CAL_COMPONENT_TYPE, CalComponent))
+#define CAL_COMPONENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CAL_COMPONENT_TYPE, \
CalComponentClass))
-#define IS_CAL_COMPONENT(obj) (GTK_CHECK_TYPE ((obj), CAL_COMPONENT_TYPE))
-#define IS_CAL_COMPONENT_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), CAL_COMPONENT_TYPE))
+#define IS_CAL_COMPONENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CAL_COMPONENT_TYPE))
+#define IS_CAL_COMPONENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CAL_COMPONENT_TYPE))
/* Types of calendar components to be stored by a CalComponent, as per RFC 2445.
* We don't put the alarm component type here since we store alarms as separate
@@ -184,19 +184,19 @@ typedef struct _CalComponentClass CalComponentClass;
typedef struct _CalComponentPrivate CalComponentPrivate;
struct _CalComponent {
- GtkObject object;
+ GObject object;
/* Private data */
CalComponentPrivate *priv;
};
struct _CalComponentClass {
- GtkObjectClass parent_class;
+ GObjectClass parent_class;
};
/* Calendar component */
-GtkType cal_component_get_type (void);
+GType cal_component_get_type (void);
char *cal_component_gen_uid (void);