Re: [Caml-list] ocaml glade gtk3

[email protected] Fri, 19 Jul 2013 14:39:43 +0200 (CEST)
Newsgroups gmane.comp.lang.ocaml.lib.gtk
Message-ID <1777389108.213637746.1374237583933.JavaMail.root@zimbra27-e5.priv.proxad.net>
--===============2212245508263611584==
Content-Type: multipart/alternative; 
	boundary="----=_Part_213637745_971692928.1374237583932"

------=_Part_213637745_971692928.1374237583932
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit

On 19/07/2013 12:04, Jacques Garrigue wrote: 

On 2013/07/19, at 18:58, [email protected] wrote: 
<blockquote>
Hello,

I was using ocaml + lablgtk2 + glade.
Glade is a tool to graphically design user interfaces. It used to generate glade 2 files (designed for gtk2) until version 3.8. Then I used "lablgladecc2" to convert them in ocaml.

Now "lablgladecc2" is not appropriate anymore starting with glade 3.10 that generates glade 3 files (designed for gtk3). I was using as a workaround "glade-gtk2" in ubuntu that still generated glade 2 files. But glade-gtk2 is not available anymore in debian, and is not supposed to be available forever in ubuntu. 

Also, lablgtk3 is still in development. 

What do you think is the most sensible thing to do (max benefits, less efforts) ?

- wait for lablgtk3 with gtkbuilder support
- wait for lablgtk3 without gtkbuilder support, forget glade, and hardcode all graphical windows (30 windows to convert maybe ?) in lablgtk3
- forget glade, and hardcode all graphical windows (30 windows to convert maybe ?) in lablgtk2
- other ? 

Unfortunately, I must say that lablgtk3 is not around the corner yet.
There is a stub generator, which should make the transition easier,
but there is still a lot of work if we want to keep some compatibility with gtk2,
and I do not have much time to invest in it.

The other option is to add gtkbuilder support to lablgtk2.
I started once, but stopped thinking that moving to gtk3 would be faster.
Since this is not the case, this may be worth it, as this should not be a big effort.

	Jacques 
</blockquote>

If I understand well, there are already stubs to access gtk3. I think I would be interested in making a full transition to gtk3. 
- are those stubs the equivalent of Gtk* (GtkList, GtkMisc, GtkObject, ...) modules ? 
- what project should I start with ? who shall I contact ? 
- is there already a gtkbuilder implementation ? 

I would also appreciate to keep the ocaml "labl" way of wrapping functions in objects, etc. This is what you call the "compatibility with gtk2". How can this be done ? 
- Shall we start with gtk2 modules (GPango, GDraw, GObj, ...) such as , and modify it progressively to connect to gtk3 stubs ? 
- Or build directly from gtk3, using lablgtk2 as a reference ? 
- are there already some work on it ? where ? 

- How long would it take to port to gtk3 ? 1 full week, l full month, 1 full year ? 


All advice you could give me to help me start in helping with the project would be nice. 

Thanks, 
William 

------=_Part_213637745_971692928.1374237583932
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit

<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: times new roman,new york,times,serif; font-size: 12pt; color: #000000'>
  
    
  
  
    On 19/07/2013 12:04, Jacques Garrigue wrote:
    <blockquote cite="mid:[email protected]">
      <pre>On 2013/07/19, at 18:58, <a class="moz-txt-link-abbreviated" href="mailto:[email protected]" target="_blank">[email protected]</a> wrote:

</pre>
      <blockquote>
        <pre>Hello,

I was using ocaml + lablgtk2 + glade.
Glade is a tool to graphically design user interfaces. It used to generate glade 2 files (designed for gtk2) until version 3.8. Then I used "lablgladecc2" to convert them in ocaml.

Now "lablgladecc2" is not appropriate anymore starting with glade 3.10 that generates glade 3 files (designed for gtk3). I was using as a workaround "glade-gtk2" in ubuntu that still generated glade 2 files. But glade-gtk2 is not available anymore in debian, and is not supposed to be available forever in ubuntu. 

Also, lablgtk3 is still in development. 

What do you think is the most sensible thing to do (max benefits, less efforts) ?

- wait for lablgtk3 with gtkbuilder support
- wait for lablgtk3 without gtkbuilder support, forget glade, and hardcode all graphical windows (30 windows to convert maybe ?) in lablgtk3
- forget glade, and hardcode all graphical windows (30 windows to convert maybe ?) in lablgtk2
- other ?
</pre>
      </blockquote>
      <pre>Unfortunately, I must say that lablgtk3 is not around the corner yet.
There is a stub generator, which should make the transition easier,
but there is still a lot of work if we want to keep some compatibility with gtk2,
and I do not have much time to invest in it.

The other option is to add gtkbuilder support to lablgtk2.
I started once, but stopped thinking that moving to gtk3 would be faster.
Since this is not the case, this may be worth it, as this should not be a big effort.

	Jacques</pre>
    </blockquote>
    <br>
    If I understand well, there are already stubs to access gtk3. I
    think I would be interested in making a full transition to gtk3.<br>
    - are those stubs the equivalent of Gtk* (GtkList, GtkMisc,
    GtkObject, ...) modules ?<br>
    - what project should I start with ? who shall I contact ?<br>
    - is there already a gtkbuilder implementation ?<br>
    <br>
    I would also appreciate to keep the ocaml "labl" way of wrapping
    functions in objects, etc. This is what you call the "compatibility
    with gtk2". How can this be done ?<br>
    - Shall we start with gtk2 modules (GPango, GDraw, GObj, ...) such
    as , and modify it progressively to connect to gtk3 stubs ?<br>
    - Or build directly from gtk3, using lablgtk2 as a reference ?<br>- are there already some work on it ? where ?<br>
    <br>
    - How long would it take to port to gtk3 ? 1 full week, l full
    month, 1 full year ?<br>
    <br>
    <br>
    All advice you could give me to help me start in helping with the
    project would be nice.<br>
    <br>
    Thanks,<br>
    William<br>
  

</div></body></html>
------=_Part_213637745_971692928.1374237583932--

--===============2212245508263611584==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Lablgtk-list mailing list
[email protected]
https://lists.ocamlcore.org/cgi-bin/listinfo/lablgtk-list

--===============2212245508263611584==--