~ubuntu-branches/ubuntu/trusty/virt-manager/trusty-proposed

« back to all changes in this revision

Viewing changes to src/virtManager/console.py

  • Committer: Bazaar Package Importer
  • Author(s): Marc Deslauriers
  • Date: 2011-05-18 17:08:51 UTC
  • Revision ID: james.westby@ubuntu.com-20110518170851-7blq9mcoe8y3g4wu
Tags: 0.8.7-1ubuntu2
debian/patches/fullscreen_show_toolbar.patch: When switching to fullscreen
under Unity, the top menu bar doesn't display anymore, so there's no
way to exit fullscreen mode. This patch displays the toolbar when in
fullscreen to work around the issue. It also hides the menu so it
doesn't waste more real estate when using the classic desktop.
(LP: #772729)

Show diffs side-by-side

added added

removed removed

Lines of Context:
659
659
 
660
660
        if do_fullscreen:
661
661
            self.topwin.fullscreen()
662
 
            self.window.get_widget("toolbar-box").hide()
 
662
            self.window.get_widget("toolbar-box").show()
 
663
            self.window.get_widget("details-menubar").hide()
663
664
        else:
664
665
            self.topwin.unfullscreen()
665
666
 
666
 
            if self.window.get_widget("details-menu-view-toolbar").get_active():
667
 
                self.window.get_widget("toolbar-box").show()
 
667
            self.window.get_widget("details-menubar").show()
 
668
            if not self.window.get_widget("details-menu-view-toolbar").get_active():
 
669
                self.window.get_widget("toolbar-box").hide()
668
670
 
669
671
        self.update_scaling()
670
672