aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorHans Petter Jansson <hpj@ximian.com>2003-04-07 15:13:21 +0800
committerHans Petter <hansp@src.gnome.org>2003-04-07 15:13:21 +0800
commit4eeb10bc4aab7945cc9be561f200a8d2b2bd0c38 (patch)
tree78fd4f086db598c80c873ff126d1f40d1257cf77 /calendar
parent8ddbb07dcc43e3774b3eda0e918a196b30ff1b52 (diff)
downloadgsoc2013-evolution-4eeb10bc4aab7945cc9be561f200a8d2b2bd0c38.tar
gsoc2013-evolution-4eeb10bc4aab7945cc9be561f200a8d2b2bd0c38.tar.gz
gsoc2013-evolution-4eeb10bc4aab7945cc9be561f200a8d2b2bd0c38.tar.bz2
gsoc2013-evolution-4eeb10bc4aab7945cc9be561f200a8d2b2bd0c38.tar.lz
gsoc2013-evolution-4eeb10bc4aab7945cc9be561f200a8d2b2bd0c38.tar.xz
gsoc2013-evolution-4eeb10bc4aab7945cc9be561f200a8d2b2bd0c38.tar.zst
gsoc2013-evolution-4eeb10bc4aab7945cc9be561f200a8d2b2bd0c38.zip
GObjectify. Eliminates ref/sink warnings from the meeting editor.
2003-04-07 Hans Petter Jansson <hpj@ximian.com> * gui/e-meeting-attendee.[ch]: GObjectify. Eliminates ref/sink warnings from the meeting editor. svn path=/trunk/; revision=20695
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog5
-rw-r--r--calendar/gui/e-meeting-attendee.c36
-rw-r--r--calendar/gui/e-meeting-attendee.h6
3 files changed, 26 insertions, 21 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 7f9c83496f..c4396844ff 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,8 @@
+2003-04-07 Hans Petter Jansson <hpj@ximian.com>
+
+ * gui/e-meeting-attendee.[ch]: GObjectify. Eliminates ref/sink
+ warnings from the meeting editor.
+
2003-04-06 Hans Petter Jansson <hpj@ximian.com>
Week view part of fix for #39895.
diff --git a/calendar/gui/e-meeting-attendee.c b/calendar/gui/e-meeting-attendee.c
index fd34147aef..f25dbc35de 100644
--- a/calendar/gui/e-meeting-attendee.c
+++ b/calendar/gui/e-meeting-attendee.c
@@ -70,32 +70,32 @@ static guint signals[LAST_SIGNAL];
static void class_init (EMeetingAttendeeClass *klass);
static void init (EMeetingAttendee *ia);
-static void destroy (GtkObject *obj);
+static void finalize (GObject *obj);
-static GtkObjectClass *parent_class = NULL;
+static GObjectClass *parent_class = NULL;
E_MAKE_TYPE (e_meeting_attendee, "EMeetingAttendee", EMeetingAttendee,
- class_init, init, GTK_TYPE_OBJECT);
+ class_init, init, G_TYPE_OBJECT);
static void
class_init (EMeetingAttendeeClass *klass)
{
- GtkObjectClass *object_class;
-
- object_class = GTK_OBJECT_CLASS (klass);
+ GObjectClass *object_class;
+ object_class = G_OBJECT_CLASS (klass);
parent_class = g_type_class_peek_parent (klass);
signals[CHANGED] =
- gtk_signal_new ("changed",
- GTK_RUN_FIRST,
- G_TYPE_FROM_CLASS (object_class),
- GTK_SIGNAL_OFFSET (EMeetingAttendeeClass, changed),
- gtk_marshal_NONE__NONE,
- GTK_TYPE_NONE, 0);
+ g_signal_new ("changed",
+ G_TYPE_FROM_CLASS (klass),
+ G_SIGNAL_RUN_FIRST,
+ G_STRUCT_OFFSET (EMeetingAttendeeClass, changed),
+ NULL, NULL,
+ g_cclosure_marshal_VOID__VOID,
+ G_TYPE_NONE, 0);
- object_class->destroy = destroy;
+ object_class->finalize = finalize;
}
static gchar *
@@ -116,7 +116,7 @@ string_is_set (gchar *string)
static void
notify_changed (EMeetingAttendee *ia)
{
- gtk_signal_emit (GTK_OBJECT (ia), signals[CHANGED]);
+ g_signal_emit_by_name (G_OBJECT (ia), "changed");
}
static void
@@ -167,7 +167,7 @@ init (EMeetingAttendee *ia)
static void
-destroy (GtkObject *obj)
+finalize (GObject *obj)
{
EMeetingAttendee *ia = E_MEETING_ATTENDEE (obj);
EMeetingAttendeePrivate *priv;
@@ -189,13 +189,13 @@ destroy (GtkObject *obj)
g_free (priv);
}
-GtkObject *
+GObject *
e_meeting_attendee_new (void)
{
return g_object_new (E_TYPE_MEETING_ATTENDEE, NULL);
}
-GtkObject *
+GObject *
e_meeting_attendee_new_from_cal_component_attendee (CalComponentAttendee *ca)
{
EMeetingAttendee *ia;
@@ -214,7 +214,7 @@ e_meeting_attendee_new_from_cal_component_attendee (CalComponentAttendee *ca)
e_meeting_attendee_set_cn (ia, g_strdup (ca->cn));
e_meeting_attendee_set_language (ia, g_strdup (ca->language));
- return GTK_OBJECT (ia);
+ return G_OBJECT (ia);
}
CalComponentAttendee *
diff --git a/calendar/gui/e-meeting-attendee.h b/calendar/gui/e-meeting-attendee.h
index cec3c076b0..87967e5bb5 100644
--- a/calendar/gui/e-meeting-attendee.h
+++ b/calendar/gui/e-meeting-attendee.h
@@ -78,9 +78,9 @@ struct _EMeetingAttendeeClass {
};
-GtkType e_meeting_attendee_get_type (void);
-GtkObject *e_meeting_attendee_new (void);
-GtkObject *e_meeting_attendee_new_from_cal_component_attendee (CalComponentAttendee *ca);
+GType e_meeting_attendee_get_type (void);
+GObject *e_meeting_attendee_new (void);
+GObject *e_meeting_attendee_new_from_cal_component_attendee (CalComponentAttendee *ca);
CalComponentAttendee *e_meeting_attendee_as_cal_component_attendee (EMeetingAttendee *ia);