Changeset ea868df7d6dfdd72046f45a7c359de9b3ad1aa5a

Show
Ignore:
Timestamp:
08/04/08 01:17:25 (4 years ago)
Author:
Lincoln de Sousa <lincoln@…>
Children:
f2e67a5d5c1d25572bc4cfdf519843a17439681a
Parents:
767310e0c6e1ffdf03bef5a6b287fd87ee664a47
git-committer:
Lincoln de Sousa <lincoln@…> (08/04/08 01:17:25)
Message:

making it possible to press enter instead ofclicking in ok
button to save the tab renaming

Files:
2 modified

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r767310e0 rea868df  
     12008-08-03  Lincoln de Sousa  <lincoln@minaslivre.org> 
     2 
     3        * src/guake.py (Guake.on_rename_activate): Making it possible to 
     4        press enter instead of clicking in ok button to save the tab 
     5        renaming. 
     6 
    172008-07-30  Lincoln de Sousa  <lincoln@alfaiati.net> 
    28 
  • src/guake.py

    r767310e0 rea868df  
    943943        entry = gtk.Entry() 
    944944        entry.set_text(self.selected_tab.get_label()) 
     945        entry.set_property('can-default', True) 
     946        entry.show() 
    945947 
    946948        vbox = gtk.VBox() 
    947         vbox.pack_start(entry) 
    948949        vbox.set_border_width(6) 
    949         vbox.show_all() 
     950        vbox.show() 
    950951 
    951952        dialog = gtk.Dialog("Rename tab", 
     
    960961        dialog.set_has_separator(False) 
    961962        dialog.set_default_response(gtk.RESPONSE_ACCEPT) 
     963        dialog.add_action_widget(entry, gtk.RESPONSE_ACCEPT) 
     964        entry.reparent(vbox) 
    962965 
    963966        response = dialog.run()