public inbox for guile-gtk@sourceware.org
 help / color / mirror / Atom feed
* Re: GtkObject to Guile
       [not found]   ` <20030808135901.GA3778@milla.autsens.localnet>
@ 2003-08-08 20:04     ` Andreas Rottmann
  2003-08-09  0:10       ` Kevin Ryde
       [not found]       ` <20030814193842.GA880@milla.autsens.localnet>
  0 siblings, 2 replies; 3+ messages in thread
From: Andreas Rottmann @ 2003-08-08 20:04 UTC (permalink / raw)
  To: José Roberto B. de A. Monteiro; +Cc: guile-user, guile-gtk

José Roberto B. de A. Monteiro <jrm@autsens.com> writes:

> I am using the package gnome-guile, which provides guile-gtk (version
> GTK+ 1.2) and guile-gnome. I have my main window written in C, and I
> want to access it in my scheme code. I thing that a function, which its
> prototype is as follows, would do the job:
>
> SCM gh_GtkWindow2scm(GtkWindow * window);
>
What 'is' your main window? Is it a derived GTK widget? If so, you
probably just need a function like this:

GtkWindow *get_my_main_window(void);

And run that prototype thru whatever wrapper generator gnome-guile
uses -- can't help here, since I only care about guile-gobject (the
bindings for GTK+ 1.2 are obsolete, at least in the long term).

Also, note that there is a guile-gtk mailing list, so this thread
belongs there (CC'ed).

Regards, Andy
-- 
Andreas Rottmann         | Rotty@ICQ      | 118634484@ICQ | a.rottmann@gmx.at
http://www.8ung.at/rotty | GnuPG Key: http://www.8ung.at/rotty/gpg.asc
Fingerprint              | DFB4 4EB4 78A4 5EEE 6219  F228 F92F CFC5 01FD 5B62

It's GNU/Linux dammit!

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: GtkObject to Guile
  2003-08-08 20:04     ` GtkObject to Guile Andreas Rottmann
@ 2003-08-09  0:10       ` Kevin Ryde
       [not found]       ` <20030814193842.GA880@milla.autsens.localnet>
  1 sibling, 0 replies; 3+ messages in thread
From: Kevin Ryde @ 2003-08-09  0:10 UTC (permalink / raw)
  To: José Roberto B. de A. Monteiro; +Cc: guile-user, guile-gtk

José Roberto B. de A. Monteiro <jrm@autsens.com> writes:
>
> SCM gh_GtkWindow2scm(GtkWindow * window);

For guile-gtk, you can see how the generated gtk-glue.c uses
sgtk_wrap_gtkobj to do this.  Not sure that function is meant for
application use though, might want a better name if it was to be a
documented interface.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: GtkObject to Guile
       [not found]       ` <20030814193842.GA880@milla.autsens.localnet>
@ 2003-08-14 21:01         ` Andreas Rottmann
  0 siblings, 0 replies; 3+ messages in thread
From: Andreas Rottmann @ 2003-08-14 21:01 UTC (permalink / raw)
  To: betoes; +Cc: guile-gtk

betoes@member.fsf.org writes:

> Hi Andreas,
>
> I read the source code, and I found what I needed. These functions are:
>
> SCM sgtk_wrap_gtkobj (GtkObject *obj);
> int sgtk_is_a_gtkobj (guint type, SCM obj);
> GtkObject *sgtk_get_gtkobj (SCM obj);
>
Congrats. The beauty of Open Source ;-) That seems to be the GTK+ 1.2
binding, so I couldn't help here...

> On Fri, Aug 08, 2003 at 10:04:59PM +0200, Andreas Rottmann wrote:
>> José Roberto B. de A. Monteiro <jrm@autsens.com> writes:
>> 
>> Also, note that there is a guile-gtk mailing list, so this thread
>> belongs there (CC'ed).
>
> I could not find the address of such list that time. If you know,
> please, send me the address.
>
It's at http://sources.redhat.com/ml/guile-gtk, linked from the guile-gtk
Homepage (http://www.nongnu.org/guile-gtk/contact/).

Regards, Andy
-- 
Andreas Rottmann         | Rotty@ICQ      | 118634484@ICQ | a.rottmann@gmx.at
http://www.8ung.at/rotty | GnuPG Key: http://www.8ung.at/rotty/gpg.asc
Fingerprint              | DFB4 4EB4 78A4 5EEE 6219  F228 F92F CFC5 01FD 5B62

Python is executable pseudocode, Perl is executable line-noise.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-08-14 21:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20030807202552.GA3016@milla.autsens.localnet>
     [not found] ` <87k79pf6ds.fsf@alice.rotty.yi.org>
     [not found]   ` <20030808135901.GA3778@milla.autsens.localnet>
2003-08-08 20:04     ` GtkObject to Guile Andreas Rottmann
2003-08-09  0:10       ` Kevin Ryde
     [not found]       ` <20030814193842.GA880@milla.autsens.localnet>
2003-08-14 21:01         ` Andreas Rottmann

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).