Tk Source Code

View Ticket
Login
Ticket UUID: 219974
Title: Compile error, and Alt key error on HP-UX
Type: Bug Version: obsolete: 8.1b3
Submitter: welch Created on: 2000-10-31 21:55:49
Subsystem: 84. Unix Build Assigned To: nobody
Priority: 1 Zero Severity:
Status: Closed Last Modified: 2001-03-23 10:22:43
Resolution: Duplicate Closed By: dgp
    Closed on: 2001-03-23 03:22:43
Description:
OriginalBugID: 1920 Bug
Version: 8.1b3
SubmitDate: '1999-04-22'
LastModified: '1999-08-08'
Severity: CRIT
Status: Closed
Submitter: pat
ChangedBy: hobbs
RelatedBugIDs: 2425
OS: HP-UX
OSVersion: 10
Machine: Other
FixedInVersion: 8.2b2
ClosedDate: '1999-08-08'


Name:

Steve Mullerworth



Extensions:

None



CustomShell:

None



ReproducibleScript:

The errors are straightforward bugs



ObservedBehavior:

Compiling on HP-UX10:

    There are two compile failures in tk relating to (void) arguments:

    void TkEventInit(void)

    void TkSelGetInProgress(void)cc: 

    The errors are resolved by deleting the void:

    "../generic/tkEvent.c", line 424: error 1705: Function prototypes are an

    ANSI feature.

    

    When creating menus with -underlines, there is a failure when using

    the Alt-<key> to open the menu (line 933 of menu.tcl):

    can't read "i": no such variable

        while executing

    "$child cget $i -state"

        ("Menubutton" arm line 5)

        invoked from within

    "switch [winfo class $child] {

        Menubutton {

    set char2 [string index [$child cget -text]  [$child cget

    -underline]]

                  if {![string co..."

        (procedure "tkMenuFind" line 39)

        invoked from within

    "tkMenuFind $child $char"

        ("default" arm line 2)

        invoked from within

    "switch [winfo class $child] {

        Menubutton {

    set char2 [string index [$child cget -text]  [$child cget

    -underline]]

                  if {![string co..."

        (procedure "tkMenuFind" line 39)

        invoked from within

    "tkMenuFind $child $char"

        ("default" arm line 2)

        invoked from within

    "switch [winfo class $child] {

        Menubutton {

    set char2 [string index [$child cget -text]  [$child cget

    -underline]]

                  if {![string co..."

        (procedure "tkMenuFind" line 39)

        invoked from within

    "tkMenuFind [winfo toplevel $w] $char"

        (procedure "tkTraverseToMenu" line 16)

        invoked from within

    "tkTraverseToMenu . e"

        (command bound to event)





Fixed in 8.2b2. 
-- 08/08/1999 hobbs