Skip to content

Commit

Permalink
Fix tab order in timezone dialog (bnc#872341)
Browse files Browse the repository at this point in the history
  • Loading branch information
ancorgs committed Nov 20, 2014
1 parent d1964ae commit b9553a2
Showing 1 changed file with 6 additions and 27 deletions.
33 changes: 6 additions & 27 deletions timezone/src/include/timezone/dialogs.rb
Expand Up @@ -654,11 +654,7 @@ def TimezoneDialog(args)
HSpacing(),
HWeight(
2,
ReplacePoint(
Id(:tzsel),
# title for combo box 'timezone'
ComboBox(Id(:timezone), Opt(:notify), _("Time &Zone"))
)
ComboBox(Id(:timezone), Opt(:notify), _("Time &Zone"))
),
HSpacing(),
HWeight(1, HStretch())
Expand Down Expand Up @@ -689,11 +685,7 @@ def TimezoneDialog(args)
Timezone.Region
),
HSpacing(),
ReplacePoint(
Id(:tzsel),
# title for selection box 'timezone'
SelectionBox(Id(:timezone), Opt(:notify), _("Time &Zone"))
)
SelectionBox(Id(:timezone), Opt(:notify), _("Time &Zone"))
),
HBox(
HSpacing(),
Expand Down Expand Up @@ -758,23 +750,10 @@ def TimezoneDialog(args)
UI.ChangeWidget(Id(:region), :CurrentItem, sel2)
end

UI.ReplaceWidget(
Id(:tzsel),
timezone_selector ?
ComboBox(
Id(:timezone),
Opt(:notify),
# label text
_("Time &Zone"),
get_timezones_for_region.call(sel2, zone)
) :
SelectionBox(
Id(:timezone),
Opt(:notify),
# label text
_("Time &Zone"),
get_timezones_for_region.call(sel2, zone)
)
UI.ChangeWidget(
Id(:timezone),
:Items,
get_timezones_for_region.call(sel2, zone)
)

nil
Expand Down

0 comments on commit b9553a2

Please sign in to comment.