end
end
-def update_all_visibilities
+def update_all_visibilities_aux
$allentries.each { |entry|
update_visibility(entry)
}
shown = $mainview.get_shown_entry
- if shown.nil?
- return
- end
+ shown or return
while shown.button && ! shown.button.visible? && shown != $allentries.last
shown = $allentries[$allentries.index(shown) + 1]
end
}
end
+def update_all_visibilities
+ update_all_visibilities_aux
+ Gtk.main_iteration while Gtk.events_pending?
+ shown = $mainview.get_shown_entry
+ shown and autoscroll_if_needed(shown.button, false)
+end
+
+
def preferences
dialog = Gtk::Dialog.new(utf8(_("Edit preferences")),
$main_window,