Re: [PUSHED] Mirroring gtk buttons

2013-08-30 Thread Caolán McNamara
On Fri, 2013-08-30 at 05:41 +0200, Khaled Hosny wrote: > Seems to work fine :), even file a print dialogs now have the proper > direction Ah yes, I forgot the old hack that this new hack was based on, so I pushed this stuff now and removed the old file dialog hack which shouldn't be needed anymore

Re: Mirroring gtk buttons

2013-08-29 Thread Khaled Hosny
On Thu, Aug 29, 2013 at 05:41:39PM +0100, Caolán McNamara wrote: > On Fri, 2013-08-16 at 18:41 +0200, Khaled Hosny wrote: > > On Fri, Aug 16, 2013 at 03:44:12PM +0100, Caolán McNamara wrote: > > > On Tue, 2013-07-30 at 04:28 +0200, Khaled Hosny wrote: > > > > So I got fed up and tried this. Setting

Re: Mirroring gtk buttons

2013-08-29 Thread Caolán McNamara
On Fri, 2013-08-16 at 18:41 +0200, Khaled Hosny wrote: > On Fri, Aug 16, 2013 at 03:44:12PM +0100, Caolán McNamara wrote: > > On Tue, 2013-07-30 at 04:28 +0200, Khaled Hosny wrote: > > > So I got fed up and tried this. Setting LANGUAGE in GtkData::Init() > > > indeed fixes the issue, but calling Ap

Re: Mirroring gtk buttons

2013-07-30 Thread Khaled Hosny
On Wed, Mar 06, 2013 at 04:50:43PM +, Caolán McNamara wrote: > On Wed, 2013-03-06 at 17:52 +0200, Khaled Hosny wrote: > > The default direction of GTK widgets is locale dependant; it is set by a > > string in GTK's gettext catalogue, so if we can somehow trick GTK to use > > the same locale as

Re: Mirroring gtk buttons

2013-03-06 Thread Caolán McNamara
On Wed, 2013-03-06 at 17:52 +0200, Khaled Hosny wrote: > The default direction of GTK widgets is locale dependant; it is set by a > string in GTK's gettext catalogue, so if we can somehow trick GTK to use > the same locale as LibreOffice UI, that would be a solution. See SalGtkPicker::setGtkLangua

Re: Mirroring gtk buttons

2013-03-06 Thread Khaled Hosny
On Wed, Mar 06, 2013 at 12:05:23PM +, Michael Meeks wrote: > > On Wed, 2013-03-06 at 11:38 +, Issa Alkurtass wrote: > > Something like that yes, but this function is only concerned with text > > direction and ordering of items, not "graphical orientation." We need > > something that flips

Re: Mirroring gtk buttons

2013-03-06 Thread Khaled Hosny
On Wed, Mar 06, 2013 at 11:38:14AM +, Issa Alkurtass wrote: > Michael Meeks wrote on March 06, 2013 2:13 PM: > >Urk - so - then I guess it is a matter of persuading each of our > >captive gtk2 widgets to have the right RTL setting via: > > > > void gtk_widget_set_direction (GtkWidget

RE: Mirroring gtk buttons

2013-03-06 Thread Michael Meeks
On Wed, 2013-03-06 at 11:38 +, Issa Alkurtass wrote: > Something like that yes, but this function is only concerned with text > direction and ordering of items, not "graphical orientation." We need > something that flips or mirrors the widgets. Well - I'd have a read around inside the

RE: Mirroring gtk buttons

2013-03-06 Thread Issa Alkurtass
Michael Meeks wrote on March 06, 2013 2:13 PM: >Urk - so - then I guess it is a matter of persuading each of our >captive gtk2 widgets to have the right RTL setting via: > > void gtk_widget_set_direction (GtkWidget*widget, > GtkTextDirection dir);

RE: Mirroring gtk buttons

2013-03-06 Thread Michael Meeks
On Wed, 2013-03-06 at 10:57 +, Issa Alkurtass wrote: > Khaled Hosny wrote on March 06, 2013 11:37 AM: > >You probably have LibreOffice and GTK using two different locales (e.g. > >LibreOffice is set to a right-to-left while the system locale is set to > >a left-to-right language). > > True, m

RE: Mirroring gtk buttons

2013-03-06 Thread Issa Alkurtass
Khaled Hosny wrote on March 06, 2013 11:37 AM: >You probably have LibreOffice and GTK using two different locales (e.g. >LibreOffice is set to a right-to-left while the system locale is set to >a left-to-right language). True, my system is LTR while LibreOffice is RTL. But this isn't the expected

Mirroring gtk buttons

2013-03-06 Thread Issa Alkurtass
Hello world, Any idea how to mirror gtk buttons in vcl? I need to mirror the combo box buttons in vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx for the RTL interface. (screenshot: http://i.imgur.com/XAnvum8.png) ___ Regards, Issa Alkurtass Motah Program, KACST Warning: This messag

Re: Mirroring gtk buttons

2013-03-06 Thread Khaled Hosny
On Wed, Mar 06, 2013 at 05:45:57AM +, Issa Alkurtass wrote: > Hello world, > > Any idea how to mirror gtk buttons in vcl? I need to mirror the combo > box buttons in vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx for the RTL > interface. (screenshot: http://i.imgur.com/XAnvum8.png) I thought this