From: sen_ml@eccosys.com
To: guile-gtk@sourceware.cygnus.com
Cc: mvo@zagadka.ping.de
Subject: Re: obtaining the selection: gtk_selection_convert?
Date: Thu, 13 Apr 2000 18:23:00 -0000 [thread overview]
Message-ID: <20000414102257V.1000@eccosys.com> (raw)
In-Reply-To: <87wvm385ar.fsf@zagadka.ping.de>
thanks for the response. my comments follow.
> sen_ml@eccosys.com writes:
>
> > my guess would have been to add:
> >
> > (define-func gtk_selection_convert
> > int
> > ((GtkWidget widget)
> > (GdkAtom selection)
> > (GdkAtom target)
> > (uint time)))
>
> Ok, I have done this now in CVS. Can you test it?
sorry to be slow -- it took a day to set up a development machine ;-)
gtk-selection-convert itself seems to work -- the problem now appears
to be that when you register a callback for "selection_received",
one of the arguments to the callback is GtkSelectionData. when the
callback call is attempted, there appear to be problems because
GtkSelectionData doesn't seem to have a guile-gtk manifestation yet.
GtkSelectionData's definition (or the underscore version) is:
struct _GtkSelectionData
{
GdkAtom selection;
GdkAtom target;
GdkAtom type;
gint format;
guchar *data;
gint length;
};
not really knowing what to do, i tried adding:
(define-object GtkSelectionData ()
(fields
(atom selection)
(atom target)
(atom type)
(uint format)
(pointer data)
(int length)))
to gtk-1.2.defs, but make ended in:
...
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -I/usr/include -I/usr/lib/glib/include -I/usr/X11R6/include -g -O2 -Wp,-MD,.deps/gtk-glue.pp -c gtk-glue.c
-fPIC -DPIC -o .libs/gtk-glue.lo
gtk-glue.c:799: `gtk_selection_data_get_type' undeclared here (not in a function)
gtk-glue.c:799: initializer element is not constant
gtk-glue.c:799: (near initialization for `sgtk_gtk_selection_data_info.init_func')
gtk-glue.c:14462: parse error before `:'
make: *** [gtk-glue.lo] Error 1
does this mean there are some related function definitions i should
add as well?
p.s. what is the recommended procedure for building guile-gtk from a fresh
checkout via cvs? right now i'm doing:
% sh autogen.sh
% ./configure
% make
i only figured out the bit about autogen.sh by looking through the archives.
is there an important bit of documentation i am missing?
next prev parent reply other threads:[~2000-04-13 18:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-04-10 3:12 sen_ml
2000-04-10 23:19 ` sen_ml
2000-04-12 12:09 ` Marius Vollmer
2000-04-12 12:55 ` Marius Vollmer
2000-04-13 18:23 ` sen_ml [this message]
[not found] ` <874s91st4c.fsf@zagadka.ping.de>
2000-04-17 2:41 ` sen_ml
2000-04-18 12:48 ` Marius Vollmer
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=20000414102257V.1000@eccosys.com \
--to=sen_ml@eccosys.com \
--cc=guile-gtk@sourceware.cygnus.com \
--cc=mvo@zagadka.ping.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 read-only IMAP folder(s) and NNTP newsgroup(s).