Permalink
Browse files

[xs][ui] Improving paned windows positions at first run

  • Loading branch information...
fontanon committed Dec 31, 2011
1 parent 87b5f69 commit 40dd81e7b85de2778fbcaf6b9eb7c059f6e3f0f4
Showing with 9 additions and 9 deletions.
  1. +2 −2 data/udev-discover.schemas
  2. +7 −7 udev-discover.in
@@ -20,7 +20,7 @@
<applyto>/apps/udevdiscover/devices_hpaned</applyto>
<owner>udevdiscover</owner>
<type>int</type>
<default>0</default>
<default>300</default>
<locale name="C">
<short>Device info/properties horizontal panel position</short>
<long>Sets the separation from devices tree view and
@@ -72,7 +72,7 @@
<applyto>/apps/udevdiscover/eventslog_vpaned</applyto>
<owner>udevdiscover</owner>
<type>int</type>
<default>456</default>
<default>300</default>
<locale name="C">
<short>Udev events log vertical panel position</short>
<long>Sets the separation from devices view and events log
View
@@ -202,10 +202,10 @@ class UDevDiscoverGUI(GConfStore):
defaults = {
'window_width': 600,
'window_height': 400,
'devices_hpaned': 150,
'devices_hpaned': 300,
'parent_tree': True,
'expanded': True,
'eventslog_vpaned': 350,
'eventslog_vpaned': 300,
'eventslog_expanded': True,
'follownew': True,
'followchanged': True,
@@ -269,11 +269,6 @@ class UDevDiscoverGUI(GConfStore):
self.main_window.resize(self.options['window_width'],
self.options['window_height'])
# Restore paned window positions
self.devices_hpaned.set_position(self.options['devices_hpaned'])
self.eventslog_vpaned.set_position(self.options['eventslog_vpaned'])
self.eventslog_expander.set_expanded(self.options['eventslog_expanded'])
# Subsystem chooser dialog
self.subsys_dialog = SubsystemChoserDialog(
self.options['subsystem_preset'],
@@ -310,6 +305,11 @@ class UDevDiscoverGUI(GConfStore):
self.search_entry.set_property('primary-icon-sensitive',False)
self.search_entry.set_property('secondary-icon-sensitive',False)
# Restore paned window positions
self.devices_hpaned.set_position(self.options['devices_hpaned'])
self.eventslog_vpaned.set_position(self.options['eventslog_vpaned'])
self.eventslog_expander.set_expanded(self.options['eventslog_expanded'])
def new_device(self, device_finder, device):
row_ref = self.add_new_device(device)

0 comments on commit 40dd81e

Please sign in to comment.