public inbox for guile-gtk@sourceware.org
 help / color / mirror / Atom feed
* Re: embedding guile-gnome
       [not found] <20000110003346.B28318@emccta.com>
@ 2000-01-10 12:51 ` Marius Vollmer
  0 siblings, 0 replies; only message in thread
From: Marius Vollmer @ 2000-01-10 12:51 UTC (permalink / raw)
  To: Jon Trowbridge; +Cc: guile-gtk

Jon Trowbridge <trow@emccta.com> writes:

> I've run into a bit of a problem with adding gnome bindings, though.
> Poking through the source code for gnomeg in the gnome-guile CVS
> module, it isn't immediately obvious to me how to add those bindings
> to my program.  Rather than being in a libguilegnome, it looks like
> some of the important code is in places like, say, gnomeg.c.
> 
> Am I missing something here?  Is there a nice way for me to embed 
> "guile-gnome" in my app?

Hmm, there is a libguilegnome and you can bring it into action with

   (use-modules (gnome gnome))

from a plain guile executable.  For example

    ;; simple.scm
    (use-modules (gnome gnome)
                 (gtk gtk))

    (gnome-init-hack "uiinfo" #f '())

    (let ((app (gnome-app-new "simple" "Simple")))
      (gtk-widget-show-all app)
      (gtk-standalone-main app))

   % guile -s simple.scm

works for me just fine.  The gnomeg executable should only be
necessary on platforms on which guile-gtk does not support dynamic
linking.

There might be some bugs in gnome-guile, tho, and I just discovered a
serious one in the UIInfo code, but basically it should be the way you
want it.

Can you be more specific as to what doesn't work for you?

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-01-10 12:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20000110003346.B28318@emccta.com>
2000-01-10 12:51 ` embedding guile-gnome Marius Vollmer

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 read-only IMAP folder(s) and NNTP newsgroup(s).