Closed
Bug 233242
Opened 21 years ago
Closed 21 years ago
[GNOME] hovering on the menubar should not activate the menus
Categories
(Core :: XUL, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: p_ch, Assigned: p_ch)
References
Details
Attachments
(2 files, 1 obsolete file)
(deleted),
patch
|
p_ch
:
review+
roc
:
superreview+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
roc
:
superreview+
|
Details | Diff | Splinter Review |
This is gnome specific, mousing over the menubar shouldn't activate the menus.
patch coming
Assignee | ||
Comment 1•21 years ago
|
||
test if the menubar is active. if it isn't, then do nothing.
Assignee | ||
Updated•21 years ago
|
Attachment #140727 -
Flags: superreview?(bryner)
Attachment #140727 -
Flags: review?(neil.parkwaycc.co.uk)
Comment 2•21 years ago
|
||
Are you referring to the "hover" effect?
Assignee | ||
Comment 3•21 years ago
|
||
(In reply to comment #2)
> Are you referring to the "hover" effect?
Yes
Assignee | ||
Comment 4•21 years ago
|
||
Comment on attachment 140727 [details] [diff] [review]
patch v1.0
KDE has the same behavior as Windows. Menus react to the mouse.
so this patch should read as:
-#if defined(XP_UNIX) && !defined(XP_MACOSX)
+#if defined(MOZ_WIDGET_GTK) || defined(MOZ_WIDGET_GTK2)
Assignee | ||
Comment 5•21 years ago
|
||
forgot to cc reviewers
Comment 6•21 years ago
|
||
(In reply to comment #4)
> (From update of attachment 140727 [details] [diff] [review])
> KDE has the same behavior as Windows. Menus react to the mouse.
> so this patch should read as:
> -#if defined(XP_UNIX) && !defined(XP_MACOSX)
> +#if defined(MOZ_WIDGET_GTK) || defined(MOZ_WIDGET_GTK2)
Mozilla uses GTK, even under KDE (there is not QT Mozilla). The other widget
set Mozilla supports is Xlib.
Assignee | ||
Comment 7•21 years ago
|
||
(In reply to comment #6)
> Mozilla uses GTK, even under KDE (there is not QT Mozilla). The other widget
> set Mozilla supports is Xlib.
sure, but if someone wants to port mozilla to another widgetry, finding gtk
specific code will be easier.
Assignee | ||
Comment 8•21 years ago
|
||
Comment on attachment 140727 [details] [diff] [review]
patch v1.0
Clearing reviews, I found a glitch with patch: when a dialog is opened via a
menuitem command, the menubar menu won't open when it is clicked on. It will
only open the second time.
This code is so fragile...
Attachment #140727 -
Attachment is obsolete: true
Attachment #140727 -
Flags: superreview?(bryner)
Attachment #140727 -
Flags: review?(neil.parkwaycc.co.uk)
Comment 9•21 years ago
|
||
This doesn't change the menu code; instead it only sets inHover on toplevel
menus if they are actually open.
Updated•21 years ago
|
Attachment #143094 -
Flags: superreview?(roc)
Attachment #143094 -
Flags: review?(p_ch)
Assignee | ||
Comment 10•21 years ago
|
||
Comment on attachment 143094 [details] [diff] [review]
how about this
I did sth similar, but I changed my mind thinking that the above patch was
working.
I won't have time in the foreseeable future (some weeks) to fix the bugs in the
menu code (bookmarksMenu.js is full of crappy workarounds). So yeah, let's get
that in.
Attachment #143094 -
Flags: review?(p_ch) → review+
Attachment #143094 -
Flags: superreview?(roc) → superreview+
Comment 11•21 years ago
|
||
checked in.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Comment 12•21 years ago
|
||
reopening to cover fixing the text color.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 13•21 years ago
|
||
In theory, this css rule to set the text color to HighlightText will apply in
all the same cases that we draw the highlight on the menu background. Note
that I moved the highlight rule before the disabled rule so that the disabled
rule would take prescedence, and then I special cased menubar > menu so that
HighlightText is only used when the menu is open.
Updated•21 years ago
|
Attachment #143135 -
Flags: superreview?(roc)
Attachment #143135 -
Flags: review?(p_ch)
Attachment #143135 -
Flags: superreview?(roc) → superreview+
Comment 14•21 years ago
|
||
I checked this in with roc's sr. pch, feel free to add review comments.
Status: REOPENED → RESOLVED
Closed: 21 years ago → 21 years ago
Resolution: --- → FIXED
Comment 15•21 years ago
|
||
It seems that the highlight (blue when using the Fedora default Bluecurve)
extends too far to the right of the menu titles when they are active ("File",
"Edit", "View", etc.
I can't get a screenshot with the menus open, but compare the width of the
highlight around "View" in Blizzard's screenshot
(http://www.0xdeadbeef.com/html/2004/03/Screenshot-firefox.png) to one in a
native Gnome app.
Assignee | ||
Updated•20 years ago
|
Attachment #143135 -
Flags: review?(p_ch)
You need to log in
before you can comment on or make changes to this bug.
Description
•