[gtkmm] PlacesSidebar: Correct some OWNERSHIP_*s.



commit 860b42ea161883c1d145d7cf65c2548f60033985
Author: Murray Cumming <murrayc murrayc com>
Date:   Wed Sep 25 11:23:32 2013 +0200

    PlacesSidebar: Correct some OWNERSHIP_*s.
    
    * gtk/src/placessidebar.hg: Based on the C documentation.

 gtk/src/placessidebar.hg |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/src/placessidebar.hg b/gtk/src/placessidebar.hg
index bcf3a46..0b57040 100644
--- a/gtk/src/placessidebar.hg
+++ b/gtk/src/placessidebar.hg
@@ -89,7 +89,7 @@ public:
 
   // transfer full
   // list_shortcuts returns a copy of the list and its elements; modifiying the returned value does not 
modify the places sidebar
-#m4 _CONVERSION(`GSList*',`std::vector< Glib::RefPtr<Gio::File> >',`Glib::SListHandler< 
Glib::RefPtr<Gio::File> >::slist_to_vector($3, Glib::OWNERSHIP_SHALLOW)')
+#m4 _CONVERSION(`GSList*',`std::vector< Glib::RefPtr<Gio::File> >',`Glib::SListHandler< 
Glib::RefPtr<Gio::File> >::slist_to_vector($3, Glib::OWNERSHIP_DEEP)')
   _WRAP_METHOD(std::vector< Glib::RefPtr<Gio::File> > list_shortcuts() const, 
gtk_places_sidebar_list_shortcuts)
 
   // transfer full
@@ -105,7 +105,7 @@ public:
 // drag_action_requested and drag_perform_drop does not currently work due to an exec error while wrapping 
the
 // GList* argument; apparently execution crashes around Glib::wrap_create_new_wrapper_for_interface
 #m4 _CONVERSION(`GdkDragContext*',`const Glib::RefPtr<Gdk::DragContext>&',Glib::wrap($3, true))
-#m4 _CONVERSION(`GList*',`const std::vector< Glib::RefPtr<Gio::File> >&',`Glib::ListHandler< 
Glib::RefPtr<Gio::File> >::list_to_vector($3, Glib::OWNERSHIP_SHALLOW)')
+#m4 _CONVERSION(`GList*',`const std::vector< Glib::RefPtr<Gio::File> >&',`Glib::ListHandler< 
Glib::RefPtr<Gio::File> >::list_to_vector($3, Glib::OWNERSHIP_NONE)')
   _WRAP_SIGNAL(int drag_action_requested(const Glib::RefPtr<Gdk::DragContext>& context, const 
Glib::RefPtr<Gio::File>& dest_file, const std::vector< Glib::RefPtr<Gio::File> >& source_file_list), 
"drag_action_requested", no_default_handler)
   _WRAP_SIGNAL(void drag_perform_drop(const Glib::RefPtr<Gio::File>& dest_file, const std::vector< 
Glib::RefPtr<Gio::File> >& source_file_list, int action), "drag_perform_drop", no_default_handler)
 


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