r3229 - software/ui/src

Miriam Ruiz baby-guest at alioth.debian.org
Wed Jul 4 09:35:52 UTC 2007


Author: baby-guest
Date: 2007-07-04 09:35:52 +0000 (Wed, 04 Jul 2007)
New Revision: 3229

Modified:
   software/ui/src/pkgbrowser.cpp
Log:
hide the facet and tag names, show only descriptions



Modified: software/ui/src/pkgbrowser.cpp
===================================================================
--- software/ui/src/pkgbrowser.cpp	2007-07-04 09:20:01 UTC (rev 3228)
+++ software/ui/src/pkgbrowser.cpp	2007-07-04 09:35:52 UTC (rev 3229)
@@ -130,19 +130,18 @@
 			}
 			delete [] pkg_txt;
 
-			static int widths[] = { 80, 80, 0 }; // widths for each column
+			static int widths[] = { 150, 0 }; // widths for each column
 			ui->DebTagsBrowser->clear();
 			ui->DebTagsBrowser->showcolsep(1);
 			ui->DebTagsBrowser->column_widths(widths);
-			ui->DebTagsBrowser->add("@B12 at C7@b at .FACET\t at B12@C7 at b@.TAG\t at B12@C7 at b@.DESCRIPTION");
+			ui->DebTagsBrowser->add("@B12 at C7@b at .FACET\t at B12@C7 at b@.TAG");
 
 			set<Tag> tags = ui->engine->debtags().getTagsOfItem((const char *)data);
 			char *tag_txt = new char[512];
 			for (set<Tag>::const_iterator i = tags.begin(); i != tags.end(); ++i)
 			{
-				snprintf(tag_txt, 512, "%s\t%s\t%s",
-					gettext(i->facet().name().c_str()),
-					gettext(i->name().c_str()),
+				snprintf(tag_txt, 512, "%s\t%s",
+					gettext(i->facet().shortDescription().c_str()),
 					gettext(i->shortDescription().c_str())
 				);
 				ui->DebTagsBrowser->add(tag_txt);




More information about the Pkg-games-commits mailing list