GtkSourceView2 bindings

I have put together bindings for gtksourceview-2.2, based primarily on
the existing bindings for 1.8. They are not 100% complete, but do
include many of the new features in 2.x. They compile without any
warnings on my platform, and the tests have been revised and are
working.

This is the first Ruby bindings I have ever worked on. If the existing
gtksourceview bindings maintainer wants to take these and work on the
further so that they may be included in ruby-gnome2-all, I would be
grateful. In any case, I would be happy to accept any comments from
those who may be interested.

Yaakov
Cygwin Ports

Hi,

2008/7/6 Yaakov (cygwin ports) [email protected]:

those who may be interested.
Now, Ruby//GtkSourceView

Hi,

2008/7/6 Yaakov (cygwin ports) [email protected]:

those who may be interested.
Now, Ruby/GtkSourceView has no maintainer. If you’re OK, could you
become the maintainer of Ruby/GtkSourceView after 0.17.0 release?
Your changes will be merged at the time.

Thanks,

kou

Kouhei S. wrote:

Now, Ruby/GtkSourceView has no maintainer. If you’re OK, could you
become the maintainer of Ruby/GtkSourceView after 0.17.0 release?
Your changes will be merged at the time.

I would have to work on it more before I would be comfortable
considering that. In the meantime I would appreciate one of the regular
maintainers looking it over for quality and other improvements, as well
as the naming of methods (particularly getters).

This is a very different API than the existing gtksourceview bindings,
due to the changes in the C library from 1.8 to 2.x. Do you intend to
have these replace gtksourceview, or be separate bindings as
gtksourceview2?

Yaakov
Cygwin Ports

Yaakov (cygwin ports) wrote:

This is a very different API than the existing gtksourceview bindings,
due to the changes in the C library from 1.8 to 2.x. Do you intend to
have these replace gtksourceview, or be separate bindings as
gtksourceview2?

Unless the new version is 100% compatible to all programs which use the
1.x bindings, there would be separate bindings for 2.x version.
Otherwise backward compatibility would be broken with a new release of
ruby-gnome2 and programs won’t run. I’d like to avoid that.

Joachim

Kouhei S. wrote:

I found some methods that isn’t applied our naming rules:
[snip]

Thank you for the link. I’ve fixed these accordingly.

It seems that separate bindings are better.

FWIW I agree. These are quite different APIs, and 1.8 is still in use
right now.

I’ve worked on this some more:

  • coverage should now be 100%;
  • #ifdef’ed new APIs in 2.2, so it should build with 2.0 (not tested);
  • removed methods which can now be called directly with GObject
    properties;
  • minor enhancements to samples.

This builds without warnings on Cygwin and the tests run correctly. I
would appreciate any comments, and if found acceptable, I would like to
see it added to Ruby-GNOME2.

Yaakov
Cygwin Ports

Hi,

In [email protected]
“Re: [ruby-gnome2-devel-en] GtkSourceView2 bindings” on Sun, 6 Jul
2008 22:50:53 +0200,
“Yaakov (cygwin ports)” [email protected] wrote:

I would have to work on it more before I would be comfortable
considering that. In the meantime I would appreciate one of the regular
maintainers looking it over for quality and other improvements, as well
as the naming of methods (particularly getters).

I found some methods that isn’t applied our naming rules:

rb_define_method (clang, “metadata”, sourcelanguage_get_metadata, 1);
rb_define_method (clang, “style_name”, sourcelanguage_get_style_name,
1);
rb_define_method (csssm, “scheme”, sssm_get_scheme, 1);

http://ruby-gnome2.sourceforge.jp/hiki.cgi?Naming+and+Conversion+Rules#Accessors+(Setter%2FGetter+methods)

This is a very different API than the existing gtksourceview bindings,
due to the changes in the C library from 1.8 to 2.x. Do you intend to
have these replace gtksourceview, or be separate bindings as
gtksourceview2?

It seems that separate bindings are better.

Thanks,

kou

Hi,

2008/7/9 Yaakov (cygwin ports) [email protected]:

This builds without warnings on Cygwin and the tests run correctly. I
would appreciate any comments, and if found acceptable, I would like to
see it added to Ruby-GNOME2.

Could you tell me your sourceforge.net account name?

IMHO (I’m not the release manager. So this is not my business…),
your bindings may not be included in the next Ruby-GNOME release but
they will be included in the future releases. I think that it’s
important
releasing new version as soon as possible because the current version
was released about 1.5 years ago.

Thanks,

kou

Hi,

In [email protected]
“Re: [ruby-gnome2-devel-en] GtkSourceView2 bindings” on Thu, 10 Jul
2008 04:11:08 +0200,
“Yaakov (cygwin ports)” [email protected] wrote:

Could you tell me your sourceforge.net account name?

yselkowitz

I’ve add you to the Ruby-GNOME2 project.
Welcome!

You can import your bindings into gtksourceview2 directory.

Thanks,

kou

Kouhei S. wrote:

Could you tell me your sourceforge.net account name?

yselkowitz

IMHO (I’m not the release manager. So this is not my business…),
your bindings may not be included in the next Ruby-GNOME release but
they will be included in the future releases. I think that it’s
important releasing new version as soon as possible because the
current version was released about 1.5 years ago.

I understand, but if that’s the case I hope it won’t be another 1.5
years. :slight_smile:

Yaakov
Cygwin Ports

Kouhei S. wrote:

I’ve add you to the Ruby-GNOME2 project.
Welcome!

You can import your bindings into gtksourceview2 directory.

Thank you; imported in r3261.

Yaakov
Cygwin Ports