Changeset b68bc8adac4e5424fb75808d26c2e75e34a5e70b
- Timestamp:
- 06/11/08 22:00:19 (4 years ago)
- Author:
- Lincoln de Sousa <lincoln@…>
- Children:
- b71e79590601d436af5201f690ba38fcf2f5126b
- Parents:
- 5d1bd3021693e54e7d206613f99797ed5d29b05d
- git-committer:
- Lincoln de Sousa <lincoln@…> (06/11/08 22:00:19)
- Message:
-
changing my email, making a little code cleanup and adding some comments
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r38142c7
|
rb68bc8a
|
|
| 2 | 2 | """ |
| 3 | 3 | Copyright (C) 2007 Gabriel Falcão <gabrielteratos@gmail.com> |
| 4 | | Copyright (C) 2007 Lincoln de Sousa <lincoln@archlinux-br.org> |
| | 4 | Copyright (C) 2007 Lincoln de Sousa <lincoln@minaslivre.org> |
| 5 | 5 | |
| 6 | 6 | This program is free software; you can redistribute it and/or |
| … |
… |
|
| 66 | 66 | def __init__(self): |
| 67 | 67 | super(AboutDialog, self).__init__(common.gladefile('about.glade'), |
| 68 | | root='aboutdialog') |
| | 68 | root='aboutdialog') |
| 69 | 69 | ad = self.get_widget('aboutdialog') |
| 70 | 70 | |
| 71 | | # the terminal window can be opened and the user *must* see this window |
| | 71 | # the terminal window can be opened and the user *must* see |
| | 72 | # this window |
| 72 | 73 | ad.set_keep_above(True) |
| 73 | 74 | |
| … |
… |
|
| 84 | 85 | def __init__(self, guakeinstance): |
| 85 | 86 | super(PrefsDialog, self).__init__(common.gladefile('prefs.glade'), |
| 86 | | root='config-window') |
| | 87 | root='config-window') |
| 87 | 88 | |
| 88 | 89 | self.guake = guakeinstance |
| … |
… |
|
| 143 | 144 | self.bgfilechooser.set_filter(self.file_filter) |
| 144 | 145 | self.bgfilechooser.connect('update-preview', self.update_preview_cb, |
| 145 | | self.selection_preview) |
| | 146 | self.selection_preview) |
| 146 | 147 | |
| 147 | 148 | def show(self): |
| … |
… |
|
| 391 | 392 | self.client = gconf.client_get_default() |
| 392 | 393 | |
| 393 | | # setting global hotkey showing a pretty notification =) |
| | 394 | # setting global hotkey and showing a pretty notification =) |
| 394 | 395 | globalhotkeys.init() |
| 395 | 396 | key = self.client.get_string(GHOTKEYS[0][0]) |
| … |
… |
|
| 418 | 419 | self.get_widget('image2').set_from_file(ipath) |
| 419 | 420 | |
| | 421 | # important widgets |
| 420 | 422 | self.window = self.get_widget('window-root') |
| 421 | 423 | self.notebook = self.get_widget('notebook-teminals') |
| … |
… |
|
| 424 | 426 | self.mainframe = self.get_widget('mainframe') |
| 425 | 427 | |
| 426 | | self.accel_group = gtk.AccelGroup() |
| | 428 | # List of vte.Terminal widgets, it will be useful when needed |
| | 429 | # to get a widget by the current page in self.notebook |
| 427 | 430 | self.term_list = [] |
| | 431 | |
| | 432 | # This is the pid of shells forked by each terminal. Will be |
| | 433 | # used to kill the process when closing a tab |
| 428 | 434 | self.pid_list = [] |
| 429 | 435 | |
| 430 | | self.animation_speed = 30 |
| | 436 | # holds visibility/fullscreen status =) |
| 431 | 437 | self.visible = False |
| 432 | 438 | self.fullscreen = False |
| 433 | 439 | |
| | 440 | # some day we're going to have animation when showing/hiding |
| | 441 | # guake's main window. |
| | 442 | self.animation_speed = 30 |
| | 443 | |
| | 444 | self.accel_group = gtk.AccelGroup() |
| 434 | 445 | self.window.add_accel_group(self.accel_group) |
| 435 | 446 | self.window.set_keep_above(True) |
| 436 | 447 | self.window.set_geometry_hints(min_width=1, min_height=1) |
| 437 | | self.window.connect('focus-out-event',self.on_window_lostfocus) |
| | 448 | self.window.connect('focus-out-event', self.on_window_lostfocus) |
| 438 | 449 | |
| 439 | 450 | self.load_config() |
| … |
… |
|
| 445 | 456 | getb = lambda x:self.client.get_bool(x) |
| 446 | 457 | value = getb(GCONF_PATH+'general/hide_on_lost_focus') |
| 447 | | if value == True: |
| | 458 | if value: |
| 448 | 459 | self.hide() |
| 449 | 460 | |
| … |
… |
|
| 719 | 730 | self.show_context_menu) |
| 720 | 731 | |
| 721 | | # Adding a new radio button to tabbar |
| | 732 | # Adding a new radio button to the tabbar |
| 722 | 733 | tabs = self.tabs.get_children() |
| 723 | 734 | parent = tabs and tabs[0] or None |
| | 735 | |
| 724 | 736 | bnt = gtk.RadioButton(group=parent, |
| 725 | 737 | label=_('Terminal %s') % (last_added+1)) |