Mirroring gtk buttons

Khaled Hosny khaledhosny at eglug.org
Mon Jul 29 19:28:23 PDT 2013


On Wed, Mar 06, 2013 at 04:50:43PM +0000, 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 LibreOffice UI, that would be a solution.
> 
> See SalGtkPicker::setGtkLanguage vcl/unx/gtk/fpicker/SalGtkPicker.cxx
> Using LANGUAGE should get gettext to do the right thing without busting
> any of the "normal" locale settings for us.
> 
> First thing to try would be to move that code out of there and get it
> called before any gtk widgetery gets going. Try moving it into
> GtkData::Init before that "gtk_set_locale" call and see it that
> works/helps/does anything.

So I got fed up and tried this. Setting LANGUAGE in GtkData::Init()
indeed fixes the issue, but calling Application::GetSettings() there
throws a DeploymentException, apparently that code is executed too
early, before InitVCL() is called.

Regards,
Khaled
-------------- next part --------------
A non-text attachment was scrubbed...
Name: locale.diff
Type: text/x-diff
Size: 608 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20130730/ad86c692/attachment.diff>


More information about the LibreOffice mailing list