[gtk+/gtk-style-context: 165/191] GtkStyle: set junction details in spinbutton buttons.
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-style-context: 165/191] GtkStyle: set junction details in spinbutton buttons.
- Date: Tue, 17 Aug 2010 14:02:04 +0000 (UTC)
commit fb07acf4efef05293e953ecde3779643c8974006
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Aug 3 20:37:53 2010 +0200
GtkStyle: set junction details in spinbutton buttons.
gtk/gtkstyle.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkstyle.c b/gtk/gtkstyle.c
index 3980d0c..81f61a0 100644
--- a/gtk/gtkstyle.c
+++ b/gtk/gtkstyle.c
@@ -2588,11 +2588,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_"))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]