[pangomm/pangomm-2-42] Layout::get_lines(): Fix ownership of the GSList



commit a991044189e038a970f97042b2699d596628a248
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date:   Mon Jul 22 12:36:15 2019 +0200

    Layout::get_lines(): Fix ownership of the GSList
    
    Change Glib::OWNERSHIP_SHALLOW -> NONE

 pango/src/layout.hg | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/pango/src/layout.hg b/pango/src/layout.hg
index a064703..a95e70f 100644
--- a/pango/src/layout.hg
+++ b/pango/src/layout.hg
@@ -1,5 +1,3 @@
-/* $Id: layout.hg,v 1.9 2006/06/08 20:39:39 murrayc Exp $ */
-
 /* layout.h
  *
  * Copyright(C) 1998-1999 The gtkmm Development Team
@@ -19,7 +17,6 @@
  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
-
 #include <glibmm/object.h>
 #include <glibmm/slisthandle.h>
 #include <pangomm/font.h>
@@ -233,6 +230,8 @@ public:
   _WRAP_METHOD(Glib::RefPtr<LayoutLine> get_line(int line), pango_layout_get_line, refreturn)
   _WRAP_METHOD(Glib::RefPtr<const LayoutLine> get_line(int line) const, pango_layout_get_line_readonly, 
refreturn) 
 
+#m4 _CONVERSION(`GSList*',`SListHandle_LayoutLine',`$2($3, Glib::OWNERSHIP_NONE)')
+#m4 _CONVERSION(`GSList*',`SListHandle_ConstLayoutLine',`$2($3, Glib::OWNERSHIP_NONE)')
   //Note that the const version uses a different (faster) C function:
   _WRAP_METHOD(SListHandle_LayoutLine get_lines(), pango_layout_get_lines)
   _WRAP_METHOD(SListHandle_ConstLayoutLine get_lines() const, pango_layout_get_lines_readonly)
@@ -275,4 +274,3 @@ _DEPRECATE_IFDEF_END
 };
 
 } /* namespace Pango */
-


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