Open
Bug 407069
Opened 17 years ago
Updated 2 years ago
GTK Menus ignore native vertical padding
Categories
(Core :: Widget: Gtk, defect)
Tracking
()
REOPENED
mozilla1.9beta3
People
(Reporter: ispence, Unassigned)
References
Details
(Whiteboard: [not needed for 1.9])
Attachments
(3 files)
(deleted),
image/png
|
Details | |
(deleted),
patch
|
roc
:
review+
roc
:
superreview+
beltzner
:
approvalM10-
beltzner
:
approval1.9+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
Details | Diff | Splinter Review |
GTK Menus have the option for vertical padding, which some popular themes do take advantage of. Currently padding for a menu is set to 0 pixels all around. The top and bottom padding should take from the GTK style.
Attached is an image showing the problem.
On the top is a native GTK application menu. In the middle is how Firefox currently renders the menu. On the bottom is how it renders with the pending patch.
Reporter | ||
Comment 1•17 years ago
|
||
Actually a pretty straight forward patch. I look up the vertical padding, and set it in nsNativeThemeGTK::GetWidgetPadding.
Attachment #291783 -
Flags: superreview?(roc)
Attachment #291783 -
Flags: review?(roc)
Reporter | ||
Updated•17 years ago
|
Status: NEW → ASSIGNED
Attachment #291783 -
Flags: superreview?(roc)
Attachment #291783 -
Flags: superreview+
Attachment #291783 -
Flags: review?(roc)
Attachment #291783 -
Flags: review+
Reporter | ||
Comment 2•17 years ago
|
||
Comment on attachment 291783 [details] [diff] [review]
Patch to give menus native vertical padding
*wonders if he's allowed to request approval1.9*
Attachment #291783 -
Flags: approval1.9?
Comment 3•17 years ago
|
||
Comment on attachment 291783 [details] [diff] [review]
Patch to give menus native vertical padding
a=drivers for after the Firefox 3 Beta 2 freeze
Attachment #291783 -
Flags: approvalM10-
Attachment #291783 -
Flags: approval1.9?
Attachment #291783 -
Flags: approval1.9+
Comment 4•17 years ago
|
||
Comment on attachment 291783 [details] [diff] [review]
Patch to give menus native vertical padding
>Index: widget/src/gtk2/nsNativeThemeGTK.cpp
>+ if (aWidgetType == NS_THEME_MENUPOPUP) {
>+ gint vertical_padding;
>+ moz_gtk_get_menu_popup_vertical_padding(&vertical_padding);
>+
>+ aResult->SizeTo(0, vertical_padding, 0, vertical_padding);
>+ return PR_TRUE;
>+ }
The indention is wrong. Should be two spaces in this file.
Updated•17 years ago
|
Component: GFX: Gtk → Widget: Gtk
QA Contact: gtk → gtk
Reporter | ||
Comment 5•17 years ago
|
||
The same the the last patch, but with reduced tabs.
Do I need to re-request approval?
Comment 6•17 years ago
|
||
(In reply to comment #5)
> Do I need to re-request approval?
Nope. Once the tree reopens, I'll commit the change.
Updated•17 years ago
|
Keywords: checkin-needed
Comment 7•17 years ago
|
||
Checking in widget/src/gtk2/gtk2drawing.c;
/cvsroot/mozilla/widget/src/gtk2/gtk2drawing.c,v <-- gtk2drawing.c
new revision: 1.49; previous revision: 1.48
done
Checking in widget/src/gtk2/gtkdrawing.h;
/cvsroot/mozilla/widget/src/gtk2/gtkdrawing.h,v <-- gtkdrawing.h
new revision: 1.42; previous revision: 1.41
done
Checking in widget/src/gtk2/nsNativeThemeGTK.cpp;
/cvsroot/mozilla/widget/src/gtk2/nsNativeThemeGTK.cpp,v <-- nsNativeThemeGTK.cpp
new revision: 1.121; previous revision: 1.120
done
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Summary: GTK Menus have ignore native vertical padding → GTK Menus ignore native vertical padding
Target Milestone: --- → mozilla1.9 M11
Reporter | ||
Comment 8•17 years ago
|
||
This should probably be backed out until I can figure out how to determine how to be sure it is a dropdown from the menubar/toolbar (or a submenu of one).
This padding, while it is the correct thing to do, it being exposed as a problem with the fix of bugs like bug 398242
Keywords: checkin-needed
Comment 9•17 years ago
|
||
Backed out.
Updated•17 years ago
|
Whiteboard: [not needed for 1.9]
Comment 11•16 years ago
|
||
Since bug 398242 is obsolete, can someone take a look at this again? This is very annoying for me.
See Also: → https://launchpad.net/bugs/393997
Updated•4 years ago
|
Comment 13•3 years ago
|
||
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)
Updated•3 years ago
|
Flags: needinfo?(stransky)
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•