mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
GtkStyle: handle scales when translating the detail string.
This commit is contained in:
parent
71f187a84f
commit
0c1cfd8a34
@ -1807,6 +1807,12 @@ transform_detail_string (const gchar *detail,
|
||||
gtk_style_context_add_class (context, "slider");
|
||||
gtk_style_context_add_class (context, "scrollbar");
|
||||
}
|
||||
else if (strcmp (detail, "vscale") == 0 ||
|
||||
strcmp (detail, "hscale") == 0)
|
||||
{
|
||||
gtk_style_context_add_class (context, "slider");
|
||||
gtk_style_context_add_class (context, "scale");
|
||||
}
|
||||
else if (strcmp (detail, "menuitem") == 0)
|
||||
{
|
||||
gtk_style_context_add_class (context, "menuitem");
|
||||
@ -1823,7 +1829,8 @@ transform_detail_string (const gchar *detail,
|
||||
gtk_style_context_add_class (context, "menubar");
|
||||
else if (strcmp (detail, "base") == 0)
|
||||
gtk_style_context_add_class (context, "background");
|
||||
else if (strcmp (detail, "bar") == 0)
|
||||
else if (strcmp (detail, "bar") == 0 ||
|
||||
strcmp (detail, "progressbar") == 0)
|
||||
gtk_style_context_add_class (context, "progressbar");
|
||||
else if (strcmp (detail, "toolbar") == 0)
|
||||
gtk_style_context_add_class (context, "toolbar");
|
||||
|
Loading…
Reference in New Issue
Block a user