Author: rpmcruz
Date: Mon Jul 12 15:27:33 2010
New Revision: 62223
URL: http://svn.opensuse.org/viewcvs/yast?rev=62223&view=rev
Log:
* src/pkg/ygtkpkgdetailview.cc: as suggested by Atri,
to address bug 620513's usability complaint, replaced
the usage og bold fonts within the details box by
italic ones.
Modified:
trunk/gtk/ChangeLog
trunk/gtk/src/pkg/ygtkpkgdetailview.cc
Modified: trunk/gtk/ChangeLog
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/ChangeLog?rev=62223&r1=62222&r2=62223&view=diff
==============================================================================
--- trunk/gtk/ChangeLog (original)
+++ trunk/gtk/ChangeLog Mon Jul 12 15:27:33 2010
@@ -1,3 +1,10 @@
+2010-07-12 Ricardo Cruz
+
+ * src/pkg/ygtkpkgdetailview.cc: as suggested by Atri,
+ to address bug 620513's usability complaint, replaced
+ the usage og bold fonts within the details box by
+ italic ones.
+
2010-07-10 Ricardo Cruz
* src/pkg/ygtkpkgdetailview.cc & src/ygtkrichtext.c:
Modified: trunk/gtk/src/pkg/ygtkpkgdetailview.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/pkg/ygtkpkgdetailview.cc?rev=62223&r1=62222&r2=62223&view=diff
==============================================================================
--- trunk/gtk/src/pkg/ygtkpkgdetailview.cc (original)
+++ trunk/gtk/src/pkg/ygtkpkgdetailview.cc Mon Jul 12 15:27:33 2010
@@ -339,16 +339,16 @@
ZyppPackage zpkg = castZyppPackage (zobj);
std::string str;
- std::string b ("<b>"), _b ("</b> "), br ("<br/>");
+ std::string b (""), _b (" "), i ("<i>"), _i("</i>"), br ("<br/>");
str.reserve (2048);
- str += b + _("Size:") + _b + zobj->installSize().asString();
- str += br + b + _("License:") + _b + zpkg->license();
+ str += b + _("Size:") + _b + i + zobj->installSize().asString() + _i;
+ str += br + b + _("License:") + _b + i + zpkg->license() + _i;
if (zsel->hasInstalledObj())
- str += br + b + ("Installed at:") + _b +
- zsel->installedObj()->installtime().form ("%x");
+ str += br + b + ("Installed at:") + _b + i +
+ zsel->installedObj()->installtime().form ("%x") + _i;
if (zsel->hasCandidateObj())
- str += br + b + ("Latest build:") + _b +
- zsel->candidateObj()->buildtime().form ("%x");
+ str += br + b + ("Latest build:") + _b + i +
+ zsel->candidateObj()->buildtime().form ("%x") + _i;
ygtk_rich_text_set_text (YGTK_RICH_TEXT (text), str.c_str());
}
@@ -720,8 +720,10 @@
ygtk_rich_text_set_text (YGTK_RICH_TEXT (col),
("<b>" + col1 + "</b>").c_str());
gtk_box_pack_start (GTK_BOX (hbox), col, FALSE, TRUE, 0);
+ // by settings both the two following "col" text widgets with the same
+ // fixed width, and expanded=True, we ensure all rows have the same size
col = ygtk_rich_text_new();
- gtk_widget_set_size_request (col, 1, -1);
+ gtk_widget_set_size_request (col, 80, -1);
ygtk_rich_text_set_text (YGTK_RICH_TEXT (col), col2.c_str());
if (dep == 0)
g_signal_connect (G_OBJECT (col), "link-clicked",
@@ -731,7 +733,7 @@
G_CALLBACK (provides_link_cb), NULL);
gtk_box_pack_start (GTK_BOX (hbox), col, TRUE, TRUE, 0);
col = ygtk_rich_text_new();
- gtk_widget_set_size_request (col, 1, -1);
+ gtk_widget_set_size_request (col, 80, -1);
ygtk_rich_text_set_text (YGTK_RICH_TEXT (col), col3.c_str());
if (dep == 0)
g_signal_connect (G_OBJECT (col), "link-clicked",
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org