78a202101a
535fb6f6-hide-scrollbar-until-something-scrollable.patch 535fe0c2-fix-screenshot-with-qxl-spice.patch 535feaca-fix-storage-when-directory-name-contains-whitespace.patch 535ff0b7-fix-install-when-one-package-is-already-installed.patch 536152fe-fix-error-detecting-OS-in-show-all-list.patch 536154d8-show-error-if-launching-delete-dialog-fails.patch 53615662-call-path_exists-before-getting-storage-volume.patch - s390x: Set the correct emulator virtinst-set-qemu-emulator.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=169
26 lines
996 B
Diff
26 lines
996 B
Diff
Subject: serialcon: Hide scrollbar until there's something to scroll
|
|
From: Cole Robinson crobinso@redhat.com Fri Apr 25 19:13:44 2014 -0400
|
|
Date: Tue Apr 29 10:28:06 2014 -0400:
|
|
Git: 02f49be9e2f58032a7c124ea77d7983834dc80b6
|
|
|
|
|
|
Index: virt-manager-1.0.1/virtManager/serialcon.py
|
|
===================================================================
|
|
--- virt-manager-1.0.1.orig/virtManager/serialcon.py
|
|
+++ virt-manager-1.0.1/virtManager/serialcon.py
|
|
@@ -378,6 +378,14 @@ class vmmSerialConsole(vmmGObject):
|
|
self.box.append_page(self.error_label, Gtk.Label(""))
|
|
self.box.show_all()
|
|
|
|
+ scrollbar.hide()
|
|
+ scrollbar.get_adjustment().connect(
|
|
+ "changed", self._scrollbar_adjustment_changed, scrollbar)
|
|
+
|
|
+ def _scrollbar_adjustment_changed(self, adjustment, scrollbar):
|
|
+ scrollbar.set_visible(
|
|
+ adjustment.get_upper() > adjustment.get_page_size())
|
|
+
|
|
def _cleanup(self):
|
|
self.console.cleanup()
|
|
self.console = None
|