aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-folder-dnd-bridge.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2002-11-02 16:25:03 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2002-11-02 16:25:03 +0800
commit9c73777f2268b5bf2622f893e2a3ba7d0f720572 (patch)
treef81b79f19b87f84b4429d329b3fc0f9ff7946060 /shell/e-folder-dnd-bridge.c
parent236c15d106b4e740d4e3996e0649334ca8e13876 (diff)
downloadgsoc2013-evolution-9c73777f2268b5bf2622f893e2a3ba7d0f720572.tar.gz
gsoc2013-evolution-9c73777f2268b5bf2622f893e2a3ba7d0f720572.tar.zst
gsoc2013-evolution-9c73777f2268b5bf2622f893e2a3ba7d0f720572.zip
First big sync of my GNOME 2 porting work (incomplete, and still
pretty broken). Weeeeee! svn path=/trunk/; revision=18503
Diffstat (limited to 'shell/e-folder-dnd-bridge.c')
-rw-r--r--shell/e-folder-dnd-bridge.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/shell/e-folder-dnd-bridge.c b/shell/e-folder-dnd-bridge.c
index e17bf86146..fabddb1fb8 100644
--- a/shell/e-folder-dnd-bridge.c
+++ b/shell/e-folder-dnd-bridge.c
@@ -36,6 +36,8 @@
#include <libgnome/gnome-i18n.h>
#include <libgnome/gnome-util.h>
+#include <string.h>
+
/* Callbacks for folder operations. */
@@ -157,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 (GPOINTER_TO_INT (p->data));
+ possible_type = gdk_atom_name (*((GdkAtom *) p->data));
if (strcmp (possible_type, E_FOLDER_DND_PATH_TARGET_TYPE) == 0) {
g_free (possible_type);
if (atom_return != NULL)
- *atom_return = GPOINTER_TO_INT (p->data);
+ *atom_return = *((GdkAtom *) p->data);
return E_FOLDER_DND_PATH_TARGET_TYPE;
}
@@ -175,7 +177,7 @@ find_matching_target_for_drag_context (EStorageSet *storage_set,
g_free (possible_type);
if (atom_return != NULL)
- *atom_return = GPOINTER_TO_INT (p->data);
+ *atom_return = *((GdkAtom *) p->data);
return accepted_type;
}
@@ -416,7 +418,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 = selection_data->target;
+ corba_data.target = 0; /* selection_data->target FIXME */
corba_data.bytes._release = FALSE;