summaryrefslogtreecommitdiff
path: root/libegg/eggtreemultidnd.h
diff options
context:
space:
mode:
authormonsta <[email protected]>2018-01-12 20:04:25 +0300
committerraveit65 <[email protected]>2018-01-14 15:36:26 +0100
commit6c162ba243f9e62651a13ce2cb4ca2ec9d422509 (patch)
tree6c91f9552d37e05cc413de376f6e8a527bbbfc02 /libegg/eggtreemultidnd.h
parentf8482dd96bf98d1b14e3f62d3b3a2be44fdc26a4 (diff)
downloadcaja-6c162ba243f9e62651a13ce2cb4ca2ec9d422509.tar.bz2
caja-6c162ba243f9e62651a13ce2cb4ca2ec9d422509.tar.xz
move libegg to the top srcdir and drop some leftovers
Diffstat (limited to 'libegg/eggtreemultidnd.h')
-rw-r--r--libegg/eggtreemultidnd.h78
1 files changed, 78 insertions, 0 deletions
diff --git a/libegg/eggtreemultidnd.h b/libegg/eggtreemultidnd.h
new file mode 100644
index 00000000..0510e517
--- /dev/null
+++ b/libegg/eggtreemultidnd.h
@@ -0,0 +1,78 @@
+/* eggtreednd.h
+ * Copyright (C) 2001 Red Hat, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library 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
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ */
+
+#ifndef __EGG_TREE_MULTI_DND_H__
+#define __EGG_TREE_MULTI_DND_H__
+
+#include <gtk/gtk.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define EGG_TYPE_TREE_MULTI_DRAG_SOURCE (egg_tree_multi_drag_source_get_type ())
+#define EGG_TREE_MULTI_DRAG_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EGG_TYPE_TREE_MULTI_DRAG_SOURCE, EggTreeMultiDragSource))
+#define EGG_IS_TREE_MULTI_DRAG_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EGG_TYPE_TREE_MULTI_DRAG_SOURCE))
+#define EGG_TREE_MULTI_DRAG_SOURCE_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), EGG_TYPE_TREE_MULTI_DRAG_SOURCE, EggTreeMultiDragSourceIface))
+
+ typedef struct _EggTreeMultiDragSource EggTreeMultiDragSource; /* Dummy typedef */
+ typedef struct _EggTreeMultiDragSourceIface EggTreeMultiDragSourceIface;
+
+ struct _EggTreeMultiDragSourceIface
+ {
+ GTypeInterface g_iface;
+
+ /* VTable - not signals */
+ gboolean (* row_draggable) (EggTreeMultiDragSource *drag_source,
+ GList *path_list);
+
+ gboolean (* drag_data_get) (EggTreeMultiDragSource *drag_source,
+ GList *path_list,
+ GtkSelectionData *selection_data);
+
+ gboolean (* drag_data_delete) (EggTreeMultiDragSource *drag_source,
+ GList *path_list);
+ };
+
+ GType egg_tree_multi_drag_source_get_type (void) G_GNUC_CONST;
+
+ /* Returns whether the given row can be dragged */
+ gboolean egg_tree_multi_drag_source_row_draggable (EggTreeMultiDragSource *drag_source,
+ GList *path_list);
+
+ /* Deletes the given row, or returns FALSE if it can't */
+ gboolean egg_tree_multi_drag_source_drag_data_delete (EggTreeMultiDragSource *drag_source,
+ GList *path_list);
+
+
+ /* Fills in selection_data with type selection_data->target based on the row
+ * denoted by path, returns TRUE if it does anything
+ */
+ gboolean egg_tree_multi_drag_source_drag_data_get (EggTreeMultiDragSource *drag_source,
+ GList *path_list,
+ GtkSelectionData *selection_data);
+ void egg_tree_multi_drag_add_drag_support (GtkTreeView *tree_view);
+
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __EGG_TREE_MULTI_DND_H__ */