Attaching callback to adjustment object created by glade
- From: "Rod B. Nussbaumer" <bomr trmail triumf ca>
- To: gtk-app-devel-list gnome org
- Subject: Attaching callback to adjustment object created by glade
- Date: Tue, 04 Jun 2002 08:54:26 -0700
GTK+ gurus:
1. Newbie question here.
2. I'm using glade 0.5.5 & 0.59 on a couple of different Linux hosts.
C language output. Trying to make sliders generate callbacks when
the user operates them.
3. The actual question. How can I attach a callback to an adjustment
object that is part of a widget. Especially, I'd like to be able to
do this in a way that my code doesn't get clobbered when I regenerate
the code with glade. I can't see any hooks in the API to get a reference
to an adjustment object that is contained in an existing widget. The
adjustment objects seem to be created at run-time in the module (created
by glade) that generates all of the widgets. If I modify this code
module, my edits will be lost each time the code gets regurgitated by
glade. I guess I'm looking for a function something like:
gtk_hscale_get_adjustment( GtkWidget * MyHscale, GtkAdjustment * MyHscaleAdjustment );
... so I can use the Adjustemnt reference to attach a callback
to it that will fire when the user moves the specified slider.
Hope this is making sense. Thanks.
--- rod.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Rod Nussbaumer, Programmer/Technologist E-mail: bomr triumf ca
TRIUMF --- University of British Columbia, Phone: (604)222-7449
Vancouver, BC, Canada. FAX: (604)222-7307
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]