From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32066 invoked by alias); 8 Aug 2003 20:04:59 -0000 Mailing-List: contact guile-gtk-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: guile-gtk-owner@sources.redhat.com Received: (qmail 32048 invoked from network); 8 Aug 2003 20:04:59 -0000 Received: from unknown (HELO octopussy.utanet.at) (213.90.36.45) by sources.redhat.com with SMTP; 8 Aug 2003 20:04:59 -0000 Received: from paris.utanet.at ([213.90.36.7]) by octopussy.utanet.at with esmtp (Exim 4.12) id 19lDTu-0000gS-00; Fri, 08 Aug 2003 22:04:58 +0200 Received: from dsl-240-174.utaonline.at ([212.152.240.174] helo=rotty-ipv4.yi.org) by paris.utanet.at with esmtp (Exim 4.12) id 19lDTt-0007za-00; Fri, 08 Aug 2003 22:04:57 +0200 Received: from alice.rhinosaur.lan ([192.168.1.3] ident=mail) by rotty-ipv4.yi.org with esmtp (Exim 3.36 #1 (Debian)) id 19lDTw-0000UU-00; Fri, 08 Aug 2003 22:05:00 +0200 Received: from andy by alice.rhinosaur.lan with local (Exim 4.20) id 19lDTw-0004zB-FV; Fri, 08 Aug 2003 22:05:00 +0200 To: =?iso-8859-1?q?Jos=E9_Roberto_B._de_A._Monteiro?= Cc: guile-user@gnu.org, guile-gtk@sources.redhat.com Subject: Re: GtkObject to Guile References: <20030807202552.GA3016@milla.autsens.localnet> <87k79pf6ds.fsf@alice.rotty.yi.org> <20030808135901.GA3778@milla.autsens.localnet> From: Andreas Rottmann Date: Fri, 08 Aug 2003 20:04:00 -0000 In-Reply-To: <20030808135901.GA3778@milla.autsens.localnet> ( =?iso-8859-1?q?Jos=E9_Roberto_B._de_A._Monteiro's_message_of?= "Fri, 8 Aug 2003 10:59:01 -0300") Message-ID: <87u18rsyok.fsf@alice.rotty.yi.org> User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-SW-Source: 2003-q3/txt/msg00030.txt.bz2 José Roberto B. de A. Monteiro 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!