[gtkmm-documentation] ToolPalette chapter: Add a drag and drop sub-section.



commit 5c7cc33884cf8c1ca8714bd9aae04f3e7c0fd8cc
Author: Murray Cumming <murrayc murrayc com>
Date:   Mon Jan 18 11:51:04 2010 +0100

    ToolPalette chapter: Add a drag and drop sub-section.
    
    * docs/tutorial/C/gtkmm-tutorial-in.xml: ToolPalette chapter: Add a
    drag and drop sub-section.
    * docs/tutorial/Makefile.am:
    * docs/tutorial/C/figures/toolpalette.png: Added screenshot, already
    mentioned in tkmm-tutorial-in.xml.

 ChangeLog                               |   10 ++++++++++
 configure.ac                            |    2 +-
 docs/tutorial/C/figures/toolpalette.png |  Bin 0 -> 75737 bytes
 docs/tutorial/C/gtkmm-tutorial-in.xml   |    5 +++++
 docs/tutorial/Makefile.am               |    1 +
 5 files changed, 17 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index e28b3a5..c7594cc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2010-01-18  Murray Cumming  <murrayc murrayc com>
+
+	ToolPalette chapter: Add a drag and drop sub-section.
+
+	* docs/tutorial/C/gtkmm-tutorial-in.xml: ToolPalette chapter: Add a 
+	drag and drop sub-section.
+	* docs/tutorial/Makefile.am:
+	* docs/tutorial/C/figures/toolpalette.png: Added screenshot, already 
+	mentioned in tkmm-tutorial-in.xml.
+
 2010-01-16  Murray Cumming  <murrayc murrayc com>
 
   Started a ToolPalette chapter.
diff --git a/configure.ac b/configure.ac
index 9e68b4e..7a40a0a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -19,7 +19,7 @@ AC_PROG_CXX
 AC_PATH_PROG([PERL], [perl], [perl])
 
 PKG_CHECK_MODULES([GIOMM], [giomm-2.4 >= 2.16.0])
-PKG_CHECK_MODULES([GTKMM], [gtkmm-2.4 >= 2.16.0])
+PKG_CHECK_MODULES([GTKMM], [gtkmm-2.4 >= 2.19.2])
 MM_PKG_CONFIG_SUBST([GTHREAD_CFLAGS], [--cflags-only-other gthread-2.0])
 
 AC_LANG([C++])
diff --git a/docs/tutorial/C/figures/toolpalette.png b/docs/tutorial/C/figures/toolpalette.png
new file mode 100644
index 0000000..095c73a
Binary files /dev/null and b/docs/tutorial/C/figures/toolpalette.png differ
diff --git a/docs/tutorial/C/gtkmm-tutorial-in.xml b/docs/tutorial/C/gtkmm-tutorial-in.xml
index 84990a6..91b2de2 100644
--- a/docs/tutorial/C/gtkmm-tutorial-in.xml
+++ b/docs/tutorial/C/gtkmm-tutorial-in.xml
@@ -3926,6 +3926,11 @@ group_brushes->insert(*button);
 <para><ulink url="&url_refdocs_base_gtk;ToolItemGroup.html">ToolItemGroup Reference</ulink></para>
 <para><ulink url="&url_refdocs_base_gtk;ToolItem.html">ToolItem Reference</ulink></para>
 
+<sect1 id="toolpallete-dranganddrop">
+<title>Drag and Drop</title>
+<para>Call <methodname>add_drag_dest()</methodname> to allow items or groups to be dragged from the tool palette to a particular destination widget. You can then use <methodname>get_drag_item()</methodname> to discover which ToolItem or ToolItemGroup is being dragged. You can use <literal>dynamic_cast</literal> to discover whether is it an item or a group. For instance, you might use this in your <literal>drag_data_received</literal> signal handler, to add a dropped item, or to show a suitable icon while dragging.</para>
+<para>See the <link linkend="chapter-draganddrop">Drag and Drop</link> chapter for general advice about Drag and Drop with gtkmm.</para>
+</sect1>
 
 <sect1 id="toolpalette-example"><title>ToolPalette Example</title>
 
diff --git a/docs/tutorial/Makefile.am b/docs/tutorial/Makefile.am
index c9d2410..823d84c 100644
--- a/docs/tutorial/Makefile.am
+++ b/docs/tutorial/Makefile.am
@@ -77,6 +77,7 @@ DOC_FIGURES =					\
 	figures/table.png			\
 	figures/textview.png			\
 	figures/toolbar.png			\
+	figures/toolpalette.png			\
 	figures/treeview_combo_renderer.png	\
 	figures/treeview_draganddrop.png	\
 	figures/treeview_editablecells.png	\



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]