From 6bd086560127f450d3e258fdc22c1d38e33465b6 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Sat, 23 Oct 2010 18:25:18 +0200 Subject: [PATCH] GtkStyle: Handle scrollbar buttons. --- gtk/gtkstyle.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/gtk/gtkstyle.c b/gtk/gtkstyle.c index c7ce8bbb2e..7e8906aad7 100644 --- a/gtk/gtkstyle.c +++ b/gtk/gtkstyle.c @@ -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;