mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-29 06:51:10 +00:00
GtkStyle: Handle scrollbar buttons.
This commit is contained in:
parent
490d59f045
commit
6bd0865601
@ -1820,8 +1820,17 @@ transform_detail_string (const gchar *detail,
|
||||
gtk_style_context_add_class (context, "button");
|
||||
gtk_style_context_set_junction_sides (context, GTK_JUNCTION_TOP);
|
||||
}
|
||||
else if ((detail[0] == 'h' || detail[0] == 'v') &&
|
||||
strncmp (&detail[1], "scrollbar_", 10) == 0)
|
||||
{
|
||||
gtk_style_context_add_class (context, "button");
|
||||
gtk_style_context_add_class (context, "scrollbar");
|
||||
}
|
||||
else if (strcmp (detail, "slider") == 0)
|
||||
gtk_style_context_add_class (context, "slider");
|
||||
{
|
||||
gtk_style_context_add_class (context, "slider");
|
||||
gtk_style_context_add_class (context, "scrollbar");
|
||||
}
|
||||
else if (g_str_has_prefix (detail, "cell_"))
|
||||
{
|
||||
GtkRegionFlags row, col;
|
||||
|
Loading…
Reference in New Issue
Block a user