Closed Bug 408578 Opened 17 years ago Closed 3 years ago

gtk: combobox pushed state

Categories

(Core :: Widget: Gtk, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9beta3

People

(Reporter: u294409, Unassigned)

References

Details

(Whiteboard: [not needed for 1.9])

Attachments

(6 files)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en; rv:1.8.1.10) Gecko/20071213 Epiphany/2.20 Firefox/2.0.0.10 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en; rv:1.8.1.10) Gecko/20071213 Epiphany/2.20 Firefox/2.0.0.10 when combobox is clicked and menu is shown, combo should have pushed state everytime menu is shown. Reproducible: Always Steps to Reproduce: 1. open combobox Actual Results: pushed state is shown when mouse button is still down and menu selection is done. Expected Results: perfectly drawn combo :) . bookmarks bar shows perfect behaviour [attachment done].
ping
2 line fix. The first line paints it as depressed when the menu is open. The second line causes the repaint when the menu closes.
Assignee: nobody → ispence
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attachment #294765 - Flags: superreview?(roc)
Attachment #294765 - Flags: review?(roc)
Attachment #294765 - Flags: superreview?(roc)
Attachment #294765 - Flags: superreview+
Attachment #294765 - Flags: review?(roc)
Attachment #294765 - Flags: review+
Assignee: ispence → nobody
Status: ASSIGNED → NEW
Component: OS Integration → Widget: Gtk
Product: Firefox → Core
QA Contact: os.integration → gtk
Please file GTK theme bugs in Widget: Gtk.
Assignee: nobody → ispence
Status: NEW → ASSIGNED
Version: unspecified → Trunk
Keywords: checkin-needed
Checking in widget/src/gtk2/nsNativeThemeGTK.cpp; /cvsroot/mozilla/widget/src/gtk2/nsNativeThemeGTK.cpp,v <-- nsNativeThemeGTK.cpp new revision: 1.130; previous revision: 1.129 done
Keywords: checkin-needed
Target Milestone: --- → mozilla1.9 M11
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Depends on: 410881
We should back this out to attempt to fix bug 410881
Backed out.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Could this get relanded once if it is determined that it did not cause bug 410881?
Yes, it seems we should reland this.
Keywords: checkin-needed
Relanded. Checking in widget/src/gtk2/nsNativeThemeGTK.cpp; /cvsroot/mozilla/widget/src/gtk2/nsNativeThemeGTK.cpp,v <-- nsNativeThemeGTK.cpp new revision: 1.134; previous revision: 1.133 done
Status: REOPENED → RESOLVED
Closed: 17 years ago17 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
This only seems to have fixed comboboxes in chrome, but not in content.
Exactly.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
ping
HTML comboboxes are broken in general. Case and point: 1. Open 2 Firefox windows side-by-side (the one on the left should have an html combobox, so maybe a bugzilla page) 2. Click the combobox so that it shows its menu. Notice that the button is not drawn as "depressed". 3. Click and hold the window decoration of the other window (where the min, max, close buttons are, but not on the buttons) Notice that by activating the separate window, the combobox is not recieving those events, thus showing as depressed
Flags: wanted1.8.1.x?
Firefox is so hacky, and not native... Ahhh. I wonder if some beautiful day we get perfect engine and browser.
Did you mean to request wanted1.8.1.x?
Ugh, my apologies. That happens to be the combobox I was using to reference in my post.
Flags: wanted1.8.1.x?
(In reply to comment #15) > Firefox is so hacky, and not native... Ahhh. > I wonder if some beautiful day we get perfect engine and browser. Only with major changes to GTK. Note that Webkit/GTK uses a lot of our code for drawing GTK themes in Web pages.
I saw notice about it on some Wiki page.
I'm currently investigating how we could do that for the url bar too, since it would make it react as a ComboBoxEntry rather than a GtkCombo which is deprecated. The pb is that when the dropdown is open, no "open" attribute is set on the urlbar.
I'll be happy, if the GtkCombo and others looking like him would go away.
It makes editable menulists dropdown button remain pushed as long as the dropdown is open. It does not correct urlbar behaviour, since the urlbar doesn't set its open attribute on autocomplete opening. There remains a glitch (which was present before): the dropdown button doesn't highlight on hover.
Attachment #299186 - Flags: superreview?(roc)
Attachment #299186 - Flags: review?(ventnor.bugzilla)
Attachment #299186 - Flags: review?(ventnor.bugzilla) → review+
Attachment #299186 - Flags: superreview?(roc) → superreview+
Attachment #299186 - Flags: approval1.9?
Attachment #299186 - Flags: approval1.9? → approval1.9+
Keywords: checkin-needed
Checking in toolkit/content/widgets/menulist.xml; /cvsroot/mozilla/toolkit/content/widgets/menulist.xml,v <-- menulist.xml new revision: 1.37; previous revision: 1.36 done Checking in widget/src/gtk2/nsNativeThemeGTK.cpp; /cvsroot/mozilla/widget/src/gtk2/nsNativeThemeGTK.cpp,v <-- nsNativeThemeGTK.cpp new revision: 1.141; previous revision: 1.140 done
Status: REOPENED → RESOLVED
Closed: 17 years ago17 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
it should also work on websites
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
I'm posting this in case someone wants to take it and work with it. This currently does the job except that if you close a combobox by clicking outside of the frame (so not on the button and not on the dropdown), then it doesn't cause a repaint. So the button stills looks depressed and will continue to do so until it is hovered.
I'm not quite sure if I understand this bug. In gtk you never actually _see_ the combobox in its pressed mode, as its items are drawn on top of it, in a way that the current selected item is just under the mouse.
Oh, and btw., this only counts for in-content comboboxes. Comboboxes in toolbars should be drawn just like they are today. in beta 5.
Attached image Gtk combobox pressed
Under the menu, the combobox is in pressed state, IIRC. You can see it if you have an empty combobox (with an empty list to choose among). Currently our combobox menus don't popup on top of the combobox, but under. We'll probably have to live with it for Firefox 3; I don't know if it's easy or not to solve, and I've no time. I suspect Ian or Michael have roughly the same problem currently: crunch time...
(In reply to comment #26) > I'm not quite sure if I understand this bug. > In gtk you never actually _see_ the combobox in its pressed mode, as its items > are drawn on top of it, in a way that the current selected item is just under > the mouse. You do if the current item is the last one.
Whiteboard: [not needed for 1.9]

The bug assignee didn't login in Bugzilla in the last 7 months.
:stransky, could you have a look please?
For more information, please visit auto_nag documentation.

Assignee: ispence → nobody
Flags: needinfo?(stransky)

AFAIK outdated.

Status: REOPENED → RESOLVED
Closed: 17 years ago3 years ago
Flags: needinfo?(stransky)
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: