Re: Two newbie questions
Tristan Van Berkom <[email protected]> Sun, 7 Apr 2013 20:23:56 +0900
| Newsgroups | gmane.comp.gnome.glade.user |
|---|---|
| Message-ID | <CAGUy9W+QLrx3gJbRdfF3Tm=2QkJmzK-WOdJSM3c9aRKTcU0oXw@mail.gmail.com> |
On Sun, Apr 7, 2013 at 7:32 PM, Ma Xiaojun <[email protected]> wrote: > Hi, list. > > ( If this is answered nicely somewhere else, throw me a link is enough) > > 1. Where is the correct location to install .glade/.ui files with > regard to FHS or some freedesktop.org standards? > Hi, For this I would really recommend that you do not install .ui files. This contributes to needless flash wear by your application (by accessing the disk when that's not really needed). Rather, I would encourage you to use GResources to bind the XML into your app or library and use gtk_builder_add_from_resource(). (note that GResources allows for a compression option too). If you want to install them anyway, the place would be: ${prefix}/share/application-name/file.ui Which would be the ${pkgdatadir} in your Makefiles, assuming that you are using automake. > > 2. What is the correct way to add a copyright notice, e.g., "This is > free software." blah blah, to a .glade/.ui file? > Unfortunately this is a bug that is still standing, Glade does not really support the user added comments at the top of the file, but I admit that it should. Kind Regards, -Tristan > > Thank you in advance. > _______________________________________________ > Glade-users maillist - [email protected] > http://lists.ximian.com/mailman/listinfo/glade-users > _______________________________________________ Glade-users maillist - [email protected] http://lists.ximian.com/mailman/listinfo/glade-users