#1837 TkAqua: disabled labels turn images to white rectangles

obsolete: 8.4.9
closed-fixed
4
2011-01-17
2005-01-11
No

I first noticed this problem with Tile, but then it
turned out to be an issue with Tk its self, too.
Labels with images in the disabled state, which should
be stippled, are shown instead with plain white
rectangles under TkAqua:

pack [label .l1 -image $img -state normal]
pack [label .l2 -image $img -state disabled]

.l2 should have a stippled version of the same image as
.l1, but it will show only a white rectangle.

This does not appear to be an issue with the label
drawing, but with the generation or drawing of the
stipple via Tk_AllocBitmapFromObj() and XFillRectangle
(a la StippleOver() in Tile's generic/label.c) since
the problem exists in both Tk and Tile and Tile
implements its own label.

Discussion

  • Michael Kirkham

    Michael Kirkham - 2005-01-16

    Logged In: YES
    user_id=498198

    Seems to be an issue with tkMacOSXDraw.c:XFillRectangles().
    There does not seem to be any provision for stippling,
    instead leaving to fill only solid rectangles.

     
  • Jeffrey Hobbs

    Jeffrey Hobbs - 2005-02-11
    • assigned_to: hobbs --> das
     
  • Joe English

    Joe English - 2005-03-09

    Logged In: YES
    user_id=68433

    Tile now avoids this problem by not stippling images in
    disabled buttons in the aqua theme. (This is probably a
    good idea in any event, since Mac apps usually don't use
    stippling for this purpose).

     
  • Daniel A. Steffen

    • priority: 5 --> 4
     
  • Kevin Walzer

    Kevin Walzer - 2011-01-17
    • status: open --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks