# GDL port

**URL:** <https://www.ruby-forum.com/t/gdl-port/75149>\
**Category:** Ruby-Gnome 2\
**Created:** [March 1, 2006, 10:12am UTC](https://www.ruby-forum.com/t/gdl-port/75149 "2006-03-01T10:12:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bart\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/46a35a/32.png) [@Bart\_D](https://www.ruby-forum.com/u/Bart_D)\
**Post date:** [March 1, 2006, 10:12am UTC](https://www.ruby-forum.com/t/gdl-port/75149/1 "2006-03-01T10:12:26Z")

</div>

Hi all,

Is there any intrest in a port of libgdl (the gnome development library)  
it has a very very cool docking widget.  
(it is also the dock widget used in monodevelop but they reimplemented  
it in C#; I just used libgdl and wrote the bindings)

I already did 60% of the port ; the demo program already works in its  
ruby version.

It will be the start of a new pluggable ruby IDE I will be making.

What do I have to do to get it into CVS ; if it is allowed.

regards,

Bart

* * *

This [SF.Net](http://SF.Net) email is sponsored by xPML, a groundbreaking scripting  
language  
that extends applications into web and mobile media. Attend the live  
webcast  
and join the prime developer group breaking into this new coding  
territory!  
[http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642](http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642)

---

<div class="post-metadata">

**Author:** ![Bart\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/46a35a/32.png) [@Bart\_D](https://www.ruby-forum.com/u/Bart_D)\
**Post date:** [March 2, 2006, 2:14pm UTC](https://www.ruby-forum.com/t/gdl-port/75149/2 "2006-03-02T14:14:11Z")

</div>

Hi Bart,

Sorry for late.

On Wed, 01 Mar 2006 10:11:33 +0100  
Bart D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi all,
> 
> Is there any intrest in a port of libgdl (the gnome development library)  
> it has a very very cool docking widget.  
> (it is also the dock widget used in monodevelop but they reimplemented  
> it in C#; I just used libgdl and wrote the bindings)
> 
> I already did 60% of the port ; the demo program already works in its  
> ruby version.

Good job!

> It will be the start of a new pluggable ruby IDE I will be making.
> 
> What do I have to do to get it into CVS ; if it is allowed.

Great!

But I don’t know libgdl well. Could you tell me the website of libgdl?

And also, please send me your source code first.  
I need to check your binding is suitable for our policy  
before including it to our CVS.

–  
.:% Masao M.[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

* * *

This [SF.Net](http://SF.Net) email is sponsored by xPML, a groundbreaking scripting  
language  
that extends applications into web and mobile media. Attend the live  
webcast  
and join the prime developer group breaking into this new coding  
territory!  
[http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642](http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642)

---

<div class="post-metadata">

**Author:** ![Bart\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/46a35a/32.png) [@Bart\_D](https://www.ruby-forum.com/u/Bart_D)\
**Post date:** [March 4, 2006, 1:19pm UTC](https://www.ruby-forum.com/t/gdl-port/75149/3 "2006-03-04T13:19:07Z")

</div>

Hi Bart,

On Thu, 02 Mar 2006 15:38:07 +0100  
Bart D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > > Is there any intrest in a port of libgdl (the gnome development library)  
> > > it has a very very cool docking widget.  
> > > (it is also the dock widget used in monodevelop but they reimplemented  
> > > it in C#; I just used libgdl and wrote the bindings)
> > > 
> > > I already did 60% of the port ; the demo program already works in its  
> > > ruby version.

> I attached my bindings so far ; please have a look at the code and advise.  
> I need to create bindings for other function but the sample/test-dock.rb  
> already works (ported from test-dock.c)

OK. Seems nice.

Here is 2 my comments:

1. Should GDL module be Gdl module?

2. test-dock.rb occurs error messages below:  
% ruby test-dock.rb  
test-dock.rb: line 2  
GLib-GObject-WARNING \*\*:invalid cast from `GdlDockLayout' to `GtkObject’  
test-dock.rb: line 2  
Gtk-CRITICAL \*\*:gtk\_object\_sink: assertion `GTK\_IS\_OBJECT (object)’  
failed

* * *

— rbgdldocklayout.c.old 2006-03-04 20:58:21.000000000 +0900  
+++ rbgdldocklayout.c 2006-03-04 20:55:04.000000000 +0900  
@@ -8,7 +8,7 @@  
rbgdl\_dock\_layout\_initialize(self,object)  
VALUE self,object;  
{

- 

```
  RBGTK_INITIALIZE(self,gdl_dock_layout_new(

```

- 

```
  G_INITIALIZE(self,gdl_dock_layout_new(
          GDL_DOCK(RVAL2GOBJ(object))
  ));
  return self;

```

* * *

I agree ruby-gnome2 includes ruby-gdl.  
But before including it, I need to confirm below:

1. Could you keep to develop ruby-gdl by yourself?  
libgdl seems unstable, we need to keep the latest version of libgdl.  
But at least, I don’t have the time to spend libgdl now.

2. Could you release it sometimes by yourself?  
I think ruby-gdl should be follow ruby-gtkmozembed way.  
It means, 1 or 2, 3 times you release it as ruby-gdl-0.x.x by  
yourself.  
If it becomes stable, merge it ruby-gnome2 tree, then next time,  
it will be released a part of ruby-gnome2.

3. Could you write API reference to our website?  
This is very important … we’ve been distressed lack of API  
documentations for a long time.

If you have no problem above question, tell me your SF account.  
I’ll give you the privillige to access our CVS.

## Thanks in advance.

.:% Masao M.[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

* * *

This [SF.Net](http://SF.Net) email is sponsored by xPML, a groundbreaking scripting  
language  
that extends applications into web and mobile media. Attend the live  
webcast  
and join the prime developer group breaking into this new coding  
territory!  
[http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642](http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642)

---

<div class="post-metadata">

**Author:** ![Bart\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/46a35a/32.png) [@Bart\_D](https://www.ruby-forum.com/u/Bart_D)\
**Post date:** [March 6, 2006, 12:14pm UTC](https://www.ruby-forum.com/t/gdl-port/75149/4 "2006-03-06T12:14:03Z")

</div>

Masao M. wrote:

> > > > it in C#; I just used libgdl and wrote the bindings)  
> > > > already works (ported from test-dock.c)
> 
> — rbgdldocklayout.c.old 2006-03-04 20:58:21.000000000 +0900

I can and am certainly willing to do that.

But I will first check with the gdl developers to see how they see the  
future of the gdl library; if they are not intrested (or supporting)  
then I think I can better do it the monodevelop way and develop the GDL  
library completely in ruby itself; then libgdl is not necessary anymore.

regards

Bart

* * *

This [SF.Net](http://SF.Net) email is sponsored by xPML, a groundbreaking scripting  
language  
that extends applications into web and mobile media. Attend the live  
webcast  
and join the prime developer group breaking into this new coding  
territory!  
[http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642](http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642)

---

<div class="post-metadata">

**Author:** ![Bart\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/46a35a/32.png) [@Bart\_D](https://www.ruby-forum.com/u/Bart_D)\
**Post date:** [March 2, 2006, 3:39pm UTC](https://www.ruby-forum.com/t/gdl-port/75149/5 "2006-03-02T15:39:17Z")

</div>

Masao M. wrote:

> > 
> 
> Good job!
> 
> But I don’t know libgdl well. Could you tell me the website of libgdl?

GDL is gnome-development-library; it contains some widgets that can be  
used; one of them is a dock widget (used in anjuta2 and in monodevelop).  
You can have widgets docked to the edges of another widget or next to  
another.  
Try the demo.

The library can be checked out from the gnome CVS server:

cvs -d :pserver:removed\_email\_address@domain.invalid:/cvs/gnome login  
cvs -d :pserver:removed\_email\_address@domain.invalid:/cvs/gnome co gdl

./configure  
./make  
./make install

./test-dock

and you’ll see what I mean;

I attached my bindings so far ; please have a look at the code and  
advise.  
I need to create bindings for other function but the sample/test-dock.rb  
already works (ported from test-dock.c)

BTW You did a GREAT job with ruby-gnome2 it is awsome !

regards,

Bart
