Re: Some More Patches...

From: Date: Tue, 20 Dec 2005 22:47:53 +0000
Subject: Re: Some More Patches...
References: 1  Groups: php.gtk.doc 
Request: Send a blank email to php-gtk-doc+get-1715@lists.php.net to get a copy of this message
Hello Anant, > So here's yet another patch set from me: Thanks for the patches. I committed them after some changes: - I have a size fetish and want the images as small as possible. The filechooser window png was 29kb - too much. I got all the four down to 14kb in sum. What I did (and you should do in future, too): Open the files in Gimp or your favorite graphics editor. Select one color for the foreground and paint it over all the stylish gradients - it doesn't look that nifty after, but in my opinion, the manual is to show how the widgets look like in general, not to be slideshow for the latest themes; so we can ignore the (bit of) ugliness. After that, reduce the colors to 20 or 30 without dithering. Save it again. And if you have a style with round borders, make the space transparent! - You forgot to link to the GtkFileChooserAction enum :) > Some methods don't show up in the PHP-Gtk2 inspector, should I just > outright delete them? For now, I've just marked them with FIXME's. How > to determine the difference between those functions haven't been > implemented but will be and those who downright won't? ;-) As I told you previously, the doc skeleton has been generated when php-gtk2 was in its initial stages, or even before it. In C, you have no optional parameters as in PHP, so you have to write another function if you want to have a different parameter set. So it could be you end with the following: > function a($b) > function a($b, $c > function a($b, $c, $d) in C where you would write that in php: > function a($b = null, $c = 1, $d = false) That's why there are so many static constructors which aren't defined any more - there is no need to, because the different parameter types have been implemented as optional parameters in the normal constructor. So normally it's safe to delete the obsolete ones now if the main constructor does the same. > And some constructors are just too beautiful. An example is the > GtkImageMenuItem: > $im = new GtkImageMenuItem("gtk-ok"); //works great! (from stock) > $in = new GtkImageMenuItem("_Hello!", $accelgrp) //works great too! > So how do I doc the parameters for these constructors? I'll have a look at this. -- Regards/MfG, Christian Weiske

Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
« previous php.gtk.doc (#1715) next »