GtkStyle: set junction details in spinbutton buttons.

This commit is contained in:
Carlos Garnacho
2010-08-03 20:37:53 +02:00
parent 8c117b1638
commit dd8da82d1e

View File

@@ -1778,11 +1778,17 @@ transform_detail_string (const gchar *detail,
}
else if (strcmp (detail, "spinbutton") == 0)
gtk_style_context_set_class (context, "spinbutton");
else if (strcmp (detail, "spinbutton_up") == 0 ||
strcmp (detail, "spinbutton_down") == 0)
else if (strcmp (detail, "spinbutton_up") == 0)
{
gtk_style_context_set_class (context, "spinbutton");
gtk_style_context_set_class (context, "button");
gtk_style_context_set_junction_sides (context, GTK_JUNCTION_BOTTOM);
}
else if (strcmp (detail, "spinbutton_down") == 0)
{
gtk_style_context_set_class (context, "spinbutton");
gtk_style_context_set_class (context, "button");
gtk_style_context_set_junction_sides (context, GTK_JUNCTION_TOP);
}
else if (g_str_has_prefix (detail, "cell_"))
{