Mailinglist Archive: yast-commit (819 mails)

< Previous Next >
[yast-commit] r54457 - in /branches/SuSE-Code-11-Branch/gtk: ChangeLog src/YGUI.cc
  • From: rpmcruz@xxxxxxxxxxxxxxxx
  • Date: Thu, 08 Jan 2009 03:20:06 -0000
  • Message-id: <E1LKlRH-0005Mh-0R@xxxxxxxxxxxxxxxx>
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 <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
+
2008-12-23 Ricardo Cruz <rpmcruz@xxxxxxxxxxxxxxxxxxx>

* 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@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages