aboutsummaryrefslogtreecommitdiffstats
path: root/shell/evolution-shell-component-dnd.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2002-11-04 06:08:16 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2002-11-04 06:08:16 +0800
commitede7fcb220b739c4d12775904086afe0df595acd (patch)
treecae8198cf8f57d3e08d13c03538e69a411f8a45c /shell/evolution-shell-component-dnd.c
parent9cbba714fc0eb122c0736b94727b4d2580b9d53c (diff)
downloadgsoc2013-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/evolution-shell-component-dnd.c')
-rw-r--r--shell/evolution-shell-component-dnd.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/shell/evolution-shell-component-dnd.c b/shell/evolution-shell-component-dnd.c
index 7648d98677..c3be3db88b 100644
--- a/shell/evolution-shell-component-dnd.c
+++ b/shell/evolution-shell-component-dnd.c
@@ -41,9 +41,9 @@ struct _DndSourceFolderPrivate {
gpointer user_data;
};
-/* GtkObject methods */
+/* GObject methods */
static void
-dnd_source_destroy (GtkObject *object)
+dnd_source_finalize (GObject *object)
{
EvolutionShellComponentDndSourceFolder *folder;
DndSourceFolderPrivate *priv;
@@ -55,7 +55,7 @@ dnd_source_destroy (GtkObject *object)
g_free (priv);
- (* GTK_OBJECT_CLASS (parent_class)->destroy) (object);
+ (* G_OBJECT_CLASS (parent_class)->finalize) (object);
}
static void
@@ -126,10 +126,10 @@ impl_GNOME_Evolution_ShellComponentDnd_SourceFolder_endDrag (PortableServer_Serv
static void
evolution_shell_component_dnd_source_folder_class_init (EvolutionShellComponentDndSourceFolderClass *klass)
{
- GtkObjectClass *object_class;
+ GObjectClass *object_class;
- object_class = GTK_OBJECT_CLASS (klass);
- object_class->destroy = dnd_source_destroy;
+ object_class = G_OBJECT_CLASS (klass);
+ object_class->finalize = dnd_source_finalize;
klass->epv.beginDrag = impl_GNOME_Evolution_ShellComponentDnd_SourceFolder_beginDrag;
klass->epv.getData = impl_GNOME_Evolution_ShellComponentDnd_SourceFolder_getData;
@@ -172,7 +172,7 @@ evolution_shell_component_dnd_source_folder_new (DndSourceFolderBeginDragFn begi
g_return_val_if_fail (delete_data != NULL, NULL);
g_return_val_if_fail (end_drag != NULL, NULL);
- dnd_source = gtk_type_new (evolution_shell_component_dnd_source_folder_get_type ());
+ dnd_source = g_object_new (evolution_shell_component_dnd_source_folder_get_type (), NULL);
dnd_source->priv->begin_drag = begin_drag;
dnd_source->priv->get_data = get_data;
@@ -195,7 +195,7 @@ struct _DndDestinationFolderPrivate {
/* GtkObject methods */
static void
-dnd_destination_destroy (GtkObject *object)
+dnd_destination_finalize (GObject *object)
{
EvolutionShellComponentDndDestinationFolder *folder;
DndDestinationFolderPrivate *priv;
@@ -207,7 +207,7 @@ dnd_destination_destroy (GtkObject *object)
g_free (priv);
- GTK_OBJECT_CLASS (parent_class)->destroy (object);
+ (* G_OBJECT_CLASS (parent_class)->finalize) (object);
}
/* CORBA interface */
@@ -251,10 +251,10 @@ impl_GNOME_Evolution_ShellComponentDnd_DestinationFolder_handleDrop (PortableSer
static void
evolution_shell_component_dnd_destination_folder_class_init (EvolutionShellComponentDndDestinationFolderClass *klass)
{
- GtkObjectClass *object_class;
+ GObjectClass *object_class;
- object_class = GTK_OBJECT_CLASS (klass);
- object_class->destroy = dnd_destination_destroy;
+ object_class = G_OBJECT_CLASS (klass);
+ object_class->finalize = dnd_destination_finalize;
klass->epv.handleMotion = impl_GNOME_Evolution_ShellComponentDnd_DestinationFolder_handleMotion;
klass->epv.handleDrop = impl_GNOME_Evolution_ShellComponentDnd_DestinationFolder_handleDrop;
@@ -292,7 +292,7 @@ evolution_shell_component_dnd_destination_folder_new (DndDestinationFolderHandle
g_return_val_if_fail (handle_motion != NULL, NULL);
g_return_val_if_fail (handle_drop != NULL, NULL);
- dnd_destination = gtk_type_new (evolution_shell_component_dnd_destination_folder_get_type ());
+ dnd_destination = g_object_new (evolution_shell_component_dnd_destination_folder_get_type (), NULL);
dnd_destination->priv->handle_motion = handle_motion;
dnd_destination->priv->handle_drop = handle_drop;