[gtkmm-documentation] index-in.docbook: Fix some validation errors
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm-documentation] index-in.docbook: Fix some validation errors
- Date: Thu, 25 Apr 2019 13:37:49 +0000 (UTC)
commit eda0b6dba02daa02d0d1c033e7fa035aa8a0541c
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date: Thu Apr 25 15:36:02 2019 +0200
index-in.docbook: Fix some validation errors
docs/tutorial/C/index-in.docbook | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/docs/tutorial/C/index-in.docbook b/docs/tutorial/C/index-in.docbook
index 9c0e4b5..038104b 100644
--- a/docs/tutorial/C/index-in.docbook
+++ b/docs/tutorial/C/index-in.docbook
@@ -2628,8 +2628,10 @@ for (auto iter = children.begin(), end = children.end(); iter != end; ++iter)
auto row = *iter;
//Do something with the row - see above for set/get.
}</programlisting>
+<para>
If you always want to iterate across the entire range, much more succinct syntax
is possible using C++'s range-based <literal>for</literal> loop:
+</para>
<programlisting>
for (auto row: refModel->children())
{
@@ -4723,10 +4725,10 @@ using these <classname>Gtk::Widget</classname> methods:
<para>There are several methods to add source formats and destination formats.
Examples:
<itemizedlist>
- <listitem><methodname>drag_source_add_text_targets()</methodname></listitem>
- <listitem><methodname>drag_source_add_image_targets()</methodname></listitem>
- <listitem><methodname>drag_dest_add_text_targets()</methodname></listitem>
- <listitem><methodname>drag_dest_add_image_targets()</methodname></listitem>
+ <listitem><para><methodname>drag_source_add_text_targets()</methodname></para></listitem>
+ <listitem><para><methodname>drag_source_add_image_targets()</methodname></para></listitem>
+ <listitem><para><methodname>drag_dest_add_text_targets()</methodname></para></listitem>
+ <listitem><para><methodname>drag_dest_add_image_targets()</methodname></para></listitem>
</itemizedlist>
</para>
</sect1>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]