genesis-devs team mailing list archive
-
genesis-devs team
-
Mailing list archive
-
Message #00004
Re: gtk.Builder migration
Hi!
2009/11/7 Frederik Elwert <frederik.elwert@xxxxxx>:
> * GTK yields a RuntimeWarning because the settings dialog and the
> server assistant are in the same ui file, but only signals for
> one are connected at a time. Glade allowed to load only one
> top-level widget from a glade file, but I think Builder always
> loads all. So should we split the two widgets in separate ui
> files, or just ignore the warning?
You're right. I don't remember where I read it, but it was advised to
use only one top-level widget per file. For example take a look in MS
sources, there are as many .ui files as top-level widgets. If you
want, take for example the preferences_dialog.ui from MS and change
the preference strings... I was careful with Gnome UI advices like
element spacing and so.
> * intltool-extract seems to have issues with ui files instead of
> glade files. This is why update-translations.sh currently fails.
Mmmm, I don't remember to have problems with this at all, I extracted
the strings with the command: intltool-extract --type="gettext/glade"
*.ui, and then xgettext... etc. If you want, I could take a look on
this.
Happy hacking!!! :-)
Follow ups
References