зеркало из https://github.com/mozilla/gecko-dev.git
bug 1287036 draw separator menuitem background and frame behind separator in menu r=stransky+263117
as does gtk_menu_item_draw(). MozReview-Commit-ID: DgYVFklmTO2 --HG-- extra : rebase_source : adfd74208e24aa6e64ae2802d0722d65d22d7ebb
This commit is contained in:
Родитель
1d4e286029
Коммит
591c93a17d
|
@ -36,6 +36,10 @@ static gboolean is_initialized;
|
|||
static gint
|
||||
moz_gtk_get_tab_thickness(GtkStyleContext *style);
|
||||
|
||||
static gint
|
||||
moz_gtk_menu_item_paint(WidgetNodeType widget, cairo_t *cr, GdkRectangle* rect,
|
||||
GtkWidgetState* state, GtkTextDirection direction);
|
||||
|
||||
static GtkStateFlags
|
||||
GetStateFlagsFromGtkWidgetState(GtkWidgetState* state)
|
||||
{
|
||||
|
@ -1766,6 +1770,10 @@ static gint
|
|||
moz_gtk_menu_separator_paint(cairo_t *cr, GdkRectangle* rect,
|
||||
GtkTextDirection direction)
|
||||
{
|
||||
GtkWidgetState defaultState = { 0 };
|
||||
moz_gtk_menu_item_paint(MOZ_GTK_MENUSEPARATOR, cr, rect,
|
||||
&defaultState, direction);
|
||||
|
||||
GtkStyleContext* style;
|
||||
gboolean wide_separators;
|
||||
gint separator_height;
|
||||
|
|
Загрузка…
Ссылка в новой задаче