Changeset f2e67a5d5c1d25572bc4cfdf519843a17439681a
- 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:
-
Legend:
- Unmodified
- Added
- Removed
-
|
rea868df
|
rf2e67a5
|
|
| | 1 | 2008-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 | |
| 1 | 7 | 2008-08-03 Lincoln de Sousa <lincoln@minaslivre.org> |
| 2 | 8 | |
-
|
rea868df
|
rf2e67a5
|
|
| 590 | 590 | globalhotkeys.init() |
| 591 | 591 | key = self.client.get_string(GHOTKEYS[0][0]) |
| | 592 | keyval, mask = gtk.accelerator_parse(key) |
| | 593 | label = gtk.accelerator_get_label(keyval, mask) |
| | 594 | |
| 592 | 595 | filename = common.pixmapfile('guake-notification.png') |
| 593 | 596 | if not globalhotkeys.bind(key, self.show_hide): |
| … |
… |
|
| 595 | 598 | _('A problem happened when binding <b>%s</b> key.\n' |
| 596 | 599 | 'Please use guake properties form to choose another ' |
| 597 | | 'key') % key, filename) |
| | 600 | 'key') % label, filename) |
| 598 | 601 | else: |
| 599 | 602 | n = pynotify.Notification(_('Guake!'), |
| 600 | 603 | _('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) |
| 602 | 605 | n.show() |
| 603 | 606 | |