anjuta r4885 - in trunk: . plugins/class-inheritance plugins/profiler



Author: mcora
Date: Sat Mar 21 11:45:23 2009
New Revision: 4885
URL: http://svn.gnome.org/viewvc/anjuta?rev=4885&view=rev

Log:
	* plugins/class-inheritance/class-inherit.c
	(cls_inherit_draw_graph):
	* plugins/profiler/gprof-function-call-chart-view.c
	(async_draw_graph):
	fixed #576057 â doesn't build with graphviz 2.22.2

Modified:
   trunk/ChangeLog
   trunk/plugins/class-inheritance/class-inherit.c
   trunk/plugins/profiler/gprof-function-call-chart-view.c

Modified: trunk/plugins/class-inheritance/class-inherit.c
==============================================================================
--- trunk/plugins/class-inheritance/class-inherit.c	(original)
+++ trunk/plugins/class-inheritance/class-inherit.c	Sat Mar 21 11:45:23 2009
@@ -815,9 +815,18 @@
 		gdouble node_width;
 		gdouble node_height;
 		point node_pos;
+#ifndef ND_coord_i
+		pointf node_posf;
+#endif
 		
 		/* get some infos from the node */
+#ifdef ND_coord_i
 		node_pos = ND_coord_i(graph_node);
+#else
+		node_posf = ND_coord(graph_node);
+		PF2P(node_posf,node_pos);
+#endif
+		
 		node_width = ND_width (graph_node);
 		node_height = ND_height (graph_node);
 

Modified: trunk/plugins/profiler/gprof-function-call-chart-view.c
==============================================================================
--- trunk/plugins/profiler/gprof-function-call-chart-view.c	(original)
+++ trunk/plugins/profiler/gprof-function-call-chart-view.c	Sat Mar 21 11:45:23 2009
@@ -530,6 +530,9 @@
 	Agedge_t *current_edge;
 	Agraph_t *current_graph;
 	point node_pos;
+#ifndef ND_coord_i	
+	pointf node_posf;
+#endif	
 	gdouble node_width;
 	gdouble node_height;
 	
@@ -541,7 +544,13 @@
 		
 		if (self->priv->current_node)
 		{
+#ifdef ND_coord_i			
 			node_pos = ND_coord_i (self->priv->current_node);
+#else
+			node_posf = ND_coord (self->priv->current_node);
+			PF2P(node_posf,node_pos);
+#endif			
+			
 			node_pos.y += self->priv->y_offset;
 			node_width = ND_width (self->priv->current_node);
 			node_height = ND_height (self->priv->current_node);



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