diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2002-11-09 05:50:53 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2002-11-09 05:50:53 +0800 |
commit | cdbcf964e2829e4c4002dcf2fd229f3b2cf88e56 (patch) | |
tree | f52623441706592fddc32ebf439f137c6e27d992 /calendar/gui/e-tasks.c | |
parent | e93ca197f1fd37e2a35020f8717fe3c9547cfb2f (diff) | |
download | gsoc2013-evolution-cdbcf964e2829e4c4002dcf2fd229f3b2cf88e56.tar.gz 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/e-tasks.c')
-rw-r--r-- | calendar/gui/e-tasks.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/calendar/gui/e-tasks.c b/calendar/gui/e-tasks.c index 94bd638a80..6675a1e298 100644 --- a/calendar/gui/e-tasks.c +++ b/calendar/gui/e-tasks.c @@ -265,11 +265,11 @@ e_tasks_new (void) { ETasks *tasks; - tasks = gtk_type_new (e_tasks_get_type ()); + tasks = g_object_new (e_tasks_get_type (), NULL); if (!e_tasks_construct (tasks)) { g_message ("e_tasks_new(): Could not construct the tasks GUI"); - gtk_object_unref (GTK_OBJECT (tasks)); + g_object_unref (tasks); return NULL; } @@ -303,7 +303,7 @@ e_tasks_destroy (GtkObject *object) priv = tasks->priv; if (priv->client) { - gtk_object_unref (GTK_OBJECT (priv->client)); + g_object_unref (priv->client); priv->client = NULL; } @@ -510,7 +510,7 @@ e_tasks_new_task (ETasks *tasks) cal_component_set_categories (comp, category); comp_editor_edit_comp (COMP_EDITOR (tedit), comp); - gtk_object_unref (GTK_OBJECT (comp)); + g_object_unref (comp); comp_editor_focus (COMP_EDITOR (tedit)); } @@ -605,7 +605,7 @@ query_eval_error_cb (CalQuery *query, const char *error_str, gpointer data) set_status_message (tasks, NULL); gtk_signal_disconnect_by_data (GTK_OBJECT (priv->query), tasks); - gtk_object_unref (GTK_OBJECT (priv->query)); + g_object_unref (priv->query); priv->query = NULL; } @@ -624,7 +624,7 @@ query_query_done_cb (CalQuery *query, CalQueryDoneStatus status, const char *err set_status_message (tasks, NULL); gtk_signal_disconnect_by_data (GTK_OBJECT (priv->query), tasks); - gtk_object_unref (GTK_OBJECT (priv->query)); + g_object_unref (priv->query); priv->query = NULL; } /** @@ -728,9 +728,9 @@ e_tasks_setup_view_menus (ETasks *tasks, BonoboUIComponent *uic) EVOLUTION_ETSPECDIR "/e-calendar-table.etspec"); factory = gal_view_factory_etable_new (spec); - gtk_object_unref (GTK_OBJECT (spec)); + g_object_unref (spec); gal_view_collection_add_factory (collection, factory); - gtk_object_unref (GTK_OBJECT (factory)); + g_object_unref (factory); /* Load the collection and create the menus */ @@ -768,10 +768,10 @@ e_tasks_discard_view_menus (ETasks *tasks) g_assert (priv->view_instance != NULL); g_assert (priv->view_menus != NULL); - gtk_object_unref (GTK_OBJECT (priv->view_instance)); + g_object_unref (priv->view_instance); priv->view_instance = NULL; - gtk_object_unref (GTK_OBJECT (priv->view_menus)); + g_object_unref (priv->view_menus); priv->view_menus = NULL; } |