Author: rpmcruz
Date: Thu Jan 8 04:20:06 2009
New Revision: 54457
URL: http://svn.opensuse.org/viewcvs/yast?rev=54457&view=rev
Log:
* src/YGUI.cc: bug fix 461617: return opposite arrow glyph for
Arabic languages.
Modified:
branches/SuSE-Code-11-Branch/gtk/ChangeLog
branches/SuSE-Code-11-Branch/gtk/src/YGUI.cc
Modified: branches/SuSE-Code-11-Branch/gtk/ChangeLog
URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-Branch/gtk/ChangeLog?rev=54457&r1=54456&r2=54457&view=diff
==============================================================================
--- branches/SuSE-Code-11-Branch/gtk/ChangeLog (original)
+++ branches/SuSE-Code-11-Branch/gtk/ChangeLog Thu Jan 8 04:20:06 2009
@@ -1,3 +1,12 @@
+2009-01-08 Ricardo Cruz
+
+ * src/YGUI.cc: bug fix 461617: return opposite arrow glyph for
+ Arabic languages.
+
+2009-01-07 Michael Meeks
+
+ * Version 2.17.9
+
2008-12-23 Ricardo Cruz
* src/YGTable.cc: revert scroll_to_cell parameters.
Modified: branches/SuSE-Code-11-Branch/gtk/src/YGUI.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-Branch/gtk/src/YGUI.cc?rev=54457&r1=54456&r2=54457&view=diff
==============================================================================
--- branches/SuSE-Code-11-Branch/gtk/src/YGUI.cc (original)
+++ branches/SuSE-Code-11-Branch/gtk/src/YGUI.cc Thu Jan 8 04:20:06 2009
@@ -521,10 +521,11 @@
std::string YGApplication::glyph (const std::string &sym)
{
+ bool reverse = gtk_widget_get_default_direction() == GTK_TEXT_DIR_RTL;
if (sym == YUIGlyph_ArrowLeft)
- return "\u2190";
+ return reverse ? "\u2192" : "\u2190";
if (sym == YUIGlyph_ArrowRight)
- return "\u2192";
+ return reverse ? "\u2190" : "\u2192";
if (sym == YUIGlyph_ArrowUp)
return "\u2191";
if (sym == YUIGlyph_ArrowDown)
@@ -532,7 +533,7 @@
if (sym == YUIGlyph_CheckMark)
return "\u2714";
if (sym == YUIGlyph_BulletArrowRight)
- return (gtk_widget_get_default_direction() == GTK_TEXT_DIR_RTL) ? "\u21e6" : "\u279c";
+ return reverse ? "\u21e6" : "\u279c";
if (sym == YUIGlyph_BulletCircle)
return "\u274d";
if (sym == YUIGlyph_BulletSquare)
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org