PATCH: add documentation, missing wrap() for Pango::LayoutIter



Hello,
the accompanied patch fixes two minor issues,

* adding a wrap() function for Pango::LayoutIter (#352111)
* adding a comment paragraph with missing documentation in Gdk::Drawable


Regards,
ralf

Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/gtkmm/ChangeLog,v
retrieving revision 1.589
diff -u -p -r1.589 ChangeLog
--- ChangeLog	10 Nov 2006 02:08:27 -0000	1.589
+++ ChangeLog	12 Nov 2006 08:55:22 -0000
@@ -1,3 +1,9 @@
+2006-11-12  Ralf Stephan    <ralf ark in-berlin de>
+	
+	* pango/src/layoutiter.hg:
+	* pango/src/layoutiter.ccg: Add missing wrap() function.
+	* gdk/src/drawable.hg: Add comment paragraph about using cairo.
+
 2006-11-10  Murray Cumming  <murrayc murrayc com>
 
 	* configure.in:
Index: gdk/src/drawable.hg
===================================================================
RCS file: /cvs/gnome/gtkmm/gdk/src/drawable.hg,v
retrieving revision 1.10
diff -u -p -r1.10 drawable.hg
--- gdk/src/drawable.hg	12 Apr 2006 11:11:24 -0000	1.10
+++ gdk/src/drawable.hg	12 Nov 2006 08:55:22 -0000
@@ -53,7 +53,12 @@ class Pixbuf;
  *
  * To use a drawable, create a concrete Drawable of the type you wish to use
  * and a Gdk::GC (graphics context) for that Drawable.  With the GC you can
- * draw lines, text, arcs and such.
+ * draw lines, text, arcs and such. 
+ *
+ * An alternative is to create a Cairo::Context with get_cairo_context()
+ * while you handle the 'exposed' event of the drawable. For more about
+ * this, please see "Using cairo with GTK+" in the "Common questions" section
+ * of the GTK+ Reference Manual.
  */
 class Drawable : public Glib::Object
 {
Index: pango/src/layoutiter.ccg
===================================================================
RCS file: /cvs/gnome/gtkmm/pango/src/layoutiter.ccg,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 layoutiter.ccg
--- pango/src/layoutiter.ccg	21 Jan 2003 13:41:06 -0000	1.1.1.1
+++ pango/src/layoutiter.ccg	12 Nov 2006 08:55:22 -0000
@@ -110,3 +110,17 @@ Rectangle LayoutIter::get_layout_logical
 
 } // namespace Pango
 
+namespace Glib
+{
+
+Pango::LayoutIter& wrap(PangoLayoutIter* object)
+{
+  return *reinterpret_cast<Pango::LayoutIter*>(object);
+}
+
+const Pango::LayoutIter& wrap(const PangoLayoutIter* object)
+{
+  return *reinterpret_cast<const Pango::LayoutIter*>(object);
+}
+
+} /* namespace Glib */
Index: pango/src/layoutiter.hg
===================================================================
RCS file: /cvs/gnome/gtkmm/pango/src/layoutiter.hg,v
retrieving revision 1.2
diff -u -p -r1.2 layoutiter.hg
--- pango/src/layoutiter.hg	14 Dec 2003 11:54:05 -0000	1.2
+++ pango/src/layoutiter.hg	12 Nov 2006 08:55:22 -0000
@@ -129,3 +129,14 @@ private:
 
 } //namespace Pango
 
+namespace Glib
+{
+
+/** @relates Pango::LayoutIter */
+Pango::LayoutIter& wrap(PangoLayoutIter* object);
+
+/** @relates Pango::LayoutIter */
+const Pango::LayoutIter& wrap(const PangoLayoutIter* object);
+
+} /* namespace Glib */
+


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