[gtk+] spin entry should be a child of spin context



commit ce36ac93f4eb9be09c85f248cc5c60affb986777
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 11b8b44..005eb19 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]