[Bug 3808] New: hgk: [ttk::style theme use] without theme name does not work on e.g. RHEL6

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Tue Feb 5 00:20:36 CST 2013


http://bz.selenic.com/show_bug.cgi?id=3808

          Priority: normal
            Bug ID: 3808
                CC: mercurial-devel at selenic.com
          Assignee: bugzilla at selenic.com
           Summary: hgk: [ttk::style theme use] without theme name does
                    not work on e.g. RHEL6
          Severity: bug
    Classification: Unclassified
                OS: Linux
          Reporter: hakan.olsson at jeppesen.com
          Hardware: PC
            Status: UNCONFIRMED
           Version: 2.5
         Component: Mercurial
           Product: Mercurial

After switching to Ttk instead of Tk (changeset 0f93bbe8deb7), the following
code causes an error on e.g. RHEL6 machines with Tk-8.5.7 installed:

$ cat -n /usr/bin/hgk | less
...
   109  # end of win32 section
   110  } else {
   111  
   112  if {[ttk::style theme use] eq "default"} {
   113      ttk::style theme use clam
   114  }
...

Apparently, 'ttk::style theme use' requires the extra arg in this Tk version
(and asking for current theme may thus not be supported).

$ hg view
Error in startup script: wrong # args: should be "ttk::style theme use theme"
    while executing
"ttk::style theme use"
    invoked from within
"if {[tk windowingsystem] eq "win32"} {
...(etc)

For now I've worked around it by just removing the condition (lines 112+114).

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list