mirror of
https://github.com/brl/mutter.git
synced 2024-11-28 19:10:43 -05:00
theme: Update style hierarchy (again)
GTK+ has updated some more widgets to use element names, so do some catching up again ...
This commit is contained in:
parent
049f1556dc
commit
4a770907c1
@ -1000,32 +1000,30 @@ meta_theme_create_style_info (GdkScreen *screen,
|
|||||||
create_style_context (GTK_TYPE_HEADER_BAR,
|
create_style_context (GTK_TYPE_HEADER_BAR,
|
||||||
style_info->styles[META_STYLE_ELEMENT_FRAME],
|
style_info->styles[META_STYLE_ELEMENT_FRAME],
|
||||||
provider,
|
provider,
|
||||||
NULL,
|
"headerbar",
|
||||||
GTK_STYLE_CLASS_TITLEBAR,
|
GTK_STYLE_CLASS_TITLEBAR,
|
||||||
GTK_STYLE_CLASS_HORIZONTAL,
|
GTK_STYLE_CLASS_HORIZONTAL,
|
||||||
"default-decoration",
|
"default-decoration",
|
||||||
"header-bar",
|
|
||||||
NULL);
|
NULL);
|
||||||
style_info->styles[META_STYLE_ELEMENT_TITLE] =
|
style_info->styles[META_STYLE_ELEMENT_TITLE] =
|
||||||
create_style_context (GTK_TYPE_LABEL,
|
create_style_context (GTK_TYPE_LABEL,
|
||||||
style_info->styles[META_STYLE_ELEMENT_TITLEBAR],
|
style_info->styles[META_STYLE_ELEMENT_TITLEBAR],
|
||||||
provider,
|
provider,
|
||||||
NULL,
|
"label",
|
||||||
GTK_STYLE_CLASS_TITLE,
|
GTK_STYLE_CLASS_TITLE,
|
||||||
NULL);
|
NULL);
|
||||||
style_info->styles[META_STYLE_ELEMENT_BUTTON] =
|
style_info->styles[META_STYLE_ELEMENT_BUTTON] =
|
||||||
create_style_context (GTK_TYPE_BUTTON,
|
create_style_context (GTK_TYPE_BUTTON,
|
||||||
style_info->styles[META_STYLE_ELEMENT_TITLEBAR],
|
style_info->styles[META_STYLE_ELEMENT_TITLEBAR],
|
||||||
provider,
|
provider,
|
||||||
NULL,
|
"button",
|
||||||
GTK_STYLE_CLASS_BUTTON,
|
|
||||||
"titlebutton",
|
"titlebutton",
|
||||||
NULL);
|
NULL);
|
||||||
style_info->styles[META_STYLE_ELEMENT_IMAGE] =
|
style_info->styles[META_STYLE_ELEMENT_IMAGE] =
|
||||||
create_style_context (GTK_TYPE_IMAGE,
|
create_style_context (GTK_TYPE_IMAGE,
|
||||||
style_info->styles[META_STYLE_ELEMENT_BUTTON],
|
style_info->styles[META_STYLE_ELEMENT_BUTTON],
|
||||||
provider,
|
provider,
|
||||||
NULL,
|
"image",
|
||||||
NULL);
|
NULL);
|
||||||
return style_info;
|
return style_info;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user