Merge remote-tracking branch 'marmarek/master'
This commit is contained in:
commit
e834b33d42
@ -28,7 +28,7 @@ import fcntl
|
|||||||
import errno
|
import errno
|
||||||
from PyQt4.QtCore import *
|
from PyQt4.QtCore import *
|
||||||
from PyQt4.QtGui import *
|
from PyQt4.QtGui import *
|
||||||
from PyQt4.QtDBus import QDBus,QDBusVariant
|
from PyQt4.QtDBus import QDBus,QDBusVariant, QDBusMessage
|
||||||
from PyQt4.QtDBus import QDBusConnection
|
from PyQt4.QtDBus import QDBusConnection
|
||||||
from PyQt4.QtDBus import QDBusInterface,QDBusAbstractAdaptor
|
from PyQt4.QtDBus import QDBusInterface,QDBusAbstractAdaptor
|
||||||
|
|
||||||
@ -1564,11 +1564,14 @@ class QubesTrayIcon(QSystemTrayIcon):
|
|||||||
|
|
||||||
self.connect (self, SIGNAL("activated (QSystemTrayIcon::ActivationReason)"), self.icon_clicked)
|
self.connect (self, SIGNAL("activated (QSystemTrayIcon::ActivationReason)"), self.icon_clicked)
|
||||||
|
|
||||||
|
self.tray_notifier_type = None
|
||||||
self.tray_notifier = QDBusInterface("org.freedesktop.Notifications",
|
self.tray_notifier = QDBusInterface("org.freedesktop.Notifications",
|
||||||
"/org/freedesktop/Notifications",
|
"/org/freedesktop/Notifications",
|
||||||
"org.freedesktop.Notifications", session_bus)
|
"org.freedesktop.Notifications", session_bus)
|
||||||
srv_info = self.tray_notifier.call("GetServerInformation")
|
srv_info = self.tray_notifier.call("GetServerInformation")
|
||||||
self.tray_notifier_type = srv_info.arguments()[1]
|
if srv_info.type() == QDBusMessage.ReplyMessage and len(srv_info
|
||||||
|
.arguments()) > 1:
|
||||||
|
self.tray_notifier_type = srv_info.arguments()[1]
|
||||||
|
|
||||||
def update_blk_menu(self):
|
def update_blk_menu(self):
|
||||||
global manager_window
|
global manager_window
|
||||||
|
@ -289,6 +289,12 @@ class VMSettingsWindow(Ui_SettingsDialog, QDialog):
|
|||||||
else:
|
else:
|
||||||
self.run_in_debug_mode.setVisible(False)
|
self.run_in_debug_mode.setVisible(False)
|
||||||
|
|
||||||
|
if hasattr(self.vm, 'autostart'):
|
||||||
|
self.autostart_vm.setVisible(True)
|
||||||
|
self.autostart_vm.setChecked(self.vm.autostart)
|
||||||
|
else:
|
||||||
|
self.autostart_vm.setVisible(False)
|
||||||
|
|
||||||
if hasattr(self.vm, 'seamless_gui_mode'):
|
if hasattr(self.vm, 'seamless_gui_mode'):
|
||||||
self.seamless_gui.setVisible(True)
|
self.seamless_gui.setVisible(True)
|
||||||
self.seamless_gui.setChecked(self.vm.seamless_gui_mode)
|
self.seamless_gui.setChecked(self.vm.seamless_gui_mode)
|
||||||
@ -405,6 +411,16 @@ class VMSettingsWindow(Ui_SettingsDialog, QDialog):
|
|||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
msg.append(str(ex))
|
msg.append(str(ex))
|
||||||
|
|
||||||
|
#autostart_vm
|
||||||
|
try:
|
||||||
|
if self.autostart_vm.isVisible():
|
||||||
|
if self.vm.autostart != self.autostart_vm.isChecked():
|
||||||
|
self.vm.autostart = self.autostart_vm.isChecked()
|
||||||
|
self.anything_changed = True
|
||||||
|
except Exception as ex:
|
||||||
|
msg.append(str(ex))
|
||||||
|
|
||||||
|
#seamless_gui
|
||||||
try:
|
try:
|
||||||
if self.seamless_gui.isVisible():
|
if self.seamless_gui.isVisible():
|
||||||
if self.vm.seamless_gui_mode != self.seamless_gui.isChecked():
|
if self.vm.seamless_gui_mode != self.seamless_gui.isChecked():
|
||||||
|
@ -119,12 +119,23 @@
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item row="4" column="0">
|
<item row="4" column="0" colspan="2">
|
||||||
<widget class="QCheckBox" name="seamless_gui">
|
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
||||||
<property name="text">
|
<item>
|
||||||
<string>Seamless GUI</string>
|
<widget class="QCheckBox" name="autostart_vm">
|
||||||
</property>
|
<property name="text">
|
||||||
</widget>
|
<string>Start VM automatically on boot</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QCheckBox" name="seamless_gui">
|
||||||
|
<property name="text">
|
||||||
|
<string>Seamless GUI</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
@ -1140,6 +1151,8 @@
|
|||||||
<tabstop>netVM</tabstop>
|
<tabstop>netVM</tabstop>
|
||||||
<tabstop>include_in_backups</tabstop>
|
<tabstop>include_in_backups</tabstop>
|
||||||
<tabstop>run_in_debug_mode</tabstop>
|
<tabstop>run_in_debug_mode</tabstop>
|
||||||
|
<tabstop>autostart_vm</tabstop>
|
||||||
|
<tabstop>seamless_gui</tabstop>
|
||||||
<tabstop>max_priv_storage</tabstop>
|
<tabstop>max_priv_storage</tabstop>
|
||||||
<tabstop>init_mem</tabstop>
|
<tabstop>init_mem</tabstop>
|
||||||
<tabstop>max_mem_size</tabstop>
|
<tabstop>max_mem_size</tabstop>
|
||||||
|
Loading…
Reference in New Issue
Block a user