Open Bug 407069 Opened 17 years ago Updated 2 years ago

GTK Menus ignore native vertical padding

Categories

(Core :: Widget: Gtk, defect)

All
Linux
defect

Tracking

()

REOPENED
mozilla1.9beta3

People

(Reporter: ispence, Unassigned)

References

Details

(Whiteboard: [not needed for 1.9])

Attachments

(3 files)

Attached image Image showing the problem (deleted) —
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.
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)
Status: NEW → ASSIGNED
Attachment #291783 - Flags: superreview?(roc)
Attachment #291783 - Flags: superreview+
Attachment #291783 - Flags: review?(roc)
Attachment #291783 - Flags: review+
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 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 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.
Component: GFX: Gtk → Widget: Gtk
QA Contact: gtk → gtk
Attached patch Updates the indentation (deleted) — Splinter Review
The same the the last patch, but with reduced tabs. Do I need to re-request approval?
(In reply to comment #5) > Do I need to re-request approval? Nope. Once the tree reopens, I'll commit the change.
Keywords: checkin-needed
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
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
Backed out.
Status: RESOLVED → REOPENED
Keywords: checkin-needed
Resolution: FIXED → ---
Whiteboard: [not needed for 1.9]
Since bug 398242 is obsolete, can someone take a look at this again? This is very annoying for me.

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)
Flags: needinfo?(stransky)
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: