[goocanvas] Fixed drawing of widgets on the grab demo page



commit 64ac49a0c032324d28e6aaf6776aebe0b1ad6fa7
Author: Damon Chaplin <damon gnome org>
Date:   Fri Sep 27 22:48:04 2013 +0100

    Fixed drawing of widgets on the grab demo page

 ChangeLog         |   14 ++++++++++++++
 demo/demo-grabs.c |    7 +++++++
 2 files changed, 21 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index c62bce5..f217106 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,17 @@
+2013-09-27  Damon Chaplin  <damon gnome org>
+
+       * demo/demo-grabs.c (on_widget_draw): draw simple rects for the widgets
+       as the old code using gtk_paint_box() doesn't seem to work any more.
+
+2013-09-27  Damon Chaplin  <damon gnome org>
+
+       * src/goocanvasutils.c: added introspection flags, so it now seems to
+       work OK with python at least.
+
+       * bindings/python/demo.py (setup_canvas): added line dash to a path.
+
+       * demo/demo.c (setup_rectangles): added line dash to one rect.
+
 2013-09-24  Damon Chaplin  <damon gnome org>
 
        * src/goocanvasitem.c: 
diff --git a/demo/demo-grabs.c b/demo/demo-grabs.c
index d09d23a..d645266 100644
--- a/demo/demo-grabs.c
+++ b/demo/demo-grabs.c
@@ -13,9 +13,16 @@ on_widget_draw (GtkWidget *widget,
   g_print ("%s received 'draw' signal\n", item_id);
 
   gtk_widget_get_allocation (widget, &allocation);
+
+  cairo_rectangle (cr, 0, 0,
+                  allocation.width, allocation.height);
+  cairo_stroke (cr);
+
+#if 0
   gtk_paint_box (gtk_widget_get_style (widget), cr, GTK_STATE_NORMAL,
                 GTK_SHADOW_IN, widget, NULL, 0, 0,
                 allocation.width, allocation.height);
+#endif
 
   return FALSE;
 }


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