mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-03 01:18:00 +03:00
vmwindow: Default new window viewer size to 1280x800
This is qemu's default nowadays for modern video configs Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
d231e66a96
commit
351233f8ec
@ -199,15 +199,15 @@ class vmmVMWindow(vmmGObjectUI):
|
|||||||
|
|
||||||
def _set_initial_window_size(self):
|
def _set_initial_window_size(self):
|
||||||
"""
|
"""
|
||||||
We want the window size for new windows to be 1024x768 viewer
|
We want the window size for new windows to be 1280x800 viewer
|
||||||
size, plus whatever it takes to fit the toolbar+menubar, etc.
|
size, plus whatever it takes to fit the toolbar+menubar, etc.
|
||||||
To achieve this, we force the display box to the desired size
|
To achieve this, we force the display box to the desired size
|
||||||
with set_size_request, wait for the window to report it has
|
with set_size_request, wait for the window to report it has
|
||||||
been resized, and then unset the hardcoded size request so
|
been resized, and then unset the hardcoded size request so
|
||||||
the user can manually resize the window however they want.
|
the user can manually resize the window however they want.
|
||||||
"""
|
"""
|
||||||
w = 1024
|
w = 1280
|
||||||
h = 768
|
h = 800
|
||||||
hid = []
|
hid = []
|
||||||
def win_cb(src, event):
|
def win_cb(src, event):
|
||||||
self.widget("details-pages").set_size_request(-1, -1)
|
self.widget("details-pages").set_size_request(-1, -1)
|
||||||
|
Loading…
Reference in New Issue
Block a user