[cairo-commit] goocanvas/demo demo-focus.c,1.1,1.2

Damon Chaplin commit at pdx.freedesktop.org
Sun Apr 23 04:32:11 PDT 2006


Committed by: damon

Update of /cvs/cairo/goocanvas/demo
In directory kemper:/tmp/cvs-serv3936/demo

Modified Files:
	demo-focus.c 
Log Message:
2006-04-23  Damon Chaplin  <damon at gnome.org>

	* src/goocanvasview.c (goo_canvas_view_focus): scroll to show the new
	focused item if necessary.



Index: demo-focus.c
===================================================================
RCS file: /cvs/cairo/goocanvas/demo/demo-focus.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- demo-focus.c	22 Apr 2006 19:17:28 -0000	1.1
+++ demo-focus.c	23 Apr 2006 11:32:08 -0000	1.2
@@ -178,6 +178,55 @@
 			      NULL);
   g_object_set_data (G_OBJECT (item), "id", "grey");
 
+  item = goo_canvas_rect_new (root, 900, 900, 50, 30,
+			      "stroke-pattern", NULL,
+			      "fill-color", "gold",
+			      "line-width", 5.0,
+			      NULL);
+  g_object_set_data (G_OBJECT (item), "id", "gold");
+
+  item = goo_canvas_rect_new (root, 800, 150, 50, 30,
+			      "stroke-pattern", NULL,
+			      "fill-color", "thistle",
+			      "line-width", 5.0,
+			      NULL);
+  g_object_set_data (G_OBJECT (item), "id", "thistle");
+
+  item = goo_canvas_rect_new (root, 600, 800, 50, 30,
+			      "stroke-pattern", NULL,
+			      "fill-color", "azure",
+			      "line-width", 5.0,
+			      NULL);
+  g_object_set_data (G_OBJECT (item), "id", "azure");
+
+  item = goo_canvas_rect_new (root, 700, 250, 50, 30,
+			      "stroke-pattern", NULL,
+			      "fill-color", "moccasin",
+			      "line-width", 5.0,
+			      NULL);
+  g_object_set_data (G_OBJECT (item), "id", "moccasin");
+
+  item = goo_canvas_rect_new (root, 500, 100, 50, 30,
+			      "stroke-pattern", NULL,
+			      "fill-color", "cornsilk",
+			      "line-width", 5.0,
+			      NULL);
+  g_object_set_data (G_OBJECT (item), "id", "cornsilk");
+
+  item = goo_canvas_rect_new (root, 200, 750, 50, 30,
+			      "stroke-pattern", NULL,
+			      "fill-color", "plum",
+			      "line-width", 5.0,
+			      NULL);
+  g_object_set_data (G_OBJECT (item), "id", "plum");
+
+  item = goo_canvas_rect_new (root, 400, 800, 50, 30,
+			      "stroke-pattern", NULL,
+			      "fill-color", "orchid",
+			      "line-width", 5.0,
+			      NULL);
+  g_object_set_data (G_OBJECT (item), "id", "orchid");
+
   return canvas_model;
 }
 



More information about the cairo-commit mailing list