Changeset f2e67a5d5c1d25572bc4cfdf519843a17439681a

Show
Ignore:
Timestamp:
08/03/08 22:20:07 (4 years ago)
Author:
Lincoln de Sousa <lincoln@…>
Children:
98c5f96a826f3ad670e9905b32db081e4578b475
Parents:
ea868df7d6dfdd72046f45a7c359de9b3ad1aa5a
git-committer:
Lincoln de Sousa <lincoln@…> (08/03/08 22:20:07)
Message:

showing the label instead of the name of the accel key in guake initialization

Files:
2 modified

Legend:

Unmodified
Added
Removed
  • ChangeLog

    rea868df rf2e67a5  
     12008-08-03  Lincoln de Sousa  <lincoln@indigente.viaduto> 
     2 
     3        * src/guake.py (Guake.__init__): Getting/showing the accel label 
     4        instead of name, the < and > symbols were bothering pango and it's 
     5        better to show a pretty label to the user. 
     6 
    172008-08-03  Lincoln de Sousa  <lincoln@minaslivre.org> 
    28 
  • src/guake.py

    rea868df rf2e67a5  
    590590        globalhotkeys.init() 
    591591        key = self.client.get_string(GHOTKEYS[0][0]) 
     592        keyval, mask = gtk.accelerator_parse(key) 
     593        label = gtk.accelerator_get_label(keyval, mask) 
     594 
    592595        filename = common.pixmapfile('guake-notification.png') 
    593596        if not globalhotkeys.bind(key, self.show_hide): 
     
    595598                _('A problem happened when binding <b>%s</b> key.\n' 
    596599                  'Please use guake properties form to choose another ' 
    597                   'key') % key, filename) 
     600                  'key') % label, filename) 
    598601        else: 
    599602            n = pynotify.Notification(_('Guake!'), 
    600603                _('Guake is already running,\n' 
    601                   'press <b>%s</b> to use it.') % key, filename) 
     604                  'press <b>%s</b> to use it.') % label, filename) 
    602605        n.show() 
    603606