/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to initialize.py

  • Committer: Curtis Hovey
  • Date: 2011-09-05 03:44:26 UTC
  • mto: This revision was merged to the branch mainline in revision 741.
  • Revision ID: sinzui.is@verizon.net-20110905034426-p98pxnay9rmzkr99
Fix the initializer for many classes.
Replace Gtk.Dialog.vbox with .get_content_area().

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
 
36
36
    def __init__(self, path, parent=None):
37
37
        """ Initialize the Initialize dialog. """
38
 
        GObject.GObject.__init__(self, title="Initialize - Olive",
39
 
                                  parent=parent,
40
 
                                  flags=0,
41
 
                                  buttons=(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL))
 
38
        super(InitDialog, self).__init__(
 
39
            title="Initialize - Olive", parent=parent, flags=0,
 
40
            buttons=(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL))
42
41
        
43
42
        # Get arguments
44
43
        self.path = path
61
60
        self._entry_custom.set_sensitive(False)
62
61
        
63
62
        # Construct the dialog
64
 
        self.action_area.pack_end(self._button_init)
65
 
        
66
 
        self._hbox_custom.pack_start(self._radio_custom, False, False)
67
 
        self._hbox_custom.pack_start(self._entry_custom, True, True)
68
 
        
69
 
        self.vbox.pack_start(self._label_question, True, True, 0)
70
 
        self.vbox.pack_start(self._radio_current, True, True, 0)
71
 
        self.vbox.pack_start(self._hbox_custom, True, True, 0)
 
63
        self.action_area.pack_end(self._button_init, False, False, 0)
 
64
        
 
65
        self._hbox_custom.pack_start(self._radio_custom, False, False, 0)
 
66
        self._hbox_custom.pack_start(self._entry_custom, True, True, 0)
 
67
        
 
68
        content_area = self.get_content_area()
 
69
        content_area.pack_start(self._label_question, True, True, 0)
 
70
        content_area.pack_start(self._radio_current, True, True, 0)
 
71
        content_area.pack_start(self._hbox_custom, True, True, 0)
72
72
        
73
73
        # Display the dialog
74
 
        self.vbox.show_all()
 
74
        content_area.show_all()
75
75
    
76
76
    def _on_custom_toggled(self, widget):
77
77
        """ Occurs if the Custom radiobutton is toggled. """