[gtk+] Add top/bottom style classes to scroll arrows
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Add top/bottom style classes to scroll arrows
- Date: Fri, 10 Oct 2014 11:44:11 +0000 (UTC)
commit dcf80f3df555e1026a37cf7108e411584080d033
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Oct 10 07:43:36 2014 -0400
Add top/bottom style classes to scroll arrows
gtk/gtkmenu.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkmenu.c b/gtk/gtkmenu.c
index 2991136..270fbec 100644
--- a/gtk/gtkmenu.c
+++ b/gtk/gtkmenu.c
@@ -3083,6 +3083,7 @@ gtk_menu_draw (GtkWidget *widget,
{
gtk_style_context_save (context);
gtk_style_context_set_state (context, priv->upper_arrow_state);
+ gtk_style_context_add_class (context, GTK_STYLE_CLASS_TOP);
gtk_render_background (context, cr,
upper.x, upper.y,
@@ -3103,6 +3104,7 @@ gtk_menu_draw (GtkWidget *widget,
{
gtk_style_context_save (context);
gtk_style_context_set_state (context, priv->lower_arrow_state);
+ gtk_style_context_add_class (context, GTK_STYLE_CLASS_BOTTOM);
gtk_render_background (context, cr,
lower.x, lower.y,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]