aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/comp-editor.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2003-11-18 12:24:25 +0800
committerJP Rosevear <jpr@src.gnome.org>2003-11-18 12:24:25 +0800
commit0931299f2341f04071311f07e8271db19d9ddc7d (patch)
tree93f115e5f5bbba965368182e643287f14aecc9ba /calendar/gui/dialogs/comp-editor.c
parent0a2c5b0c061ebdfe9837b165d9de7529050c2d76 (diff)
downloadgsoc2013-evolution-0931299f2341f04071311f07e8271db19d9ddc7d.tar
gsoc2013-evolution-0931299f2341f04071311f07e8271db19d9ddc7d.tar.gz
gsoc2013-evolution-0931299f2341f04071311f07e8271db19d9ddc7d.tar.bz2
gsoc2013-evolution-0931299f2341f04071311f07e8271db19d9ddc7d.tar.lz
gsoc2013-evolution-0931299f2341f04071311f07e8271db19d9ddc7d.tar.xz
gsoc2013-evolution-0931299f2341f04071311f07e8271db19d9ddc7d.tar.zst
gsoc2013-evolution-0931299f2341f04071311f07e8271db19d9ddc7d.zip
Cleanup some ref/unref calls
2003-11-17 JP Rosevear <jpr@ximian.com> * Cleanup some ref/unref calls svn path=/trunk/; revision=23412
Diffstat (limited to 'calendar/gui/dialogs/comp-editor.c')
-rw-r--r--calendar/gui/dialogs/comp-editor.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/calendar/gui/dialogs/comp-editor.c b/calendar/gui/dialogs/comp-editor.c
index 5e88774ae5..3b2b32f17a 100644
--- a/calendar/gui/dialogs/comp-editor.c
+++ b/calendar/gui/dialogs/comp-editor.c
@@ -273,10 +273,10 @@ comp_editor_finalize (GObject *object)
since they have lots of signal handlers connected to the widgets
with the pages as the data. */
for (l = priv->pages; l != NULL; l = l->next)
- g_object_unref((l->data));
+ g_object_unref (l->data);
if (priv->comp) {
- g_object_unref((priv->comp));
+ g_object_unref (priv->comp);
priv->comp = NULL;
}
@@ -306,7 +306,7 @@ save_comp (CompEditor *editor)
clone = e_cal_component_clone (priv->comp);
for (l = priv->pages; l != NULL; l = l->next) {
if (!comp_editor_page_fill_component (l->data, clone)) {
- g_object_unref((clone));
+ g_object_unref (clone);
comp_editor_show_page (editor, COMP_EDITOR_PAGE (l->data));
return FALSE;
}
@@ -318,7 +318,7 @@ save_comp (CompEditor *editor)
else
e_cal_component_abort_sequence (clone);
- g_object_unref((priv->comp));
+ g_object_unref (priv->comp);
priv->comp = clone;
priv->updating = TRUE;
@@ -627,7 +627,7 @@ comp_editor_append_page (CompEditor *editor,
priv = editor->priv;
- g_object_ref((page));
+ g_object_ref (page);
/* If we are editing something, fill the widgets with current info */
if (priv->comp != NULL) {
@@ -635,7 +635,7 @@ comp_editor_append_page (CompEditor *editor,
comp = comp_editor_get_current_comp (editor);
comp_editor_page_fill_widgets (page, comp);
- g_object_unref((comp));
+ g_object_unref (comp);
}
page_widget = comp_editor_page_get_widget (page);
@@ -703,7 +703,7 @@ comp_editor_remove_page (CompEditor *editor, CompEditorPage *page)
gtk_notebook_remove_page (priv->notebook, page_num);
priv->pages = g_list_remove (priv->pages, page);
- g_object_unref((page));
+ g_object_unref (page);
}
/**
@@ -935,13 +935,13 @@ real_set_e_cal (CompEditor *editor, ECal *client)
g_return_if_fail (E_IS_CAL (client));
g_return_if_fail (e_cal_get_load_state (client) ==
E_CAL_LOAD_LOADED);
- g_object_ref((client));
+ g_object_ref (client);
}
if (priv->client) {
gtk_signal_disconnect_by_data (GTK_OBJECT (priv->client),
editor);
- g_object_unref((priv->client));
+ g_object_unref (priv->client);
}
priv->client = client;
@@ -968,7 +968,7 @@ real_edit_comp (CompEditor *editor, ECalComponent *comp)
priv = editor->priv;
if (priv->comp) {
- g_object_unref((priv->comp));
+ g_object_unref (priv->comp);
priv->comp = NULL;
}
@@ -998,9 +998,9 @@ real_send_comp (CompEditor *editor, ECalComponentItipMethod method)
if (itip_send_comp (method, priv->comp, priv->client, NULL)) {
tmp_comp = priv->comp;
- g_object_ref((tmp_comp));
+ g_object_ref (tmp_comp);
comp_editor_edit_comp (editor, tmp_comp);
- g_object_unref((tmp_comp));
+ g_object_unref (tmp_comp);
comp_editor_set_changed (editor, TRUE);
save_comp (editor);
@@ -1325,7 +1325,7 @@ print_cmd (GtkWidget *widget, gpointer data)
comp = comp_editor_get_current_comp (editor);
print_comp (comp, editor->priv->client, FALSE);
- g_object_unref((comp));
+ g_object_unref (comp);
}
static void
@@ -1338,7 +1338,7 @@ print_preview_cmd (GtkWidget *widget, gpointer data)
comp = comp_editor_get_current_comp (editor);
print_comp (comp, editor->priv->client, TRUE);
- g_object_unref((comp));
+ g_object_unref (comp);
}
static void
@@ -1458,7 +1458,7 @@ obj_updated_cb (ECal *client, const char *uid, gpointer data)
icalcomponent_free (icalcomp);
}
- g_object_unref((comp));
+ g_object_unref (comp);
} else {
GtkWidget *dlg;