[anjuta] foocanvas, class-inheritance: Set width and aa by default
- From: Naba Kumar <naba src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] foocanvas, class-inheritance: Set width and aa by default
- Date: Sun, 16 May 2010 08:44:17 +0000 (UTC)
commit 30d4a4eaa79db5830d80d079270977166b31a78a
Author: Naba Kumar <naba gnome org>
Date: Sun May 16 11:43:38 2010 +0300
foocanvas, class-inheritance: Set width and aa by default
libfoocanvas/foo-canvas-line.c | 4 ++--
libfoocanvas/foo-canvas-polygon.c | 4 ++--
libfoocanvas/foo-canvas-rect-ellipse.c | 4 ++--
plugins/class-inheritance/class-callbacks.c | 2 --
plugins/class-inheritance/class-inherit.c | 9 ---------
5 files changed, 6 insertions(+), 17 deletions(-)
---
diff --git a/libfoocanvas/foo-canvas-line.c b/libfoocanvas/foo-canvas-line.c
index 34cddf0..6ad416e 100644
--- a/libfoocanvas/foo-canvas-line.c
+++ b/libfoocanvas/foo-canvas-line.c
@@ -247,14 +247,14 @@ foo_canvas_line_class_init (FooCanvasLineClass *klass)
static void
foo_canvas_line_init (FooCanvasLine *line)
{
- line->width = 0.0;
+ line->width = 1.0;
line->cap = GDK_CAP_BUTT;
line->join = GDK_JOIN_MITER;
line->line_style = GDK_LINE_SOLID;
line->shape_a = 0.0;
line->shape_b = 0.0;
line->shape_c = 0.0;
- line->aa = FALSE;
+ line->aa = TRUE;
line->smooth = FALSE;
}
diff --git a/libfoocanvas/foo-canvas-polygon.c b/libfoocanvas/foo-canvas-polygon.c
index 6833e20..0e604b5 100644
--- a/libfoocanvas/foo-canvas-polygon.c
+++ b/libfoocanvas/foo-canvas-polygon.c
@@ -199,8 +199,8 @@ foo_canvas_polygon_class_init (FooCanvasPolygonClass *klass)
static void
foo_canvas_polygon_init (FooCanvasPolygon *poly)
{
- poly->width = 0.0;
- poly->aa = FALSE;
+ poly->width = 1.0;
+ poly->aa = TRUE;
}
static void
diff --git a/libfoocanvas/foo-canvas-rect-ellipse.c b/libfoocanvas/foo-canvas-rect-ellipse.c
index c6a154a..11a03ac 100644
--- a/libfoocanvas/foo-canvas-rect-ellipse.c
+++ b/libfoocanvas/foo-canvas-rect-ellipse.c
@@ -246,8 +246,8 @@ foo_canvas_re_init (FooCanvasRE *re)
re->y1 = 0.0;
re->x2 = 0.0;
re->y2 = 0.0;
- re->width = 0.0;
- re->aa = FALSE;
+ re->width = 1.0;
+ re->aa = TRUE;
}
static void
diff --git a/plugins/class-inheritance/class-callbacks.c b/plugins/class-inheritance/class-callbacks.c
index da9f6ee..2f8eb9c 100644
--- a/plugins/class-inheritance/class-callbacks.c
+++ b/plugins/class-inheritance/class-callbacks.c
@@ -171,8 +171,6 @@ create_class_item_tooltip (ClsNode *cls_node, const gchar *tooltip_text)
&cls_node->plugin->style[STYLE_ITEM_BG],
"outline_color_gdk",
&cls_node->plugin->style[STYLE_FG],
- "aa", TRUE,
- "width_units", 1.0,
NULL);
/* shadow */
canvas_item =
diff --git a/plugins/class-inheritance/class-inherit.c b/plugins/class-inheritance/class-inherit.c
index e014fb8..e9e12e6 100644
--- a/plugins/class-inheritance/class-inherit.c
+++ b/plugins/class-inheritance/class-inherit.c
@@ -96,7 +96,6 @@ create_canvas_arrow_item (FooCanvasGroup *canvas_group,
foo_canvas_polygon_get_type (),
"points", triangle,
"fill_color_gdk", fill_color,
- "aa", TRUE,
NULL);
foo_canvas_points_unref (triangle);
return item;
@@ -121,8 +120,6 @@ create_canvas_line_item (FooCanvasGroup *canvas_group, GdkColor *fill_color,
"points", points,
"fill_color_gdk",
fill_color,
- "width_units", 1.0,
- "aa", TRUE,
NULL);
foo_canvas_points_unref (points);
return item;
@@ -709,8 +706,6 @@ cls_node_draw_expanded (ClsNode *cls_node)
"y2", (gdouble) cls_node->height,
"outline_color_gdk",
&cls_node->plugin->style[STYLE_FG],
- "width_units", 1.0,
- "aa", TRUE,
NULL);
}
@@ -748,8 +743,6 @@ cls_node_draw_collapsed (ClsNode *cls_node)
&cls_node->plugin->style[STYLE_BG],
"outline_color_gdk",
&cls_node->plugin->style[STYLE_FG],
- "width_units", 1.0,
- "aa", TRUE,
NULL);
g_signal_connect (GTK_OBJECT (item), "event",
G_CALLBACK (on_collapsed_class_event),
@@ -849,7 +842,6 @@ cls_node_draw_edge (ClsNode *cls_node_to, ClsNodeEdge *cls_edge, ClsNode *cls_no
foo_canvas_item_new (foo_canvas_root
(FOO_CANVAS (cls_node_from->canvas)),
foo_canvas_line_get_type(),
- "aa", TRUE,
"smooth", TRUE,
"last_arrowhead", TRUE,
"arrow_shape_a", (gdouble) 8.0,
@@ -857,7 +849,6 @@ cls_node_draw_edge (ClsNode *cls_node_to, ClsNodeEdge *cls_edge, ClsNode *cls_no
"arrow_shape_c", (gdouble) 3.0,
"fill_color_gdk",
&cls_node_from->plugin->style[STYLE_FG],
- "width_units", 1.0,
"points", points,
NULL);
foo_canvas_item_lower_to_bottom (cls_edge->canvas_line);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]