[PATCH] RTL/LTR buttons direction

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,
Sorry I was busy last days, this patch will fix the problem ... it is a small hack that I use to fix the RTL/LTR buttons direction in anaconda, I have another one for firstboot (I have more I will post them soon):

diff -Naur anaconda-10.0.1/gui.py anaconda-10.0.1-new/gui.py
--- anaconda-10.0.1/gui.py      2004-06-21 21:51:17.000000000 +0300
+++ anaconda-10.0.1-new/gui.py  2004-08-01 08:04:33.705498976 +0300
@@ -741,6 +741,21 @@
       self.updateStockButtons()
       self.loadReleaseNotes()
        self.refreshHelp(recreate = 1)
+        self.chkRtLButtons()
+
+    def chkRtLButtons(self):
+        ltrrtl = gettext.dgettext("gtk20", "default:LTR")
+        if ltrrtl == "default:RTL":
+            self.buttonBox.remove (self.nextButtonStock)
+            self.buttonBox.remove (self.prevButtonStock)
+            self.buttonBox.add (self.nextButtonStock)
+            self.buttonBox.add (self.prevButtonStock)
+        else:
+            self.buttonBox.remove (self.prevButtonStock)
+            self.buttonBox.remove (self.nextButtonStock)
+            self.buttonBox.add (self.prevButtonStock)
+            self.buttonBox.add (self.nextButtonStock)
+

    def setLtR(self):
        ltrrtl = gettext.dgettext("gtk20", "default:LTR")
@@ -1350,6 +1365,7 @@

        self.buttonBox.add (self.prevButtonStock)
        self.buttonBox.add (self.nextButtonStock)
+        self.chkRtLButtons()

       self.hbox = gtk.HBox ()
        self.hbox.set_border_width(5)



[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux