diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2003-03-05 04:39:02 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2003-03-05 04:39:02 +0800 |
commit | c538747217542d22af4bcf01d5dae8ec7301da58 (patch) | |
tree | 73e12402ff1aef588da5e03e625c10fbc7604cb2 /shell/e-folder-dnd-bridge.c | |
parent | 16590660ae3106343fddfaf985665fe42b87ed5f (diff) | |
download | gsoc2013-evolution-c538747217542d22af4bcf01d5dae8ec7301da58.tar.gz gsoc2013-evolution-c538747217542d22af4bcf01d5dae8ec7301da58.tar.zst gsoc2013-evolution-c538747217542d22af4bcf01d5dae8ec7301da58.zip |
Handle p->data as a GdkAtom instead of a GdkAtom *.
* e-folder-dnd-bridge.c (find_matching_target_for_drag_context):
Handle p->data as a GdkAtom instead of a GdkAtom *.
(handle_data_received_non_path): Set the target member of the
corba_data struct to be the name of the atom.
* e-storage-set-view.c (impl_tree_drag_data_get): Pass the name of
the atom instead of the atom itself.
* Evolution-ShellComponentDnd.idl: Changed the type of Data.target
to string.
svn path=/trunk/; revision=20150
Diffstat (limited to 'shell/e-folder-dnd-bridge.c')
-rw-r--r-- | shell/e-folder-dnd-bridge.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/shell/e-folder-dnd-bridge.c b/shell/e-folder-dnd-bridge.c index bc45a2e03e..726a53be83 100644 --- a/shell/e-folder-dnd-bridge.c +++ b/shell/e-folder-dnd-bridge.c @@ -159,12 +159,12 @@ find_matching_target_for_drag_context (EStorageSet *storage_set, for (p = drag_context->targets; p != NULL; p = p->next) { char *possible_type; - possible_type = gdk_atom_name (*((GdkAtom *) p->data)); + possible_type = gdk_atom_name (p->data); if (strcmp (possible_type, E_FOLDER_DND_PATH_TARGET_TYPE) == 0) { g_free (possible_type); if (atom_return != NULL) - *atom_return = *((GdkAtom *) p->data); + *atom_return = p->data; return E_FOLDER_DND_PATH_TARGET_TYPE; } @@ -177,7 +177,7 @@ find_matching_target_for_drag_context (EStorageSet *storage_set, g_free (possible_type); if (atom_return != NULL) - *atom_return = *((GdkAtom *) p->data); + *atom_return = p->data; return accepted_type; } @@ -425,7 +425,7 @@ handle_data_received_non_path (GdkDragContext *context, corba_context.suggestedAction = convert_gdk_drag_action_to_corba (context->suggested_action); corba_data.format = selection_data->format; - corba_data.target = 0; /* selection_data->target FIXME */ + corba_data.target = gdk_atom_name (selection_data->target); corba_data.bytes._release = FALSE; |