[pygobject] [gi] Update TreeView.enable_model_drag_{source, dest} to current GTK



commit 2b0f1ede820414ef1cfd6b37569fcb946d2031fc
Author: Martin Pitt <martin pitt ubuntu com>
Date:   Thu Jan 20 14:15:52 2011 +0100

    [gi] Update TreeView.enable_model_drag_{source,dest} to current GTK
    
    GTK master now landed a lot of annotation fixes which also correctly marks the
    array length argument of Gtk.TreeView.enable_model_drag_{source,dest}(). Thus
    drop the explicit array length argument from the call in the override.

 gi/overrides/Gtk.py |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/gi/overrides/Gtk.py b/gi/overrides/Gtk.py
index d0b0cff..6e2f858 100644
--- a/gi/overrides/Gtk.py
+++ b/gi/overrides/Gtk.py
@@ -1024,13 +1024,11 @@ class TreeView(Gtk.TreeView, Container):
         target_entries = self._construct_target_list(targets)
         super(TreeView, self).enable_model_drag_source(start_button_mask,
                                                        target_entries,
-                                                       len(target_entries),
                                                        actions)
 
     def enable_model_drag_dest(self, targets, actions):
         target_entries = self._construct_target_list(targets)
         super(TreeView, self).enable_model_drag_dest(target_entries,
-                                                     len(target_entries),
                                                      actions)
 
     def scroll_to_cell(self, path, column=None, use_align=False, row_align=0.0, col_align=0.0):



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