Mailinglist Archive: yast-commit (939 mails)

< Previous Next >
[yast-commit] r53343 - in /trunk/gtk: ChangeLog src/yzyppwrapper.cc
  • From: rpmcruz@xxxxxxxxxxxxxxxx
  • Date: Sun, 16 Nov 2008 00:12:46 -0000
  • Message-id: <20081116001247.20D773A2AF@xxxxxxxxxxxxxxxx>
Author: rpmcruz
Date: Sun Nov 16 01:12:46 2008
New Revision: 53343

URL: http://svn.opensuse.org/viewcvs/yast?rev=53343&view=rev
Log:
* src/yzyppwrapper.cc: bug fix: use country suffix of language
code for the flag, not the idiom prefix.

Modified:
trunk/gtk/ChangeLog
trunk/gtk/src/yzyppwrapper.cc

Modified: trunk/gtk/ChangeLog
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/gtk/ChangeLog?rev=53343&r1=53342&r2=53343&view=diff
==============================================================================
--- trunk/gtk/ChangeLog (original)
+++ trunk/gtk/ChangeLog Sun Nov 16 01:12:46 2008
@@ -1,3 +1,8 @@
+2008-11-16 Ricardo Cruz <rpmcruz@xxxxxxxxxxxxxxxxxxx>
+
+ * src/yzyppwrapper.cc: bug fix: use country suffix of language
+ code for the flag, not the idiom prefix.
+
2008-11-14 Ricardo Cruz <rpmcruz@xxxxxxxxxxxxxxxxxxx>

* src/YGDialog.cc: bug fix 442052: clamp window to desktop size.

Modified: trunk/gtk/src/yzyppwrapper.cc
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/yzyppwrapper.cc?rev=53343&r1=53342&r2=53343&view=diff
==============================================================================
--- trunk/gtk/src/yzyppwrapper.cc (original)
+++ trunk/gtk/src/yzyppwrapper.cc Sun Nov 16 01:12:46 2008
@@ -1172,9 +1172,14 @@
hasPath = g_file_test (ICON_PATH, G_FILE_TEST_IS_DIR) ?
1 : 0;
if (hasPath) {
std::string code (m_locale.code());
- std::string::size_type i = code.find ('_', 0);
- if (i != std::string::npos)
- code.erase (i);
+ std::string::size_type i = code.find_last_of ('_');
+ if (i != std::string::npos) {
+ code.erase (0, i+1);
+ // down case country name
+ gchar *str = g_ascii_strdown (code.c_str(), -1);
+ code = str;
+ g_free (str);
+ }
std::string filename (ICON_PATH);
filename += code + "/flag.png";
if (g_file_test (filename.c_str(),
G_FILE_TEST_IS_REGULAR))

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages