summaryrefslogtreecommitdiffstats
path: root/perl-install/mygtk2.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-09-18 13:32:29 +0000
committerThierry Vignaud <tv@mandriva.org>2008-09-18 13:32:29 +0000
commitb0e2254f4f5242735637cd2c4ff2a0dee191d4ba (patch)
treef6b57a1e1403aa731a7fe1a166538cdc479882cb /perl-install/mygtk2.pm
parent164287bfbf509b02625b962fcf14156fc319ef09 (diff)
downloaddrakx-b0e2254f4f5242735637cd2c4ff2a0dee191d4ba.tar
drakx-b0e2254f4f5242735637cd2c4ff2a0dee191d4ba.tar.gz
drakx-b0e2254f4f5242735637cd2c4ff2a0dee191d4ba.tar.bz2
drakx-b0e2254f4f5242735637cd2c4ff2a0dee191d4ba.tar.xz
drakx-b0e2254f4f5242735637cd2c4ff2a0dee191d4ba.zip
(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
Diffstat (limited to 'perl-install/mygtk2.pm')
-rw-r--r--perl-install/mygtk2.pm5
1 files changed, 5 insertions, 0 deletions
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;