[yast-commit] r62246 - /branches/SuSE-Linux-11_3-Branch/gtk/src/pkg/ygtkpkgdetailview.cc

Author: rpmcruz Date: Wed Jul 14 12:57:02 2010 New Revision: 62246 URL: http://svn.opensuse.org/viewcvs/yast?rev=62246&view=rev Log: Trunk. Modified: branches/SuSE-Linux-11_3-Branch/gtk/src/pkg/ygtkpkgdetailview.cc Modified: branches/SuSE-Linux-11_3-Branch/gtk/src/pkg/ygtkpkgdetailview.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Linux-11_3-Branch/gtk/src... ============================================================================== --- branches/SuSE-Linux-11_3-Branch/gtk/src/pkg/ygtkpkgdetailview.cc (original) +++ branches/SuSE-Linux-11_3-Branch/gtk/src/pkg/ygtkpkgdetailview.cc Wed Jul 14 12:57:02 2010 @@ -154,15 +154,15 @@ Ypp::Package pkg (sel); std::string url (pkg.url()); if (!url.empty()) { - str += "<p><b>"; str += _("Web site:"); - str += "</b> <a href=""; str += url; str += "">"; + str += "<p><i>"; str += _("Web site:"); + str += "</i> <a href=""; str += url; str += "">"; str += url; str += "</a></p>"; } if (pkg.isCandidatePatch()) { Ypp::Selectable _patch = pkg.getCandidatePatch(); Ypp::Patch patch (_patch); - str += "<p><b>"; str += _("Patch issued:"); - str += "</b> "; str += _patch.summary(); + str += "<p><i>"; str += _("Patch issued:"); + str += "</i> "; str += _patch.summary(); str += " <b>("; str += Ypp::Patch::prioritySummary (patch.priority()); str += ")</b>"; str += "</p>"; @@ -339,7 +339,7 @@ ZyppPackage zpkg = castZyppPackage (zobj); std::string str; - std::string b ("<b>"), _b ("</b> "), br ("<br/>"); + std::string b ("<i>"), _b ("</i> "), br ("<br/>"); str.reserve (2048); str += b + _("Size:") + _b + zobj->installSize().asString(); str += br + b + _("License:") + _b + zpkg->license(); @@ -718,10 +718,10 @@ col = ygtk_rich_text_new(); gtk_widget_set_size_request (col, 100, -1); ygtk_rich_text_set_text (YGTK_RICH_TEXT (col), - ("<b>" + col1 + "</b>").c_str()); + ("<i>" + col1 + "</i>").c_str()); gtk_box_pack_start (GTK_BOX (hbox), col, FALSE, 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), col2.c_str()); if (dep == 0) g_signal_connect (G_OBJECT (col), "link-clicked", @@ -731,7 +731,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", @@ -759,7 +759,9 @@ clear(); std::string installed_str (_("<b>Installed Version</b>")); - std::string candidate_str (_("<b>Available Version</b>")); + std::string candidate_str (_("<b>Candidate Version</b>")); + installed_str = "<i>" + installed_str + "</i>"; + candidate_str = "<i>" + candidate_str + "</i>"; if (sel.hasInstalledVersion()) installed_str += "<br>" + sel.installed().number(); if (sel.hasCandidateVersion()) @@ -1026,7 +1028,7 @@ YGUtils::replace (changes, "\n", 1, "<br>"); if (author.compare (0, 2, "- ", 2) == 0) // zypp returns a lot of author strings as author.erase (0, 2); // "- author". wtf? - text += date + " (" + author + "):<br><blockquote>" + changes + "</blockquote>"; + text += "<i>" + date + " (" + author + "):</i><br><blockquote>" + changes + "</blockquote>"; } } return text; @@ -1050,7 +1052,7 @@ Ypp::Selectable sel = list.get (0); std::string str (authors (sel)); if (str.empty()) - ygtk_rich_text_set_text (YGTK_RICH_TEXT (text), _("<i>Not specified.</i>")); + ygtk_rich_text_set_text (YGTK_RICH_TEXT (text), _("<i>Unspecified attribute.</i>")); else ygtk_rich_text_set_text (YGTK_RICH_TEXT (text), str.c_str()); } @@ -1102,9 +1104,10 @@ } if (!authors.empty()) { - text = _("Developed by:") + ("<blockquote>" + authors) + "</blockquote>"; + text = "<i>"; text += _("Developed by:"); text += "</i>"; + text += ("<blockquote>" + authors) + "</blockquote>"; if (!packager.empty() || !vendor.empty()) { - text += _("Packaged by:"); + text += "<i>"; text += _("Packaged by:"); text += "</i>"; text += "<blockquote>"; if (!packager.empty()) text += packager + " "; if (!vendor.empty()) text += "(" + vendor + ")"; -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
rpmcruz@svn.opensuse.org