aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2003-03-27 02:27:21 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2003-03-27 02:27:21 +0800
commit3a8fed7be6e8523d13cdfd8c256c74ee0ab9b096 (patch)
treeb0ed1bf32924d54326148c87be7b558a3d773d2d /calendar
parent12fe411b4715e11d84f36ddc45c1a9360768eb59 (diff)
downloadgsoc2013-evolution-3a8fed7be6e8523d13cdfd8c256c74ee0ab9b096.tar.gz
gsoc2013-evolution-3a8fed7be6e8523d13cdfd8c256c74ee0ab9b096.tar.zst
gsoc2013-evolution-3a8fed7be6e8523d13cdfd8c256c74ee0ab9b096.zip
use g_object_unref for CalClient's. (create_checkboxes_control): use
2003-03-26 Rodrigo Moya <rodrigo@ximian.com> * importers/icalendar-importer.c (gnome_calendar_import_data_fn): use g_object_unref for CalClient's. (create_checkboxes_control): use g_signal_connect. svn path=/trunk/; revision=20519
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog4
-rw-r--r--calendar/importers/icalendar-importer.c16
2 files changed, 12 insertions, 8 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 8590c1bd0a..218bbd7ab2 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,5 +1,9 @@
2003-03-26 Rodrigo Moya <rodrigo@ximian.com>
+ * importers/icalendar-importer.c (gnome_calendar_import_data_fn): use
+ g_object_unref for CalClient's.
+ (create_checkboxes_control): use g_signal_connect.
+
* cal-client/cal-client.c (cal_client_get_load_state): return correct
values in g_return_val_if_fail.
diff --git a/calendar/importers/icalendar-importer.c b/calendar/importers/icalendar-importer.c
index 7707acad1e..9f336a4d05 100644
--- a/calendar/importers/icalendar-importer.c
+++ b/calendar/importers/icalendar-importer.c
@@ -563,9 +563,9 @@ gnome_calendar_import_data_fn (EvolutionIntelligentImporter *ii,
if (icalcomp)
icalcomponent_free (icalcomp);
if (calendar_client)
- gtk_object_unref (GTK_OBJECT (calendar_client));
+ g_object_unref (calendar_client);
if (tasks_client)
- gtk_object_unref (GTK_OBJECT (tasks_client));
+ g_object_unref (tasks_client);
}
@@ -586,16 +586,16 @@ create_checkboxes_control (ICalIntelligentImporter *ici)
hbox = gtk_hbox_new (FALSE, 2);
calendar_checkbox = gtk_check_button_new_with_label (_("Calendar Events"));
- gtk_signal_connect (GTK_OBJECT (calendar_checkbox), "toggled",
- GTK_SIGNAL_FUNC (checkbox_toggle_cb),
- &ici->do_calendar);
+ g_signal_connect (G_OBJECT (calendar_checkbox), "toggled",
+ G_CALLBACK (checkbox_toggle_cb),
+ &ici->do_calendar);
gtk_box_pack_start (GTK_BOX (hbox), calendar_checkbox,
FALSE, FALSE, 0);
tasks_checkbox = gtk_check_button_new_with_label (_("Tasks"));
- gtk_signal_connect (GTK_OBJECT (tasks_checkbox), "toggled",
- GTK_SIGNAL_FUNC (checkbox_toggle_cb),
- &ici->do_tasks);
+ g_signal_connect (G_OBJECT (tasks_checkbox), "toggled",
+ G_CALLBACK (checkbox_toggle_cb),
+ &ici->do_tasks);
gtk_box_pack_start (GTK_BOX (hbox), tasks_checkbox,
FALSE, FALSE, 0);