caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Markus Mottl <markus.mottl@gmail.com>
To: Oliver Bandel <oliver@first.in-berlin.de>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] lablgtk with OCamlMakefile
Date: Wed, 23 Jul 2014 08:34:48 -0400	[thread overview]
Message-ID: <CAP_800rrxCWPOngJKcVwGmxouhj-22+J-dTRhP=kbgjqNMSW_g@mail.gmail.com> (raw)
In-Reply-To: <20140723134245.Horde.4I1V6EjmlCCX20bk_Xmh1Q2@webmail.in-berlin.de>

I don't use GTK so I'm not sure what the recommended way of
initializing it is these days.  A long time ago it did require linking
with an extra initialization module for applications.  Using the
init-function above seems to work, too, and may be the best approach.

Regards,
Markus

On Wed, Jul 23, 2014 at 7:42 AM, Oliver Bandel
<oliver@first.in-berlin.de> wrote:
> Hello Adrien,
>
>
> thank you for adding this correction.
>
> Using Markus' hint did work.
>
> But I now changed my setup  in the following way:
>
>
> I again use  "lablgtk2" (instead of "lablgtk2.auto-init")
> in the "PACKS"-section of my Makefile.
>
> And I added the line
>
>   let locale = GtkMain.Main.init () in
>
> as first line in my GUI-code.
>
>
> Doing it this way, it also works; I get a GUI instead of a crash.
>
> I hope this is the correct and recommended way now.
>
> Remark on the README-file:
>
> The line with "GtkMain.Main.init ()" I found in the
> README of lablgtk, which you seemed to refer to.
>
> Normally this README is not seen, because when installing
> the lablgtk-package, it will just be the working code become installed,
> and the README does not show up.
>
> Possibly it makes sense to have doc-packages, which install
> the documentation also.
> (It's on Arch-linux, and no docs are installed by default.)
>
>
> Thanks a lot,
>        Oliver
>
>
>
>
>
>
>
>
>
>
> Zitat von Adrien Nader <adrien@notk.org> (Wed, 23 Jul 2014 13:10:34 +0200)
>
>> Hi,
>>
>> On Tue, Jul 22, 2014, Markus Mottl wrote:
>>>
>>> You may want to try the following:
>>>
>>>   PACKS = lablgtk2.auto-init
>>
>>
>> Please, do not use the auto-init subpackage. It only exists for the
>> toplevel.
>>
>> Godi had it in its default META and it prevented building the "conf"
>> packages without X available because running anything always tried to
>> initialize GTK+.
>>
>> The README explains what to call to do the GTK+ initialization at the
>> right moment.
>>
>> --
>> Adrien Nader
>>
>> --
>> Caml-list mailing list.  Subscription management and archives:
>> https://sympa.inria.fr/sympa/arc/caml-list
>> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
>> Bug reports: http://caml.inria.fr/bin/caml-bugs
>
>
>
>
>
> --
> Caml-list mailing list.  Subscription management and archives:
> https://sympa.inria.fr/sympa/arc/caml-list
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs



-- 
Markus Mottl        http://www.ocaml.info        markus.mottl@gmail.com

  reply	other threads:[~2014-07-23 12:34 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-22 23:45 Oliver Bandel
2014-07-23  0:01 ` Markus Mottl
2014-07-23  0:47   ` Oliver Bandel
2014-07-23 11:10   ` Adrien Nader
2014-07-23 11:42     ` Oliver Bandel
2014-07-23 12:34       ` Markus Mottl [this message]
2014-07-31  8:43         ` Adrien Nader
2014-07-31  8:48       ` Adrien Nader

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAP_800rrxCWPOngJKcVwGmxouhj-22+J-dTRhP=kbgjqNMSW_g@mail.gmail.com' \
    --to=markus.mottl@gmail.com \
    --cc=caml-list@inria.fr \
    --cc=oliver@first.in-berlin.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).