[pygobject] Add vbox/action_area properties



commit 583d0b3c6b53712128d7c2d5f075000a2a76ae5f
Author: Johan Dahlin <jdahlin litl com>
Date:   Mon Jun 27 00:40:12 2011 -0300

    Add vbox/action_area properties
    
    Accessing vbox/action_area directly creates segmentation fault,
    avoid that by mapping the fields to their getters for PyGTK
    API compatibility
    
    https://bugzilla.gnome.org/show_bug.cgi?id=653462

 gi/overrides/Gtk.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gi/overrides/Gtk.py b/gi/overrides/Gtk.py
index 38afc8c..1f16c61 100644
--- a/gi/overrides/Gtk.py
+++ b/gi/overrides/Gtk.py
@@ -430,6 +430,9 @@ class Dialog(Gtk.Dialog, Container):
         if buttons is not None:
             self.add_buttons(*buttons)
 
+    action_area = property(lambda dialog: dialog.get_action_area())
+    vbox = property(lambda dialog: dialog.get_content_area())
+
     def add_buttons(self, *args):
         """
         The add_buttons() method adds several buttons to the Gtk.Dialog using



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