[gtkmm-documentation] ComboBox: Use set_entry_text_column() instead of set_text_column()



commit 94ea895ec0ec9659f5187784ba6544abc5a5485e
Author: Kalev Lember <kalev smartlink ee>
Date:   Fri Mar 18 18:03:43 2011 +0200

    ComboBox: Use set_entry_text_column() instead of set_text_column()
    
    * docs/tutorial/C/gtkmm-tutorial-in.xml:
    * examples/book/combobox/entry_complex/examplewindow.cc: Updated the
    files to use set_entry_text_column() instead of set_text_column() which
    was a leftover from ComboBoxEntry's removal.

 docs/tutorial/C/gtkmm-tutorial-in.xml              |    4 ++--
 .../book/combobox/entry_complex/examplewindow.cc   |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/docs/tutorial/C/gtkmm-tutorial-in.xml b/docs/tutorial/C/gtkmm-tutorial-in.xml
index e1a1b41..4f8ee00 100644
--- a/docs/tutorial/C/gtkmm-tutorial-in.xml
+++ b/docs/tutorial/C/gtkmm-tutorial-in.xml
@@ -3144,8 +3144,8 @@ You might need to react to every change of selection in the ComboBox, for instan
 
 <sect2 id="sec-comboboxentry-text-column">
 <title>The text column</title>
-<para>So that the Entry can interact with the drop-down list of choices, you must specify which of your model columns are the text column, with <methodname>set_text_column()</methodname>. For instance:
-<programlisting>m_combo.set_text_column(m_columns.m_col_name);</programlisting>
+<para>So that the Entry can interact with the drop-down list of choices, you must specify which of your model columns are the text column, with <methodname>set_entry_text_column()</methodname>. For instance:
+<programlisting>m_combo.set_entry_text_column(m_columns.m_col_name);</programlisting>
 </para>
 <para>
 When you select a choice from the drop-down menu, the value from this column will be placed in the <classname>Entry</classname>.
diff --git a/examples/book/combobox/entry_complex/examplewindow.cc b/examples/book/combobox/entry_complex/examplewindow.cc
index db2d0d0..b2b3a7b 100644
--- a/examples/book/combobox/entry_complex/examplewindow.cc
+++ b/examples/book/combobox/entry_complex/examplewindow.cc
@@ -61,7 +61,7 @@ ExampleWindow::ExampleWindow()
 
   //Add the model columns to the Combo (which is a kind of view),
   //rendering them in the default way:
-  //This is automatically rendered when we use set_text_column().
+  //This is automatically rendered when we use set_entry_text_column().
   //m_Combo.pack_start(m_Columns.m_col_id);
   m_Combo.pack_start(m_Columns.m_col_name);
 



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