That is the only way to explicitely set the program name and version. In
a future version, it will probably require doing something like:
import gnome.ui, gnome.whatever # import all gnome components used ...
gnome.init('program-name', 'version')
It is necessary to import gnome.ui before libglade if your interface uses
gnome widgets.
James.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
On Mon, 13 Mar 2000, Mitch Chapman wrote:
> [Using gnome-python 1.0.52, libglade 0.12, and
> gnome-lib 1.0.14 -- admittedly old, but it came with Mandrake 6.1.]
>
> I'm trying to figure out how to get an application's name
> and version to show up in its About dialog.
>
> gnome/__init__.py handles the case where the application is
> run as a command whose name ends in .py[oc]? and appears to
> hardware the application version number to '0.0'.
>
> So far I can see only one way to override these settings:
>
> import gnome
> gnome.app_id = "SomeApp"
> gnome.app_version = "0.3 alpha"
> import gnome.ui
>
> Is there a better way?
>
> Along the same lines, I'm finding it necessary to import
> gnome.ui before importing libglade. Otherwise a segmentation
> fault occurs. Paraphrasing (not in front of the development
> machine just now):
>
> GnomeUI-CRITICAL **: file gnome-app.c: line 206 (gnome_app_new):
> assertion 'appname != NULL' failed.
>
> Is it necessary to explicitly import gnome.ui before importing
> libglade?
>
> --
> Mitch Chapman
> [EMAIL PROTECTED]
> To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
>
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]