[gtkmm] Gdk::Screen::get_font_options(): Really take a copy

commit 4ce47a3e05eaa76561ce545080cf976f1a526627
Author: Kjell Ahlstedt <kjell ahlstedt bredband net>
Date:   Tue Dec 8 18:19:32 2015 +0100

    Gdk::Screen::get_font_options(): Really take a copy
    * gdk/src/screen.hg: The second parameter to The Cairo::FontOptions ctor
    is not take_reference, it's take_ownership. To get a copy, it shall be false.

 gdk/src/screen.hg |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gdk/src/screen.hg b/gdk/src/screen.hg
index ad55338..64c66ba 100644
--- a/gdk/src/screen.hg
+++ b/gdk/src/screen.hg
@@ -110,7 +110,7 @@ public:
   _WRAP_METHOD(void set_font_options(const ::Cairo::FontOptions& options), gdk_screen_set_font_options)
   // Note: This returns a const, so we assume that we must copy it:
-  #m4 _CONVERSION(`const cairo_font_options_t*', `::Cairo::FontOptions', 
`::Cairo::FontOptions(const_cast<cairo_font_options_t*>($3), true /* take_reference */)')
+  #m4 _CONVERSION(`const cairo_font_options_t*', `::Cairo::FontOptions', 
`::Cairo::FontOptions(const_cast<cairo_font_options_t*>($3), false /* take_ownership */)')
   _WRAP_METHOD(::Cairo::FontOptions get_font_options() const, gdk_screen_get_font_options)
   _WRAP_METHOD(void set_resolution(double dpi), gdk_screen_set_resolution)

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