Update of /cvsroot/freevo/freevo/src/plugins/idlebar
In directory sc8-pr-cvs1:/tmp/cvs-serv379

Modified Files:
        __init__.py 
Log Message:
format patch from Davin Sagnol

Index: __init__.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/plugins/idlebar/__init__.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** __init__.py 15 Nov 2003 11:25:32 -0000      1.2
--- __init__.py 15 Nov 2003 17:22:48 -0000      1.3
***************
*** 19,22 ****
--- 19,25 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.3  2003/11/15 17:22:48  dischi
+ # format patch from Davin Sagnol
+ #
  # Revision 1.2  2003/11/15 11:25:32  dischi
  # check for crash
***************
*** 141,146 ****
      the idlebar.
      """
!     def __init__(self, format='%a %I:%M %P'):
          IdleBarPlugin.__init__(self)
          self.timeformat = format
          
--- 144,154 ----
      the idlebar.
      """
!     def __init__(self, format=''):
          IdleBarPlugin.__init__(self)
+       if format == '': # No overiding of the default value
+           if time.strftime('%P') =='':
+                 format ='%a %H:%M'
+             else:
+                 format ='%a %I:%M %P'
          self.timeformat = format
          




-------------------------------------------------------
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to