On Fri, Oct 8, 2010 at 5:16 PM, Enlightenment SVN <no-re...@enlightenment.org> wrote: > Log: > Add Object name in dot dump > > Now can generate graphs like this: > https://trac.profusion.mobi/~tiago/editje_elm_dump.png > > Call elm_object_tree_dot_dump(obj, "file.dot") > and use $ dot -Tpng file.dot -ofile.png > Author: tiago > Date: 2010-10-08 13:16:48 -0700 (Fri, 08 Oct 2010) > New Revision: 53205 > > Modified: > trunk/TMP/st/elementary/src/lib/elm_widget.c > > Modified: trunk/TMP/st/elementary/src/lib/elm_widget.c > =================================================================== > --- trunk/TMP/st/elementary/src/lib/elm_widget.c 2010-10-08 20:14:21 > UTC (rev 53204) > +++ trunk/TMP/st/elementary/src/lib/elm_widget.c 2010-10-08 20:16:48 > UTC (rev 53205) > @@ -2361,8 +2361,9 @@ > fprintf(output, " ];\n"); > } > > - fprintf(output, "\"%p\" [ label = \"{%p|%s|visible: %d|disabled: > %d|focused: %d}\"", > - obj, obj, sd->type, visible,disabled,focused); > + fprintf(output, "\"%p\" [ label = \"{%p|%s|%s|visible: %d|" > + "disabled: %d|focused: %d}\"", obj, obj, sd->type, > + evas_object_name_get(obj), visible,disabled,focused); >
You probably want to check if name_get() is not NULL, not every implementation of printf out there likes to be passed a NULL pointer. > if (focused) > fprintf(output, ", style=bold"); > > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today. > http://p.sf.net/sfu/beautyoftheweb > _______________________________________________ > enlightenment-svn mailing list > enlightenment-...@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/enlightenment-svn > ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel