[gtk+/gtk-3-22] spin entry should be a child of spin context



commit dbcbaac98238ec1fbcff13605a0cbb016f47ac31
Author: Caolán McNamara <caolanm redhat com>
Date:   Thu Nov 17 10:04:29 2016 +0000

    spin entry should be a child of spin context
    
    https://bugzilla.gnome.org/show_bug.cgi?id=774609

 demos/gtk-demo/foreigndrawing.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/demos/gtk-demo/foreigndrawing.c b/demos/gtk-demo/foreigndrawing.c
index 29b383b..72db7ff 100644
--- a/demos/gtk-demo/foreigndrawing.c
+++ b/demos/gtk-demo/foreigndrawing.c
@@ -836,7 +836,7 @@ draw_spinbutton (GtkWidget *widget,
 
   /* This information is taken from the GtkSpinButton docs, see "CSS nodes" */
   spin_context = get_style (NULL, "spinbutton.horizontal:focus");
-  entry_context = get_style (NULL, "entry:focus");
+  entry_context = get_style (spin_context, "entry:focus");
   up_context = get_style (spin_context, "button.up:focus:active");
   down_context = get_style (spin_context, "button.down:focus");
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]