mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 15:28:39 +09:00
[GTK3] Draw only background and frame of separator menuitems in GTK versions > 3.20
In GTK 3.20, gtk_menu_item_draw() just draws the root widget gadget, depending on the theme to style menu items with CSS name "separator" appropriately.
This commit is contained in:
parent
29821c238a
commit
51ddd61925
1 changed files with 3 additions and 0 deletions
|
|
@ -1786,6 +1786,9 @@ moz_gtk_menu_separator_paint(cairo_t *cr, GdkRectangle* rect,
|
|||
moz_gtk_menu_item_paint(MOZ_GTK_MENUSEPARATOR, cr, rect,
|
||||
&defaultState, direction);
|
||||
|
||||
if (gtk_get_minor_version() >= 20)
|
||||
return MOZ_GTK_SUCCESS;
|
||||
|
||||
GtkStyleContext* style;
|
||||
gboolean wide_separators;
|
||||
gint separator_height;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue