[pygobject] Override Gtk.CellLayout.pack_start and pack_end to add default values to be compliant with pygtk



commit 232841148f35684be83a2f47b5b18da4fb74f63a
Author: Sebastian Pölsterl <sebp k-d-w org>
Date:   Mon Jan 17 16:28:51 2011 +0100

    Override Gtk.CellLayout.pack_start and pack_end to add default values to be compliant with pygtk

 gi/overrides/Gtk.py |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/gi/overrides/Gtk.py b/gi/overrides/Gtk.py
index cd5a506..0302c7f 100644
--- a/gi/overrides/Gtk.py
+++ b/gi/overrides/Gtk.py
@@ -46,6 +46,16 @@ class Widget(Gtk.Widget):
 Widget = override(Widget)
 __all__.append('Widget')
 
+class CellLayout(Gtk.CellLayout):
+    def pack_start(self, cell, expand=True):
+        super(CellLayout, self).pack_start(cell, expand)
+
+    def pack_end(self, cell, expand=True):
+        super(CellLayout, self).pack_end(cell, expand)
+
+CellLayout = override(CellLayout)
+__all__.append('CellLayout')
+
 class Container(Gtk.Container, Widget):
 
     def __len__(self):
@@ -274,7 +284,7 @@ class UIManager(Gtk.UIManager):
 UIManager = override(UIManager)
 __all__.append('UIManager')
 
-class ComboBox(Gtk.ComboBox, Container):
+class ComboBox(Gtk.ComboBox, Container, CellLayout):
 
     def get_active_iter(self):
         success, aiter = super(ComboBox, self).get_active_iter()
@@ -1032,7 +1042,6 @@ class TreeViewColumn(Gtk.TreeViewColumn):
         if success:
             return (start_pos, width,)
 
-
 TreeViewColumn = override(TreeViewColumn)
 __all__.append('TreeViewColumn')
 



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