[gtkmm-documentation/gtkmm-3-24] Avoid '<' and '>' in code snippets in the docbook file
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm-documentation/gtkmm-3-24] Avoid '<' and '>' in code snippets in the docbook file
- Date: Thu, 8 Nov 2018 15:54:00 +0000 (UTC)
commit 240448f0135d2a7e82cb6ba56b57e707f54df5ee
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date: Thu Nov 8 16:51:37 2018 +0100
Avoid '<' and '>' in code snippets in the docbook file
Use < and > except in CDATA sections.
docs/tutorial/C/index-in.docbook | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/docs/tutorial/C/index-in.docbook b/docs/tutorial/C/index-in.docbook
index e223614..f83b903 100644
--- a/docs/tutorial/C/index-in.docbook
+++ b/docs/tutorial/C/index-in.docbook
@@ -985,9 +985,9 @@ public:
RadioButtons::RadioButtons()
{
Gtk::RadioButton::Group group;
- Gtk::RadioButton* m_rb1 = Gtk::make_managed<Gtk::RadioButton>(group, "button1");
- Gtk::RadioButton* m_rb2 = Gtk::make_managed<Gtk::RadioButton>(group, "button2");
- Gtk::RadioButton* m_rb3 = Gtk::make_managed<Gtk::RadioButton>(group, "button3");
+ Gtk::RadioButton* m_rb1 = Gtk::make_managed<Gtk::RadioButton>(group, "button1");
+ Gtk::RadioButton* m_rb2 = Gtk::make_managed<Gtk::RadioButton>(group, "button2");
+ Gtk::RadioButton* m_rb3 = Gtk::make_managed<Gtk::RadioButton>(group, "button3");
}</programlisting>
<para>
@@ -2547,7 +2547,7 @@ Here is some example code from
icon and a text name in the same column:
</para>
<programlisting>Gtk::TreeView::Column* pColumn =
- Gtk::make_managed<Gtk::TreeView::Column>("Icon Name");
+ Gtk::make_managed<Gtk::TreeView::Column>("Icon Name");
// m_columns.icon and m_columns.iconname are columns in the model.
// pColumn is the column in the TreeView:
@@ -2581,7 +2581,7 @@ if(pColumn)
actions. For instance:
</para>
<programlisting>Gtk::CellRendererToggle* pRenderer =
- Gtk::make_managed<Gtk::CellRendererToggle>();
+ Gtk::make_managed<Gtk::CellRendererToggle>();
pRenderer->signal_toggled().connect(
sigc::bind( sigc::mem_fun(*this,
&Example_TreeView_TreeStore::on_cell_toggled), m_columns.dave)
@@ -5484,7 +5484,7 @@ Gtk::Widget* CustomPrintOperation::on_create_custom_widget()
Gtk::Box* hbox = new Gtk::Box(Gtk::ORIENTATION_HORIZONTAL, 8);
hbox->set_border_width(6);
- Gtk::Label* label = Gtk::make_managed<Gtk::Label>("Enter some text: ");
+ Gtk::Label* label = Gtk::make_managed<Gtk::Label>("Enter some text: ");
hbox->pack_start(*label, false, false);
label->show();
@@ -6454,7 +6454,7 @@ modern C++ style, and more clearly expresses intent to create a managed widget.
<programlisting>
MyContainer::MyContainer()
{
- Gtk::Button* pButton = Gtk::make_managed<Gtk::Button>("Test");
+ Gtk::Button* pButton = Gtk::make_managed<Gtk::Button>("Test");
add(*pButton); //add *pButton to MyContainer
}
</programlisting>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]