From b0e2254f4f5242735637cd2c4ff2a0dee191d4ba Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 18 Sep 2008 13:32:29 +0000 Subject: (text_direction_rtl) introduce it: when using Gtk+ GUI, it's just safer to rely on Gtk+ idea of direction than on our own DB --- perl-install/mygtk2.pm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'perl-install') diff --git a/perl-install/mygtk2.pm b/perl-install/mygtk2.pm index 9702c0ec1..12eacbd61 100644 --- a/perl-install/mygtk2.pm +++ b/perl-install/mygtk2.pm @@ -1341,4 +1341,9 @@ sub pixmap_from_pixbuf { $pixmap; } +sub text_direction_rtl() { + Gtk2::Widget->get_default_direction() eq 'rtl'; +} + + 1; -- cgit v1.2.1