[gtkmm-documentation] Glade and Gtk::Builder chapter:
- From: Murray Cumming <murrayc src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtkmm-documentation] Glade and Gtk::Builder chapter:
- Date: Wed, 11 Nov 2009 09:44:50 +0000 (UTC)
commit 2b99a323e86f3a555f06b0920e494f5de14b2105
Author: Murray Cumming <murrayc murrayc com>
Date: Wed Nov 11 10:44:40 2009 +0100
Glade and Gtk::Builder chapter:
Mention create_from_file() instead of create(), as noticed by Paul Jones.
ChangeLog | 5 +++++
docs/tutorial/C/gtkmm-tutorial-in.xml | 6 +++---
2 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index de5bbdc..5a7da35 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-11-11 Murray Cumming <murrayc murrayc com>
+
+ * docs/tutorial/C/gtkmm-tutorial-in.xml: Glade and Gtk::Builder chapter:
+ Mention create_from_file() instead of create(), as noticed by Paul Jones.
+
2009-10-05 José Alburquerque <jaalburqu svn gnome org>
InfoBar Example: Move the bar to the top of the window.
diff --git a/docs/tutorial/C/gtkmm-tutorial-in.xml b/docs/tutorial/C/gtkmm-tutorial-in.xml
index b84f954..d8e0507 100644
--- a/docs/tutorial/C/gtkmm-tutorial-in.xml
+++ b/docs/tutorial/C/gtkmm-tutorial-in.xml
@@ -6476,7 +6476,7 @@ layout allows you to focus on implementing that functionality.
<classname>Glib::RefPtr</classname>. Like all such classes, you need to use a
<methodname>create()</methodname> method to instantiate it. For instance,
<programlisting>
-Glib::RefPtr<Gtk::Builder> builder = Gtk::Builder::create("basic.glade");
+Glib::RefPtr<Gtk::Builder> builder = Gtk::Builder::create_from_file("basic.glade");
</programlisting>
This will instantiate the windows defined in the .glade file, though they will
not be shown immediately unless you have specified that via the <guilabel>Properties</guilabel>
@@ -6485,7 +6485,7 @@ window in <application>Glade</application>.
<para>To instantiate just one window, or just one of the child widgets, you can specify the name of a widget as the second parameter. For instance,
<programlisting>
-Glib::RefPtr<Gtk::Builder> builder = Gtk::Builder::create("basic.glade", "treeview_products");
+Glib::RefPtr<Gtk::Builder> builder = Gtk::Builder::create_from_file("basic.glade", "treeview_products");
</programlisting>
</para>
@@ -6518,7 +6518,7 @@ Remember that you are not instantiating a widget with
already exists. You will always receive a pointer to the same instance when you
call <methodname>get_widget()</methodname> on the same
<classname>Gtk::Builder</classname>, with the same widget name. The
-widgets are instantiated during <methodname>Gtk::Builder::create()</methodname>.
+widgets are instantiated during <methodname>Gtk::Builder::create_from_file()</methodname>.
</para>
<para>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]