From ea772d632da26ac497b11463ae2a870ecabfbb67 Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Wed, 17 Apr 2002 15:22:25 +0000 Subject: Removed. (impl_tree_drag_motion): Rewritten to use * e-storage-set-view.c (handle_evolution_path_drag_motion): Removed. (impl_tree_drag_motion): Rewritten to use `e_folder_dnd_bridge_motion()'. (impl_tree_drag_data_received): Rewritten to use `e_folder_dnd_bridge_data_received()'. (convert_gdk_drag_action_to_corba): Removed. (convert_corba_drag_action_to_gdk): Removed. (find_matching_target_for_drag_context): Removed. * e-folder-dnd-bridge.c: New. * e-folder-dnd-bridge.h: New. svn path=/trunk/; revision=16491 --- shell/e-folder-dnd-bridge.h | 50 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 shell/e-folder-dnd-bridge.h (limited to 'shell/e-folder-dnd-bridge.h') diff --git a/shell/e-folder-dnd-bridge.h b/shell/e-folder-dnd-bridge.h new file mode 100644 index 0000000000..db1b3401b8 --- /dev/null +++ b/shell/e-folder-dnd-bridge.h @@ -0,0 +1,50 @@ +/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ +/* e-component-dnd-bridge.h - Utility functions for handling dnd to Evolution + * folders using the ShellComponentDnd interface. + * + * Copyright (C) 2002 Ximian, Inc. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of version 2 of the GNU General Public + * License as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + * + * Author: Ettore Perazzoli + */ + +/* The purpose of this file is to share the logic for dropping objects into + folders between different widgets that handle the display of EStorageSets + (namely, the shortcut bar and the folder bar). */ + +#ifndef E_FOLDER_BAR_DND_BRIDGE_H +#define E_FOLDER_BAR_DND_BRIDGE_H + +#include "e-storage-set.h" + +#include +#include + +#define E_FOLDER_DND_PATH_TARGET_TYPE "_EVOLUTION_PRIVATE_PATH" + +gboolean e_folder_dnd_bridge_motion (GtkWidget *widget, + GdkDragContext *context, + unsigned int time, + EStorageSet *storage_set, + const char *path); +void e_folder_dnd_bridge_data_received (GtkWidget *widget, + GdkDragContext *context, + GtkSelectionData *selection_data, + unsigned int time, + EStorageSet *storage_set, + const char *path); + +#endif /* E_FOLDER_BAR_DND_BRIDGE_H */ -- cgit v1.2.3