always show preferences window in current workspace. Fixes #2189

This commit is contained in:
Yann Leboulanger 2006-07-28 11:23:19 +00:00
parent 7ae4d03628
commit 748c62c3ef
2 changed files with 2 additions and 1 deletions

View File

@ -461,6 +461,7 @@ class PreferencesWindow:
self.notebook.set_current_page(0)
self.window.show_all()
gtkgui_helpers.possibly_move_window_in_current_desktop(self.window)
def on_preferences_window_key_press_event(self, widget, event):
if event.keyval == gtk.keysyms.Escape:

View File

@ -406,7 +406,7 @@ def possibly_move_window_in_current_desktop(window):
if current_virtual_desktop_no != window_virtual_desktop:
# we are in another VD that the window was
# so show it in current VD
window.show()
window.present()
def file_is_locked(path_to_file):
'''returns True if file is locked (WINDOWS ONLY)'''