/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 diff.py

  • Committer: Curtis Hovey
  • Date: 2012-02-03 21:52:53 UTC
  • mto: This revision was merged to the branch mainline in revision 774.
  • Revision ID: sinzui.is@verizon.net-20120203215253-jtdzgllvmwkt51b1
show_all() instead of individual calls.

Show diffs side-by-side

added added

removed removed

Lines of Context:
440
440
    def __init__(self, parent=None, operations=None):
441
441
        super(DiffWindow, self).__init__(parent=parent)
442
442
        self.set_border_width(0)
443
 
        self.set_title("bzrk diff")
 
443
        self.set_title("bzr diff")
444
444
 
445
445
        # Use two thirds of the screen by default
446
446
        screen = self.get_screen()
475
475
        mb_view_wrapsource = Gtk.CheckMenuItem.new_with_mnemonic(
476
476
            _i18n("Wrap _Long Lines"))
477
477
        mb_view_wrapsource.connect('activate', self.diff._on_wraplines_toggled)
478
 
        if self.SHOW_WIDGETS:
479
 
            mb_view_wrapsource.show()
480
478
        mb_view_menu.append(mb_view_wrapsource)
481
 
        if self.SHOW_WIDGETS:
482
 
            mb_view.show()
483
479
        mb_view.set_submenu(mb_view_menu)
484
 
        if self.SHOW_WIDGETS:
485
 
            mb_view.show()
486
480
        menubar.append(mb_view)
487
481
        if self.SHOW_WIDGETS:
488
 
            menubar.show()
 
482
            menubar.show_all()
489
483
        return menubar
490
484
 
491
485
    def _get_button_bar(self, operations):