[goffice] minor enchancement in shape-demo.



commit 5295f54c835975941bc057e8d2968ca888bc81b8
Author: Jean Brefort <jean brefort normalesup org>
Date:   Sun Mar 7 06:48:39 2010 +0100

    minor enchancement in shape-demo.

 ChangeLog           |    6 ++++++
 tests/shapes-demo.c |    6 ++----
 2 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index abc7d7d..7630a2f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-03-07  Jean Brefort  <jean brefort normalesup org>
+
+	reviewed by: <delete if not using a buddy>
+
+	* tests/shapes-demo.c (parse_line):
+
 2010-03-06  Valek Filippov  <frob gnome org>
 
 	* goffice/canvas/goc-rectangle.c (goc_rectangle_set_property),
diff --git a/tests/shapes-demo.c b/tests/shapes-demo.c
index f1085fa..9dfaad0 100644
--- a/tests/shapes-demo.c
+++ b/tests/shapes-demo.c
@@ -228,8 +228,7 @@ parse_line (GocCanvas *canvas, gchar *entry)
 			} else if (g_strv_length(v) > 6) {
 				style->line.color = GO_COLOR_FROM_RGBA (atoi (v[3]), atoi (v[4]), atoi (v[5]), atoi (v[6]));
 			}
-			goc_item_bounds_changed (item);
-			goc_item_invalidate (item);
+			go_styled_object_style_changed (GO_STYLED_OBJECT (item));
 		}
 		break;
 	case 21: /* FILL */
@@ -243,8 +242,7 @@ parse_line (GocCanvas *canvas, gchar *entry)
 				style->fill.type = GO_STYLE_FILL_PATTERN;
 				style-> fill.pattern.back = GO_COLOR_FROM_RGBA (atoi (v[2]), atoi (v[3]), atoi (v[4]), atoi (v[5]));
 			}
-			goc_item_bounds_changed (item);
-			goc_item_invalidate (item);
+			go_styled_object_style_changed (GO_STYLED_OBJECT (item));
 		}
 		break;
 	case 22: /* ARROW */



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