diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2002-11-04 06:08:16 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2002-11-04 06:08:16 +0800 |
commit | ede7fcb220b739c4d12775904086afe0df595acd (patch) | |
tree | cae8198cf8f57d3e08d13c03538e69a411f8a45c /shell/e-storage-set.c | |
parent | 9cbba714fc0eb122c0736b94727b4d2580b9d53c (diff) | |
download | gsoc2013-evolution-ede7fcb220b739c4d12775904086afe0df595acd.tar.gz gsoc2013-evolution-ede7fcb220b739c4d12775904086afe0df595acd.tar.zst gsoc2013-evolution-ede7fcb220b739c4d12775904086afe0df595acd.zip |
Changed all gtk_object_refs()/gtk_object_unrefs() into
* *.c, *.h: Changed all gtk_object_refs()/gtk_object_unrefs() into
g_object_refs()/g_object_unrefs() and all gtk_signal_connect_*()
into g_signal_connect_*(). [Except for some case where we have
gtk_signal_connect_full() or gtk_signal_connect_while_alive()
calls that cannot be trivially ported to use the g_signal_*
functions, we'll have to fix those later.]
* e-splash.c (impl_finalize): Finalize implementation, copied over
from impl_destroy.
(impl_destroy): Removed.
(class_init): Override finalize, not destroy.
* e-activity-handler.c: Ported from GtkObject to GObject.
* evolution-storage.c: Likewise.
* e-corba-shortcuts.c: Likewise.
* evolution-session.h: Likewise.
* evolution-config-control.c: Likewise.
* evolution-shell-component-dnd.c: Likewise.
* evolution-shell-component.c: Likewise.
* evolution-shell-view.c: Likewise.
* evolution-storage-set-view.c: Likewise.
* evolution-wizard.c: Likewise.
svn path=/trunk/; revision=18513
Diffstat (limited to 'shell/e-storage-set.c')
-rw-r--r-- | shell/e-storage-set.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/shell/e-storage-set.c b/shell/e-storage-set.c index 9d3b804b77..d6b4ea1366 100644 --- a/shell/e-storage-set.c +++ b/shell/e-storage-set.c @@ -348,7 +348,7 @@ destroy (GtkObject *object) e_free_object_list (priv->storages); - gtk_object_unref (GTK_OBJECT (priv->folder_type_registry)); + g_object_unref (priv->folder_type_registry); g_hash_table_foreach (priv->name_to_named_storage, (GHFunc) name_to_named_storage_foreach_destroy, NULL); @@ -454,7 +454,7 @@ e_storage_set_construct (EStorageSet *storage_set, GTK_OBJECT_UNSET_FLAGS (storage_set, GTK_FLOATING); - gtk_object_ref (GTK_OBJECT (folder_type_registry)); + g_object_ref (folder_type_registry); storage_set->priv->folder_type_registry = folder_type_registry; } @@ -485,7 +485,7 @@ e_storage_set_get_storage_list (EStorageSet *storage_set) list = NULL; for (p = priv->storages; p != NULL; p = p->next) { - gtk_object_ref (GTK_OBJECT (p->data)); + g_object_ref (p->data); list = g_list_prepend (list, p->data); } @@ -518,16 +518,16 @@ e_storage_set_add_storage (EStorageSet *storage_set, if (g_hash_table_lookup (priv->name_to_named_storage, storage_name) != NULL) return FALSE; - gtk_object_ref (GTK_OBJECT (storage)); + g_object_ref (storage); - gtk_signal_connect (GTK_OBJECT (storage), "new_folder", - GTK_SIGNAL_FUNC (storage_new_folder_cb), storage_set); - gtk_signal_connect (GTK_OBJECT (storage), "updated_folder", - GTK_SIGNAL_FUNC (storage_updated_folder_cb), storage_set); - gtk_signal_connect (GTK_OBJECT (storage), "removed_folder", - GTK_SIGNAL_FUNC (storage_removed_folder_cb), storage_set); - gtk_signal_connect (GTK_OBJECT (storage), "close_folder", - GTK_SIGNAL_FUNC (storage_close_folder_cb), storage_set); + g_signal_connect (storage, "new_folder", + G_CALLBACK (storage_new_folder_cb), storage_set); + g_signal_connect (storage, "updated_folder", + G_CALLBACK (storage_updated_folder_cb), storage_set); + g_signal_connect (storage, "removed_folder", + G_CALLBACK (storage_removed_folder_cb), storage_set); + g_signal_connect (storage, "close_folder", + G_CALLBACK (storage_close_folder_cb), storage_set); priv->storages = g_list_append (priv->storages, storage); @@ -566,7 +566,7 @@ e_storage_set_remove_storage (EStorageSet *storage_set, priv->storages = g_list_remove (priv->storages, storage); gtk_signal_emit (GTK_OBJECT (storage_set), signals[REMOVED_STORAGE], storage); - gtk_object_unref (GTK_OBJECT (storage)); + g_object_unref (storage); return TRUE; } @@ -588,7 +588,7 @@ e_storage_set_remove_all_storages (EStorageSet *storage_set) storage = E_STORAGE (p->data); gtk_signal_emit (GTK_OBJECT (storage_set), signals[REMOVED_STORAGE], storage); - gtk_object_unref (GTK_OBJECT (storage)); + g_object_unref (storage); } g_hash_table_foreach_remove (priv->name_to_named_storage, @@ -665,9 +665,9 @@ e_storage_set_create_new_view (EStorageSet *storage_set, g_return_val_if_fail (E_IS_STORAGE_SET (storage_set), NULL); storage_set_view = e_storage_set_view_new (storage_set, ui_container); - gtk_signal_connect (GTK_OBJECT (storage_set_view), "folder_opened", - GTK_SIGNAL_FUNC (storage_set_view_folder_opened), - storage_set); + g_signal_connect (storage_set_view, "folder_opened", + G_CALLBACK (storage_set_view_folder_opened), + storage_set); return storage_set_view; } |