>
> What is the idea behind defining all Gdk classes boxed?
> As I stated before, in gdk GdkPixmap and GdkBitmap are subclasses
> of GdkWindow, and can imho only used correctly if you have the
> methods of GdkWindow to operate on them.
Classes derived from GtkObject have certain runtime capabilities
that are utilized by the bindings. Classes defined as "define-object"
use these capabilities. Since GDK objects don't have this runtime
feature they cannot be defined as "define-object". As I said
in my earlier email I haven't focused my efforts on the GDK objects.
I should be able to add inheritance to the "define-boxed" objects.
Give me a day or so.
>
> As GdkColor is "boxed", I can't add new colors. Correct me if
> I'm wrong,
> but I think that this way I could only change the default colors
> that ".getStyle()" can give me?
I am not sure I understand your question. You are correct that
the constructor for GdkColor is currently protected. This is due
to the fact that there is no method in GDK to create a GdkColor
object (no gdk_color_new()) and therefore the code generator doesn't
know how to create a valid constructor. It is possible to create a new
constructor for the object and have it added to the generated code.
Perhaps GdkColor(int red, int green, int blue). If you are not
familiar with this process I could add it for you.
-Jeff
|