This is the mail archive of the guile-gtk@sources.redhat.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GtkObject to Guile


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!


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]