Closed
Bug 195881
Opened 22 years ago
Closed 22 years ago
Buttons should not be able to draw as active when they are disabled
Categories
(Core Graveyard :: GFX: Gtk, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: bryner, Assigned: bryner)
Details
Attachments
(1 file, 1 obsolete file)
|
1.41 KB,
patch
|
blizzard
:
review+
jag+mozilla
:
superreview+
sspitzer
:
approval1.4+
|
Details | Diff | Splinter Review |
If you have a disabled button, the current GTK nsITheme implementation will
still allow it to draw in the pressed-in state. Steps to reproduce:
1. Switch to classic skin
2. File -> Open File...
3. Don't click on any files, but click the OK button in the filepicker
Expected result: the button does not appear to depress, since it's disabled
Actual result: the button depresses
| Assignee | ||
Comment 1•22 years ago
|
||
This looks rather large, but it encompasses some additional cleanup. I changed
the widget state to be a series of flags rather than a struct, and I changed
the tab state flags to use the kEnumValue style rather than ENUM_VALUE.
The actual _fix_ is in several places where gtkdrawing.c acts on the "active"
state flag, it needs to also check the disabled flag. I thought about putting
the logic in nsNativeThemeGtk, but decided that the nsNativeThemeGtk code
should fill in all the information that it can obtain, and then leave it up to
the drawing implementation how to interpret it.
| Assignee | ||
Updated•22 years ago
|
Attachment #116189 -
Flags: review?(blizzard)
Comment 2•22 years ago
|
||
Should this be in here? Does this break our error handling?
- gdk_flush();
+ // gdk_flush();
Also, this is going to break the crap out of the patch that I just made in bug
174471 because it adds real ints to the state struct.
| Assignee | ||
Updated•22 years ago
|
Attachment #116189 -
Flags: review?(blizzard)
| Assignee | ||
Comment 3•22 years ago
|
||
Attachment #116189 -
Attachment is obsolete: true
| Assignee | ||
Updated•22 years ago
|
Attachment #123735 -
Flags: superreview?(jaggernaut)
Attachment #123735 -
Flags: review?(blizzard)
Comment 4•22 years ago
|
||
Comment on attachment 123735 [details] [diff] [review]
less invasive patch, updated to the trunk
sr=jag
Attachment #123735 -
Flags: superreview?(jaggernaut) → superreview+
Comment 5•22 years ago
|
||
Comment on attachment 123735 [details] [diff] [review]
less invasive patch, updated to the trunk
r=blizzard
Attachment #123735 -
Flags: review?(blizzard) → review+
| Assignee | ||
Updated•22 years ago
|
Attachment #123735 -
Flags: approval1.4?
Comment 6•22 years ago
|
||
Comment on attachment 123735 [details] [diff] [review]
less invasive patch, updated to the trunk
a=sspitzer,asa
Attachment #123735 -
Flags: approval1.4? → approval1.4+
| Assignee | ||
Comment 7•22 years ago
|
||
checked in.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Updated•17 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•