aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar-model.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2002-11-09 05:50:53 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2002-11-09 05:50:53 +0800
commitcdbcf964e2829e4c4002dcf2fd229f3b2cf88e56 (patch)
treef52623441706592fddc32ebf439f137c6e27d992 /calendar/gui/calendar-model.c
parente93ca197f1fd37e2a35020f8717fe3c9547cfb2f (diff)
downloadgsoc2013-evolution-cdbcf964e2829e4c4002dcf2fd229f3b2cf88e56.tar
gsoc2013-evolution-cdbcf964e2829e4c4002dcf2fd229f3b2cf88e56.tar.gz
gsoc2013-evolution-cdbcf964e2829e4c4002dcf2fd229f3b2cf88e56.tar.bz2
gsoc2013-evolution-cdbcf964e2829e4c4002dcf2fd229f3b2cf88e56.tar.lz
gsoc2013-evolution-cdbcf964e2829e4c4002dcf2fd229f3b2cf88e56.tar.xz
gsoc2013-evolution-cdbcf964e2829e4c4002dcf2fd229f3b2cf88e56.tar.zst
gsoc2013-evolution-cdbcf964e2829e4c4002dcf2fd229f3b2cf88e56.zip
Use g_object_ref()/g_object_unref() instead of
* calendar-commands.c: Use g_object_ref()/g_object_unref() instead of gtk_object_ref/gtk_object_unref(). * calendar-config.c: Likewise. * calendar-model.c: Likewise. * comp-editor-factory.c: Likewise. * comp-util.c: Likewise. * e-calendar-table.c: Likewise. * e-day-view.c: Likewise. * e-itip-control.c: Likewise. * e-meeting-model.c: Likewise. * e-meeting-time-sel.c: Likewise. * e-tasks.c: Likewise. * e-timezone-entry.c: Likewise. * e-week-view.c: Likewise. * gnome-cal.c: Likewise. * goto.c: Likewise. * itip-utils.c: Likewise. * print.c: Likewise. * tasks-control.c: Likewise. * tasks-migrate.c: Likewise. * gui/cal-search-bar.c: Use g_object_new() instead of gtk_type_new(). * gui/calendar-model.c: Likewise. * gui/calendar-view-factory.c: Likewise. * gui/calendar-view.c: Likewise. * gui/calendar-view.c: Likewise. * gui/comp-editor-factory.c: Likewise. * gui/e-calendar-table.c: Likewise. * gui/e-cell-date-edit-text.c: Likewise. * gui/e-comp-editor-registry.c: Likewise. * gui/e-day-view.c: Likewise. * gui/e-itip-control.c: Likewise. * gui/e-meeting-attendee.c: Likewise. * gui/e-meeting-attendee.c: Likewise. * gui/e-meeting-model.c: Likewise. * gui/e-meeting-time-sel.c: Likewise. * gui/e-tasks.c: Likewise. * gui/e-timezone-entry.c: Likewise. * gui/e-week-view.c: Likewise. * gui/gnome-cal.c: Likewise. * gui/weekday-picker.c: Likewise. * gui/e-itip-control.c (get_servers): g_object_unref the shell_client instead of using bonobo_object_unref(). * gui/component-factory.c (owner_set_cb): Use evolution_shell_client_corba_objref() instead of bonobo_object_corba_objref(). svn path=/trunk/; revision=18673
Diffstat (limited to 'calendar/gui/calendar-model.c')
-rw-r--r--calendar/gui/calendar-model.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/calendar/gui/calendar-model.c b/calendar/gui/calendar-model.c
index deb23e1cc3..01fa60784c 100644
--- a/calendar/gui/calendar-model.c
+++ b/calendar/gui/calendar-model.c
@@ -295,7 +295,7 @@ free_objects (CalendarModel *model)
comp = g_array_index (priv->objects, CalComponent *, i);
g_assert (comp != NULL);
- gtk_object_unref (GTK_OBJECT (comp));
+ g_object_unref (comp);
object_data = &g_array_index (priv->objects_data,
CalendarModelObjectData, i);
@@ -328,7 +328,7 @@ calendar_model_destroy (GtkObject *object)
if (priv->client) {
gtk_signal_disconnect_by_data (GTK_OBJECT (priv->client), model);
- gtk_object_unref (GTK_OBJECT (priv->client));
+ g_object_unref (priv->client);
priv->client = NULL;
}
@@ -339,7 +339,7 @@ calendar_model_destroy (GtkObject *object)
if (priv->query) {
gtk_signal_disconnect_by_data (GTK_OBJECT (priv->query), model);
- gtk_object_unref (GTK_OBJECT (priv->query));
+ g_object_unref (priv->query);
priv->query = NULL;
}
@@ -361,7 +361,7 @@ calendar_model_destroy (GtkObject *object)
itip_addresses_free (priv->addresses);
if (priv->activity) {
- gtk_object_unref (GTK_OBJECT (priv->activity));
+ g_object_unref (priv->activity);
priv->activity = NULL;
}
@@ -1414,7 +1414,7 @@ calendar_model_append_row (ETableModel *etm, ETableModel *source, gint row)
g_message ("calendar_model_append_row(): Could not add new object!");
}
- gtk_object_unref (GTK_OBJECT (comp));
+ g_object_unref (comp);
}
/* Duplicates a string value */
@@ -1480,7 +1480,7 @@ calendar_model_duplicate_value (ETableModel *etm, int col, const void *value)
CalComponent *comp;
comp = CAL_COMPONENT (value);
- gtk_object_ref (GTK_OBJECT (comp));
+ g_object_ref (comp);
return comp;
}
@@ -1536,7 +1536,7 @@ calendar_model_free_value (ETableModel *etm, int col, void *value)
case CAL_COMPONENT_FIELD_COMPONENT:
if (value)
- gtk_object_unref (GTK_OBJECT (value));
+ g_object_unref (value);
break;
default:
@@ -1761,7 +1761,7 @@ calendar_model_value_to_string (ETableModel *etm, int col, const void *value)
CalendarModel *
calendar_model_new (void)
{
- return CALENDAR_MODEL (gtk_type_new (TYPE_CALENDAR_MODEL));
+ return CALENDAR_MODEL (g_object_new (TYPE_CALENDAR_MODEL, NULL));
}
@@ -1985,7 +1985,7 @@ update_query (CalendarModel *model)
if (old_query) {
gtk_signal_disconnect_by_data (GTK_OBJECT (old_query), model);
- gtk_object_unref (GTK_OBJECT (old_query));
+ g_object_unref (old_query);
}
g_assert (priv->sexp != NULL);
@@ -2080,7 +2080,7 @@ remove_object (CalendarModel *model, const char *uid)
calendar_model_free_object_data (model, object_data);
g_array_remove_index (priv->objects_data, *idx);
- gtk_object_unref (GTK_OBJECT (orig_comp));
+ g_object_unref (orig_comp);
n = *idx;
g_free (idx);
@@ -2104,7 +2104,7 @@ calendar_model_set_status_message (CalendarModel *model, const char *message)
if (!message || !*message) {
if (priv->activity) {
- gtk_object_unref (GTK_OBJECT (priv->activity));
+ g_object_unref (priv->activity);
priv->activity = NULL;
}
}
@@ -2172,11 +2172,11 @@ calendar_model_set_cal_client (CalendarModel *model, CalClient *client, CalObjTy
return;
if (client)
- gtk_object_ref (GTK_OBJECT (client));
+ g_object_ref (client);
if (priv->client) {
gtk_signal_disconnect_by_data (GTK_OBJECT (priv->client), model);
- gtk_object_unref (GTK_OBJECT (priv->client));
+ g_object_unref (priv->client);
}
priv->client = client;