GtkStyle: Handle scrollbar buttons.

This commit is contained in:
Carlos Garnacho 2010-10-23 18:25:18 +02:00
parent 490d59f045
commit 6bd0865601

View File

@ -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;