Changeset c3cdfce899281ecf25128efc9952e8a79696ab27

Show
Ignore:
Timestamp:
06/03/08 08:49:49 (4 years ago)
Author:
Lincoln de Sousa <lincoln@…>
Children:
fd8257592e340d353be6364633afb9d0c849cd70
Parents:
3c2fef8928c8f9c8d19e3de2643b77de2e5b9894
git-committer:
Lincoln de Sousa <lincoln@…> (06/03/08 08:49:49)
Message:

fixing move/show window, making dialogs be shown and

hidden without bothering main window

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/guake.py

    r7932c52 rc3cdfce  
    142142    def show(self): 
    143143        self.get_widget('config-window').show_all() 
     144        self.get_widget('config-window').present() 
    144145 
    145146    def hide(self): 
     
    463464 
    464465    def show_about(self): 
     466        self.hide() 
    465467        AboutDialog() 
    466468 
    467469    def show_prefs(self): 
     470        self.hide() 
    468471        PrefsDialog(self).show() 
    469472 
     
    489492 
    490493        self.visible = True 
    491         self.window.move(0, 0) 
    492494        self.resize(*self.get_final_window_size()) 
    493495        self.window.show_all() 
     496        self.window.move(0, 0) 
    494497        self.window.window.focus() 
    495498 
     
    648651 
    649652    def on_prefs_menuitem_activate(self, *args): 
    650         PrefsDialog(self).show() 
     653        self.show_prefs() 
    651654 
    652655    def on_about_menuitem_activate(self, *args): 
    653         AboutDialog() 
     656        self.show_about() 
    654657 
    655658    def on_add_button_clicked(self, *args): 
     
    662665 
    663666    def on_context_preferences_activate(self, widget): 
    664         PrefsDialog(self).show() 
     667        self.show_prefs() 
    665668 
    666669    def on_context_copy_activate(self, widget):