Question binding gtk_text_mark_new

http://developer.gnome.org/doc/API/2.0/gtk/GtkTextMark.html#id3010285

This function looks like a good candidate for a mandatory argument and
an optional argument: the name can be NULL, so should be optional in
Ruby constructor, and there is no real good default for the
left_gravity parameter, so it makes sense to have it mandatory.

However, in the C form the optional argument comes first (name) and
the mandatory comes second (left_gravity). So it might be confusing to
reverse the parameters order in the Ruby constructor (first: mandatory
left_gravity; second: optional name).

WDYT?


Guillaume C. - http://zarb.org/~gc/


This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

Hi,

I think Gtk::TextMark.new(nil, true) is not bad idea.

“name” is more important than left_gravity, but if you
want to use it as anonymous, can use nil instead.

So I think we don’t need to change the parameter in this case.

On Thu, 12 Jul 2007 14:49:46 +0200
“Guillaume C.” [email protected] wrote:

left_gravity; second: optional name).
http://sourceforge.net/powerbar/db2/


ruby-gnome2-devel-en mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en


.:% Masao M.[email protected]


This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/