aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-folder-dnd-bridge.h
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2002-04-17 23:22:25 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2002-04-17 23:22:25 +0800
commitea772d632da26ac497b11463ae2a870ecabfbb67 (patch)
tree55d747fd24765c4d3699285491c47c384999ab5d /shell/e-folder-dnd-bridge.h
parent0fef30a29a86a294c7e0ee65c99d0a83242d528e (diff)
downloadgsoc2013-evolution-ea772d632da26ac497b11463ae2a870ecabfbb67.tar
gsoc2013-evolution-ea772d632da26ac497b11463ae2a870ecabfbb67.tar.gz
gsoc2013-evolution-ea772d632da26ac497b11463ae2a870ecabfbb67.tar.bz2
gsoc2013-evolution-ea772d632da26ac497b11463ae2a870ecabfbb67.tar.lz
gsoc2013-evolution-ea772d632da26ac497b11463ae2a870ecabfbb67.tar.xz
gsoc2013-evolution-ea772d632da26ac497b11463ae2a870ecabfbb67.tar.zst
gsoc2013-evolution-ea772d632da26ac497b11463ae2a870ecabfbb67.zip
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
Diffstat (limited to 'shell/e-folder-dnd-bridge.h')
-rw-r--r--shell/e-folder-dnd-bridge.h50
1 files changed, 50 insertions, 0 deletions
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 <ettore@ximian.com>
+ */
+
+/* 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 <gtk/gtkwidget.h>
+#include <gtk/gtkdnd.h>
+
+#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 */