Closed Bug 233242 Opened 21 years ago Closed 20 years ago

[GNOME] hovering on the menubar should not activate the menus

Categories

(Core :: XUL, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: p_ch, Assigned: p_ch)

References

Details

Attachments

(2 files, 1 obsolete file)

This is gnome specific, mousing over the menubar shouldn't activate the menus.
patch coming
Attached patch patch v1.0 (obsolete) — Splinter Review
test if the menubar is active. if it isn't, then do nothing.
Attachment #140727 - Flags: superreview?(bryner)
Attachment #140727 - Flags: review?(neil.parkwaycc.co.uk)
Are you referring to the "hover" effect?
(In reply to comment #2)
> Are you referring to the "hover" effect?
Yes
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)
forgot to cc reviewers
Blocks: 233462
(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.

(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.
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)
Attached patch how about thisSplinter Review
This doesn't change the menu code; instead it only sets inHover on toplevel
menus if they are actually open.
Attachment #143094 - Flags: superreview?(roc)
Attachment #143094 - Flags: review?(p_ch)
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+
checked in.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
reopening to cover fixing the text color.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
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.
Attachment #143135 - Flags: superreview?(roc)
Attachment #143135 - Flags: review?(p_ch)
Attachment #143135 - Flags: superreview?(roc) → superreview+
I checked this in with roc's sr.  pch, feel free to add review comments.
Status: REOPENED → RESOLVED
Closed: 20 years ago20 years ago
Resolution: --- → FIXED
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.
Attachment #143135 - Flags: review?(p_ch)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: