Author: jsuchome
Date: Fri Jun 20 13:18:11 2008
New Revision: 48439
URL: http://svn.opensuse.org/viewcvs/yast?rev=48439&view=rev
Log:
optimize a bit sorting of time zone entries (bnc#395816)
Modified:
trunk/country/timezone/src/dialogs.ycp
Modified: trunk/country/timezone/src/dialogs.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/country/timezone/src/dialogs.ycp?rev=48439&r1=48438&r2=48439&view=diff
==============================================================================
--- trunk/country/timezone/src/dialogs.ycp (original)
+++ trunk/country/timezone/src/dialogs.ycp Fri Jun 20 13:18:11 2008
@@ -30,8 +30,10 @@
symbol hwclock_s_initial = `none;
- // helper function for seting the time related stuff in module and possibly
- // adapting current time according to it
+ /**
+ * helper function for seting the time related stuff in module and possibly
+ * adapting current time according to it
+ */
define void SetTimezone (symbol hwclock, string timezone, boolean really,
boolean changed_time)
{
@@ -57,6 +59,7 @@
/**
* Dialog for setinge system date and time
+ * @return true if user changed the time (dialog accepted)
*/
define boolean SetTimeDialog() {
@@ -410,7 +413,6 @@
}
// get current timezone and clock setting
- //
boolean changed_time = false;
string timezone = Timezone::timezone;
string timezone_old = timezone;
@@ -428,23 +430,10 @@
Timezone::PushVal();
- /* ----------------------------------------------------------------------
- * Build dialog
- * ----------------------------------------------------------------------*/
-
// Assign system date and time.
//
string date = Timezone::GetDateTime(true, false);
- // build up timezone selection box
- //
- term timezonesel = `ReplacePoint (`id(`tzsel),
- // title for selection box 'timezone'
- `SelectionBox (`id (`timezone), `opt(`notify), _("Time &Zone")));
-
- term region = `SelectionBox (
- // label text
- `id(`region),`opt(`notify,`immediate), _("&Region"),Timezone::Region());
term settime = `Empty();
@@ -456,11 +445,6 @@
boolean textmode = Language::GetTextMode ();
- term timezoneterm = `HBox (
- region,
- `HSpacing (),
- timezonesel
- );
boolean timezone_selector = false;
list<map> zonemap = Timezone::get_zonemap ();
@@ -469,32 +453,20 @@
map