aboutsummaryrefslogtreecommitdiffstats
path: root/shell/evolution-test-component.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2002-11-04 15:12:04 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2002-11-04 15:12:04 +0800
commit317b30ce9e92f0e9c18e4905cd6b8ae1e28b3602 (patch)
tree20f75b51acbd4dac7fa844ff2c756603d5b2ff53 /shell/evolution-test-component.c
parente692a531d5e6e5778f110264c98bbbc3b11f08d0 (diff)
downloadgsoc2013-evolution-317b30ce9e92f0e9c18e4905cd6b8ae1e28b3602.tar.gz
gsoc2013-evolution-317b30ce9e92f0e9c18e4905cd6b8ae1e28b3602.tar.zst
gsoc2013-evolution-317b30ce9e92f0e9c18e4905cd6b8ae1e28b3602.zip
Use g_object_set_data() instead of gtk_object_set_data(). Likewise.
* e-folder-list.c: Use g_object_set_data() instead of gtk_object_set_data(). * e-shell-config-default-folders.c: Likewise. * e-shell-folder-creation-dialog.c: Likewise. * e-shell-importer.c: Likewise. * e-shell-shared-folder-picker-dialog.c: Likewise. * e-shell-user-creatable-items-handler.c: Likewise. * e-shell-view.c: Likewise. * e-shell.c: Likewise. * e-storage-set-view.c: Likewise. * e-storage.c: Likewise. * evolution-test-component.c: Likewise. * e-storage-set-view.c (e_storage_set_view_construct): Use g_object_weakref() instead of gtk_object_weakref() for the ui_container. (ui_container_destroy_notify): Add param where_the_object_was to match the GWeakNotify prototype. * e-shell.c: Use g_signal_emit() instead of gtk_signal_emit(). svn path=/trunk/; revision=18523
Diffstat (limited to 'shell/evolution-test-component.c')
-rw-r--r--shell/evolution-test-component.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/shell/evolution-test-component.c b/shell/evolution-test-component.c
index affaa50aff..8f1c5f0502 100644
--- a/shell/evolution-test-component.c
+++ b/shell/evolution-test-component.c
@@ -292,8 +292,8 @@ shared_folder_discovery_timeout_callback (void *data)
CORBA_exception_free (&ev);
- gtk_object_set_data (GTK_OBJECT (storage), "listener", NULL);
- gtk_object_set_data (GTK_OBJECT (storage), "timeout_id", NULL);
+ g_object_set_data (storage, "listener", NULL);
+ g_object_set_data (storage, "timeout_id", NULL);
return FALSE;
}
@@ -317,8 +317,8 @@ storage_discover_shared_folder_callback (EvolutionStorage *storage,
timeout_id = g_timeout_add (1000, shared_folder_discovery_timeout_callback, storage);
- gtk_object_set_data (GTK_OBJECT (storage), "listener", listener_copy);
- gtk_object_set_data (GTK_OBJECT (storage), "timeout_id", GINT_TO_POINTER (timeout_id));
+ g_object_set_data (storage, "listener", listener_copy);
+ g_object_set_data (storage, "timeout_id", GINT_TO_POINTER (timeout_id));
}
static void
@@ -336,7 +336,7 @@ storage_cancel_discover_shared_folder_callback (EvolutionStorage *storage,
return;
g_source_remove (timeout_id);
- gtk_object_set_data (GTK_OBJECT (storage), "timeout_id", NULL);
+ g_object_set_data (storage, "timeout_id", NULL);
listener = (Bonobo_Listener) gtk_object_get_data (GTK_OBJECT (storage), "listener");
@@ -345,7 +345,7 @@ storage_cancel_discover_shared_folder_callback (EvolutionStorage *storage,
CORBA_Object_release (listener, &ev);
CORBA_exception_free (&ev);
- gtk_object_set_data (GTK_OBJECT (storage), "listener", NULL);
+ g_object_set_data (storage, "listener", NULL);
}
static void
@@ -453,7 +453,7 @@ timeout_callback_2 (void *data)
}
progress ++;
- gtk_object_set_data (GTK_OBJECT (activity_client), "my_progress", GINT_TO_POINTER (progress));
+ g_object_set_data (activity_client, "my_progress", GINT_TO_POINTER (progress));
if (progress > 100) {
gtk_timeout_add (200, timeout_callback_3, activity_client);
@@ -489,7 +489,7 @@ timeout_callback_1 (void *data)
return FALSE;
}
- gtk_object_set_data (GTK_OBJECT (activity_client), "my_progress", GINT_TO_POINTER (-1));
+ g_object_set_data (activity_client, "my_progress", GINT_TO_POINTER (-1));
g_signal_connect (activity_client, "cancel",
G_CALLBACK (activity_client_cancel_callback), NULL);