Skip to content
This repository has been archived by the owner on Nov 29, 2022. It is now read-only.

Commit

Permalink
Fixed RTL language layout
Browse files Browse the repository at this point in the history
An old syntax thats is not supported by PyGObject was used to set default text direction as RTL in RTL language.
Updated based on the current docs for PyGObject 
found here https://lazka.github.io/pgi-docs/#Gtk-3.0/classes/Widget.html#Gtk.Widget.set_direction
Tested on archlinux.

fixes issue #135
  • Loading branch information
jNullj committed Mar 29, 2021
1 parent 9b85832 commit da44517
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mcomix/mcomix/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def run():

# Some languages require a RTL layout
if preferences.prefs['language'] in ('he', 'fa'):
Gtk.widget_set_default_direction(Gtk.TextDirection.RTL)
Gtk.Widget.set_default_direction(Gtk.TextDirection.RTL)

Gdk.set_program_class(constants.APPNAME)

Expand Down

0 comments on commit da44517

Please sign in to comment.