[gtk+] Move documentation to inline comments: GtkTreeView drag-and-drop
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Move documentation to inline comments: GtkTreeView drag-and-drop
- Date: Sun, 16 May 2010 00:40:29 +0000 (UTC)
commit b00a09de11e8dc1f16f137560f9aebf065584eb1
Author: Javier Jardón <jjardon gnome org>
Date: Sun May 16 02:04:12 2010 +0200
Move documentation to inline comments: GtkTreeView drag-and-drop
docs/reference/gtk/tmpl/.gitignore | 1 +
docs/reference/gtk/tmpl/gtktreednd.sgml | 144 -------------------------------
gtk/gtktreednd.c | 24 +++++
3 files changed, 25 insertions(+), 144 deletions(-)
---
diff --git a/docs/reference/gtk/tmpl/.gitignore b/docs/reference/gtk/tmpl/.gitignore
index 96c7f8c..123a234 100644
--- a/docs/reference/gtk/tmpl/.gitignore
+++ b/docs/reference/gtk/tmpl/.gitignore
@@ -17,3 +17,4 @@ gtktesting.sgml
gtktextiter.sgml
gtktoggleaction.sgml
gtktoolitem.sgml
+gtktreednd.sgml
diff --git a/gtk/gtktreednd.c b/gtk/gtktreednd.c
index 7e07945..9a1c87f 100644
--- a/gtk/gtktreednd.c
+++ b/gtk/gtktreednd.c
@@ -23,6 +23,30 @@
#include "gtkintl.h"
#include "gtkalias.h"
+
+/**
+ * SECTION:gtktreednd
+ * @Short_description: Interfaces for drag-and-drop support in GtkTreeView
+ * @Title: GtkTreeView drag-and-drop
+ *
+ * GTK+ supports Drag-and-Drop in tree views with a high-level and a low-level
+ * API.
+ *
+ * The low-level API consists of the GTK+ DND API, augmented by some treeview
+ * utility functions: gtk_tree_view_set_drag_dest_row(),
+ * gtk_tree_view_get_drag_dest_row(), gtk_tree_view_get_dest_row_at_pos(),
+ * gtk_tree_view_create_row_drag_icon(), gtk_tree_set_row_drag_data() and
+ * gtk_tree_get_row_drag_data(). This API leaves a lot of flexibility, but
+ * nothing is done automatically, and implementing advanced features like
+ * hover-to-open-rows or autoscrolling on top of this API is a lot of work.
+ *
+ * On the other hand, if you write to the high-level API, then all the
+ * bookkeeping of rows is done for you, as well as things like hover-to-open
+ * and auto-scroll, but your models have to implement the
+ * #GtkTreeDragSource and #GtkTreeDragDest interfaces.
+ */
+
+
GType
gtk_tree_drag_source_get_type (void)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]