gtkmm-documentation r47 - in trunk: . docs/tutorial/C examples/book/buttons/filechooserbutton



Author: murrayc
Date: Fri May 30 08:20:13 2008
New Revision: 47
URL: http://svn.gnome.org/viewvc/gtkmm-documentation?rev=47&view=rev

Log:
2008-05-30  Murray Cumming  <murrayc murrayc com>

* docs/tutorial/C/gtkmm-tut.xml: Clarify the new text about non-GType 
enums.

Modified:
   trunk/ChangeLog
   trunk/docs/tutorial/C/gtkmm-tut.xml
   trunk/examples/book/buttons/filechooserbutton/examplewindow.cc

Modified: trunk/docs/tutorial/C/gtkmm-tut.xml
==============================================================================
--- trunk/docs/tutorial/C/gtkmm-tut.xml	(original)
+++ trunk/docs/tutorial/C/gtkmm-tut.xml	Fri May 30 08:20:13 2008
@@ -9251,7 +9251,12 @@
 _WRAP_ENUM(WindowType, GdkWindowType)
 </programlisting>
 </para>
-<para>If the enum is not a <classname>GType</classname>, you must pass a third parameter NO_GTYPE. For example:
+<para>If the enum is not a <classname>GType</classname>, you must pass a third parameter NO_GTYPE. 
+This is the case when there is no <function>*_get_type()</function> function for the C enum, 
+but be careful that you don't just need to include an extra header for that function. You should also 
+file a bug against the C API, because all enums should be regeistered as GTypes.</para>
+<para>
+For example:
 <programlisting>
 _WRAP_ENUM(IconLookupFlags, GtkIconLookupFlags, NO_GTYPE)
 </programlisting>

Modified: trunk/examples/book/buttons/filechooserbutton/examplewindow.cc
==============================================================================
--- trunk/examples/book/buttons/filechooserbutton/examplewindow.cc	(original)
+++ trunk/examples/book/buttons/filechooserbutton/examplewindow.cc	Fri May 30 08:20:13 2008
@@ -29,6 +29,10 @@
 
   add(m_button);
 
+  //Allow our file chooser to select remote URIs, 
+  //for instance via bookmarked servers:
+  m_button.set_local_only(false);
+
   show_all_children();
 }
 



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