FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo Development

 
 
LinkBack Thread Tools
 
Old 11-04-2010, 06:04 PM
Ales Kozumplik
 
Default timezones: fix a scrolling problem with the scdate's GUI TreeView.

Without the patch 'New York' is correctly selected upon entering the
screen but the tree view is scrolled one position below (so the highlight
is not visible at all).
---
pyanaconda/iw/timezone_gui.py | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/pyanaconda/iw/timezone_gui.py b/pyanaconda/iw/timezone_gui.py
index 2d3e4bb..39037ae 100644
--- a/pyanaconda/iw/timezone_gui.py
+++ b/pyanaconda/iw/timezone_gui.py
@@ -39,7 +39,7 @@ class TimezoneWindow(InstallWindow):
# this won't work.
gtk.glade.set_custom_handler(self.custom_widget_ha ndler)

- # Set the default now. We'll fix it for real in getScreen.
+ # Set the default now. We'll fix it for real in upon the first render.
self.default = "America/New York"

self.zonetab = zonetab.ZoneTab()
@@ -90,8 +90,6 @@ class TimezoneWindow(InstallWindow):

self.default = self.default.replace("_", " ")

- # Now fix the default we set when we made the timezone map widget.
- self.tz.setCurrent(self.zonetab.findEntryByTZ(self .default))
self.utcCheckbox.set_active(asUTC)

if not anaconda.ksdata:
@@ -99,3 +97,10 @@ class TimezoneWindow(InstallWindow):

self.notebook.remove(self.vbox)
return self.vbox
+
+ def renderCallback(self):
+ # Now fix the default we set when we made the timezone map widget. Due
+ # to a GTK weirdness, this would not do what we desire if put in
+ # getScreen(): the element would get selected but stay outside of the
+ # visible part of the TreeView.
+ self.tz.setCurrent(self.zonetab.findEntryByTZ(self .default))
--
1.7.1.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 08:17 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org