commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnue/forms/src GFClient.py GFConfig.py


From: James Thompson
Subject: gnue/forms/src GFClient.py GFConfig.py
Date: Fri, 15 Nov 2002 18:12:37 -0500

CVSROOT:        /cvsroot/gnue
Module name:    gnue
Changes by:     James Thompson <address@hidden> 02/11/15 18:12:36

Modified files:
        forms/src      : GFClient.py GFConfig.py 

Log message:
        added DefaultUI config option

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/forms/src/GFClient.py.diff?tr1=1.54&tr2=1.55&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/forms/src/GFConfig.py.diff?tr1=1.17&tr2=1.18&r1=text&r2=text

Patches:
Index: gnue/forms/src/GFClient.py
diff -c gnue/forms/src/GFClient.py:1.54 gnue/forms/src/GFClient.py:1.55
*** gnue/forms/src/GFClient.py:1.54     Mon Nov  4 21:43:46 2002
--- gnue/forms/src/GFClient.py  Fri Nov 15 18:12:36 2002
***************
*** 56,62 ****
    NAME = "GNUe Forms"
    USAGE = GClientApp.USAGE + " file"
    COMMAND_OPTIONS = [
!       [ 'user_interface', 'u', 'interface', 1, 'wx', 'type',
            _('The currently supported values for <type> are ') \
            +'wx (GUI), gtk2, and curses' ],
        [ 'splash_screen','s','no-splash', 0, None, None,
--- 56,62 ----
    NAME = "GNUe Forms"
    USAGE = GClientApp.USAGE + " file"
    COMMAND_OPTIONS = [
!       [ 'user_interface', 'u', 'interface', 1, None, 'type',
            _('The currently supported values for <type> are ') \
            +'wx (GUI), gtk2, and curses' ],
        [ 'splash_screen','s','no-splash', 0, None, None,
***************
*** 76,81 ****
--- 76,83 ----
      self._lastSerialNumber = 0
  
      self.ui_type = self.OPTIONS['user_interface']
+     if not self.ui_type:
+       self.ui_type = gConfigForms('DefaultUI')
  
      if gConfig('disableSplash') == '1':
        self.disableSplash = 1
Index: gnue/forms/src/GFConfig.py
diff -c gnue/forms/src/GFConfig.py:1.17 gnue/forms/src/GFConfig.py:1.18
*** gnue/forms/src/GFConfig.py:1.17     Wed Sep 18 01:13:01 2002
--- gnue/forms/src/GFConfig.py  Fri Nov 15 18:12:36 2002
***************
*** 352,357 ****
--- 352,363 ----
      'Description': 'Text used to concatenation dropdown descriptions (when 
multiple description fields are used)',
      'Typecast'   : GTypecast.text,
      'Default'    : ', ' },
+   { 'Name'       : 'DefaultUI',
+     'Type'       : 'Setting',
+     'Comment'    : 'The default user interface driver to use if not specified 
on the command line.',
+     'Description': 'The default user interface driver to use if not specified 
on the command line.',
+     'Typecast'   : GTypecast.text,
+     'Default'    : 'wx' },
  
    #
    # Do not alter below here unless you really, really want to (and you know 
what you are doing)
***************
*** 391,395 ****
--- 397,402 ----
      'Description': 'Fudge factor for altering text size',
      'Typecast'   : GTypecast.number,
      'Default'    : 100.0 },
+   
  
  )




reply via email to

[Prev in Thread] Current Thread [Next in Thread]