Help for widget UI conversion

Caolán McNamara caolanm at redhat.com
Wed Jun 26 09:05:20 PDT 2013


On Wed, 2013-06-26 at 16:36 +0200, Jan Holesovsky wrote:
> Hi Manal,
> 
> Manal M. Alhassoun píše v St 26. 06. 2013 v 11:30 +0000:
> 
> > I'm trying to convert FontTypeDialog into .ui format
> > However, I get the following error: 
> > warn:vcl.layout:14483:1:include/vcl/builder.hxx:255: .ui widget
> > "variableCB" needs to correspond to vcl type 17SmFontPickListBox
> > 
> > what type of GTK should I use ? or How I can fix this error ?
> 
> This SmFontPickListBox has to be treated as a custom widget.  Please see
> 
> https://wiki.documentfoundation.org/Development/WidgetLayout#Custom_Widgets
> 
> how to enable it for .ui.  You can see an example of such a conversion
> here:
> 
> http://cgit.freedesktop.org/libreoffice/core/commit/?id=07b0ad4fa63e2a5606587370da4b60e6b1dd

kendy, there's a little bug in those examples in the sense that the
second argument, the editable map of widget properties, is missing.
It'll work alright without it, but best to have that in there too.

C.



More information about the LibreOffice mailing list