Changeset b68bc8adac4e5424fb75808d26c2e75e34a5e70b

Show
Ignore:
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:
1 modified

Legend:

Unmodified
Added
Removed
  • src/guake.py

    r38142c7 rb68bc8a  
    22""" 
    33Copyright (C) 2007 Gabriel Falcão <gabrielteratos@gmail.com> 
    4 Copyright (C) 2007 Lincoln de Sousa <lincoln@archlinux-br.org> 
     4Copyright (C) 2007 Lincoln de Sousa <lincoln@minaslivre.org> 
    55 
    66This program is free software; you can redistribute it and/or 
     
    6666    def __init__(self): 
    6767        super(AboutDialog, self).__init__(common.gladefile('about.glade'), 
    68                 root='aboutdialog') 
     68                                          root='aboutdialog') 
    6969        ad = self.get_widget('aboutdialog') 
    7070 
    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 
    7273        ad.set_keep_above(True) 
    7374 
     
    8485    def __init__(self, guakeinstance): 
    8586        super(PrefsDialog, self).__init__(common.gladefile('prefs.glade'), 
    86                 root='config-window') 
     87                                          root='config-window') 
    8788 
    8889        self.guake = guakeinstance 
     
    143144        self.bgfilechooser.set_filter(self.file_filter) 
    144145        self.bgfilechooser.connect('update-preview', self.update_preview_cb, 
    145                 self.selection_preview) 
     146                                   self.selection_preview) 
    146147 
    147148    def show(self): 
     
    391392        self.client = gconf.client_get_default() 
    392393 
    393         # setting global hotkey showing a pretty notification =) 
     394        # setting global hotkey and showing a pretty notification =) 
    394395        globalhotkeys.init() 
    395396        key = self.client.get_string(GHOTKEYS[0][0]) 
     
    418419        self.get_widget('image2').set_from_file(ipath) 
    419420 
     421        # important widgets 
    420422        self.window = self.get_widget('window-root') 
    421423        self.notebook = self.get_widget('notebook-teminals') 
     
    424426        self.mainframe = self.get_widget('mainframe') 
    425427 
    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 
    427430        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 
    428434        self.pid_list = [] 
    429435 
    430         self.animation_speed = 30 
     436        # holds visibility/fullscreen status =) 
    431437        self.visible = False 
    432438        self.fullscreen = False 
    433439 
     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() 
    434445        self.window.add_accel_group(self.accel_group) 
    435446        self.window.set_keep_above(True) 
    436447        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) 
    438449 
    439450        self.load_config() 
     
    445456        getb = lambda x:self.client.get_bool(x) 
    446457        value = getb(GCONF_PATH+'general/hide_on_lost_focus') 
    447         if value == True: 
     458        if value: 
    448459            self.hide() 
    449460         
     
    719730                self.show_context_menu) 
    720731 
    721         # Adding a new radio button to tabbar 
     732        # Adding a new radio button to the tabbar 
    722733        tabs = self.tabs.get_children() 
    723734        parent = tabs and tabs[0] or None 
     735 
    724736        bnt = gtk.RadioButton(group=parent, 
    725737                              label=_('Terminal %s') % (last_added+1))