[yast-commit] r57001 - in /trunk/storage: libstorage/examples/SaveGraph.cc libstorage/src/Graph.cc libstorage/src/Graph.h storage/src/modules/Storage.ycp
Author: aschnell Date: Tue Apr 28 10:23:06 2009 New Revision: 57001 URL: http://svn.opensuse.org/viewcvs/yast?rev=57001&view=rev Log: - style file would be proper solution Modified: trunk/storage/libstorage/examples/SaveGraph.cc trunk/storage/libstorage/src/Graph.cc trunk/storage/libstorage/src/Graph.h trunk/storage/storage/src/modules/Storage.ycp Modified: trunk/storage/libstorage/examples/SaveGraph.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/libstorage/examples/SaveGraph.cc?rev=57001&r1=57000&r2=57001&view=diff ============================================================================== --- trunk/storage/libstorage/examples/SaveGraph.cc (original) +++ trunk/storage/libstorage/examples/SaveGraph.cc Tue Apr 28 10:23:06 2009 @@ -13,7 +13,7 @@ StorageInterface* s = createStorageInterface(true, false, true); - saveGraph(s, "storage.gv", "Helvetica"); + saveGraph(s, "storage.gv"); destroyStorageInterface(s); Modified: trunk/storage/libstorage/src/Graph.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/libstorage/src/Graph.cc?rev=57001&r1=57000&r2=57001&view=diff ============================================================================== --- trunk/storage/libstorage/src/Graph.cc (original) +++ trunk/storage/libstorage/src/Graph.cc Tue Apr 28 10:23:06 2009 @@ -147,7 +147,7 @@ bool - saveGraph(StorageInterface* s, const string& filename, const string& fontname) + saveGraph(StorageInterface* s, const string& filename) { list<Node> nodes; list<Edge> edges; @@ -382,7 +382,7 @@ out << "digraph storage" << endl; out << "{" << endl; - out << " node [shape=rectangle, style=filled, fontname=" << dotQuote(fontname) << "];" << endl; + out << " node [shape=rectangle, style=filled, fontname=\"DejaVu Sans\"];" << endl; out << endl; for (list<Node>::const_iterator node = nodes.begin(); node != nodes.end(); ++node) Modified: trunk/storage/libstorage/src/Graph.h URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/libstorage/src/Graph.h?rev=57001&r1=57000&r2=57001&view=diff ============================================================================== --- trunk/storage/libstorage/src/Graph.h (original) +++ trunk/storage/libstorage/src/Graph.h Tue Apr 28 10:23:06 2009 @@ -22,10 +22,9 @@ * * @param s StorageInterface * @param filename filename of graph - * @param fontname name of font to use * @return true on successful writing of graph */ - bool saveGraph(StorageInterface* s, const string& filename, const string& fontname); + bool saveGraph(StorageInterface* s, const string& filename); } Modified: trunk/storage/storage/src/modules/Storage.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/modules/Storage.ycp?rev=57001&r1=57000&r2=57001&view=diff ============================================================================== --- trunk/storage/storage/src/modules/Storage.ycp (original) +++ trunk/storage/storage/src/modules/Storage.ycp Tue Apr 28 10:23:06 2009 @@ -5879,8 +5879,7 @@ global boolean SaveGraph(string filename) { - string fontname = "DejaVu Sans"; - boolean ret = LibStorage::saveGraph(sint, filename, fontname); + boolean ret = LibStorage::saveGraph(sint, filename); y2milestone("SaveGraph filename:%1 ret:%2", filename, ret); return ret; } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
aschnell@svn.opensuse.org