Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.

#1 March 26, 2008 04:23:35

Ian P.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

GTK size and locale


Hi,



In packaging up my app into a Setup program for Windows, I follow the
recommended norm and include the GTK libraries etc, with the setup, having
it give an option for whether or not to install GTK (which it puts into a
local directory where the app is installed). Well I noticed that after
upgrading from an earlier version of GTK (I forget which but probably
2.8ish) the setup.exe program has grown from 5Mbytes to 12Mbytes.



So after a bit of hacking around I found that the bulk of the size is in the
GTK package itself, and most of that, about 5Mbytes, is in the share/locale
directory. Well I don't use multi-language at all with my app, so I've added
a line to my makefile to delete all the files from locale before adding in
the GTK package, and now the resulting setup.exe file has come down from
12Mbytes to 7Mbytes.



Is there any good reason not to do this for a program that only ever needs
to talk English and that installs its own local copy of GTK?



Ian_______________________________________________
gtk-list mailing list
gtk-list@gnome.orghttp://mail.gnome.org/mailman/listinfo/gtk-list

Offline

#2 March 26, 2008 07:39:50

Tor L.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

GTK size and locale


> Is there any good reason not to do this for a program that only ever needs
> to talk English and that installs its own local copy of GTK?

No there isn't. It is indeed a very sensible thing to do. If the
application itself isn't localised, it makes little sense to include
message catalogs for the libraries that it uses.

Did you notice that you must probably can also drop the pangoft2 DLL?
(Just some 273 kB, but still.)

--tml
_______________________________________________
gtk-list mailing list
gtk-list@gnome.orghttp://mail.gnome.org/mailman/listinfo/gtk-list

Offline

Board footer

Moderator control

Enjoy the 16th of December
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support