/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 annotate/gannotate.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:
49
49
        self.plain = plain
50
50
        self._branch = branch
51
51
 
52
 
        Window.__init__(self, parent)
 
52
        super(GAnnotateWindow, self).__init__(parent=parent)
53
53
 
54
54
        self.set_icon(
55
55
            self.render_icon_pixbuf(Gtk.STOCK_FIND, Gtk.IconSize.BUTTON))
457
457
            self.__cache[revision_id] = revision
458
458
        return self.__cache[revision_id]
459
459
 
 
460
 
460
461
class SearchBox(Gtk.HBox):
461
462
    """A button box for searching in text or lines of annotations"""
462
463
    def __init__(self):
463
 
        Gtk.HBox.__init__(self, homogeneous=False, spacing=6)
 
464
        super(SearchBox, self).__init__(homogeneous=False, spacing=6)
464
465
 
465
466
        # Close button
466
467
        button = Gtk.Button()