Philippe Bertin wrote: [...] > Thanks for this elaboration. However, this still doesn't prove, at > compile time, that you have e.g. all necessary callbacks available to > connect to... Whilst when you'd have generated code available and ready > to be compiled, you could be (statically, I mean at compile time) > reassured that your interface is valid, and that all necessary callback > functions are available. Maybe I wasn't clear on this point. If you > don't understand my point, let's drop this issue; I can still come back > to this one later in a separate thread, eventually.
Thats an interesting idea, I'm sure a simple program could be used to parse signals in a glade file and ensure the availability of the said callbacks in the binary - this kind of tool could be used in makefiles to validate a built program, maybe we could take something like this to intltool ? (you could bring this up on glade-devel@ximian.com if you want... there's propably a gnome intltools list too...) >> This is the second google hit for 'libglade', you should try >> the "GladeXML" section (which is the one that concerns you) >> http://developer.gnome.org/doc/API/libglade/libglade.html > > I had seen this one. See next remark. > >> You should see the test-libglade.c example sitting in the libglade >> tarball for a really quick example. > > Well that's what I meant. Maybe in the link above, it could be mentioned > that this is an example of how to use libglade. It'd help out people > (digging into the subject) to obtain an example more rapidly. Some things are the way they are - and wont improve untill someone who cares about those particular things sends a patch, I'm sure James Henstrige wouldnt refuse that simple kind of patch... >> I think we need a little more trust on this front, if the user >> is tampering with the system, its not a valid bug report/use case. > > > That's a political discussion ;-) Ugh - I give up here, I dont see why you are arguing that an application distributor should support a situation where the user tampered with the software (yes, the xml glade file that you distributed with the app is "part of the software") - this is not political at all. Do people go encoding images into thier executable binaries for fear that a user might swap the distributed jpeg with something demeaning ? >>> Apart from that, I also fail to find documentation on another aspect >>> of using glade and libglade : what is the API to provide to write a >>> glade plugin (e.g. to be able to create custom widgets with glade) ? >> >> >> ... >> These are the docs to write a plugin to the Glade 3 core: >> http://glade.gnome.org/docs/index.html > > > I had seen this one, but here too I miss some practical examples. Are > any available ? You can look at the libgnomeui plugin included in the Glade 3 tarball. >> Is there anywhere in particular you think it should be linked from ? > > > What did you mean by this question ? I don't understand the question, > actually... You said you had a hard time finding the docs - I was asking where I should put the link. Cheers, -Tristan _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list