Mailinglist Archive: yast-commit (819 mails)

< Previous Next >
[yast-commit] r54456 - in /trunk/gtk: ChangeLog src/YGUI.cc
  • From: rpmcruz@xxxxxxxxxxxxxxxx
  • Date: Thu, 08 Jan 2009 03:19:35 -0000
  • Message-id: <E1LKlQl-0005Ly-VK@xxxxxxxxxxxxxxxx>
Author: rpmcruz
Date: Thu Jan 8 04:19:35 2009
New Revision: 54456

URL: http://svn.opensuse.org/viewcvs/yast?rev=54456&view=rev
Log:
* src/YGUI.cc: bug fix 461617: return opposite arrow glyph for
Arabic languages.

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

Modified: trunk/gtk/ChangeLog
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/gtk/ChangeLog?rev=54456&r1=54455&r2=54456&view=diff
==============================================================================
--- trunk/gtk/ChangeLog (original)
+++ trunk/gtk/ChangeLog Thu Jan 8 04:19:35 2009
@@ -1,3 +1,8 @@
+2009-01-08 Ricardo Cruz <rpmcruz@xxxxxxxxxxxxxxxxxxx>
+
+ * src/YGUI.cc: bug fix 461617: return opposite arrow glyph for
+ Arabic languages.
+
2009-01-07 Michael Meeks <michael.meeks@xxxxxxxxxx>

* Version 2.17.9

Modified: trunk/gtk/src/YGUI.cc
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/YGUI.cc?rev=54456&r1=54455&r2=54456&view=diff
==============================================================================
--- trunk/gtk/src/YGUI.cc (original)
+++ trunk/gtk/src/YGUI.cc Thu Jan 8 04:19:35 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@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages