menuitem: move chaining up to draw inside gadget

This is more consistent with what other widgets do.
This commit is contained in:
Cosimo Cecchi 2016-01-02 15:28:35 -08:00
parent d3bf07594e
commit 664bbe12ba

View File

@ -297,6 +297,8 @@ gtk_menu_item_render (GtkCssGadget *gadget,
if (priv->submenu && !GTK_IS_MENU_BAR (parent)) if (priv->submenu && !GTK_IS_MENU_BAR (parent))
gtk_css_gadget_draw (priv->arrow_gadget, cr); gtk_css_gadget_draw (priv->arrow_gadget, cr);
GTK_WIDGET_CLASS (gtk_menu_item_parent_class)->draw (widget, cr);
return FALSE; return FALSE;
} }
@ -306,8 +308,6 @@ gtk_menu_item_draw (GtkWidget *widget,
{ {
gtk_css_gadget_draw (GTK_MENU_ITEM (widget)->priv->gadget, cr); gtk_css_gadget_draw (GTK_MENU_ITEM (widget)->priv->gadget, cr);
GTK_WIDGET_CLASS (gtk_menu_item_parent_class)->draw (widget, cr);
return FALSE; return FALSE;
} }