~dcaro/clicompanion/fix-801906

« back to all changes in this revision

Viewing changes to clicompanionlib/tabs.py

  • Committer: duanedesign
  • Date: 2011-03-22 12:44:06 UTC
  • mfrom: (66.1.6 clicompanion)
  • Revision ID: duanedesign@gmail.com-20110322124406-0aelsl8hten2pjzv
[MERGE] lp:~bdfhjk/clicompanion/fix-684336 Adjust window size for netbooks. fixes lp:684336

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 
27
27
from clicompanionlib.utils import get_user_shell
28
28
import clicompanionlib.controller
 
29
import view
29
30
 
30
31
CONFIGFILE = os.path.expanduser("~/.config/clicompanion/config")
31
32
gcp=0;
36
37
    '''
37
38
    def add_tab(self,widget, notebook):
38
39
        _vte = vte.Terminal()
39
 
        _vte.set_size_request(700, 220)
 
40
        if view.NETBOOKMODE == 1:
 
41
            _vte.set_size_request(700, 120)
 
42
        else:
 
43
                    _vte.set_size_request(700, 220) 
 
44
       
40
45
        _vte.connect ("child-exited", lambda term: gtk.main_quit())
41
46
        _vte.fork_command(get_user_shell()) # Get the user's default shell
42
47