Re: [gtk-list] Signals, connecting



On Fri, 14 May 1999, Geoff Finger wrote:

> 
> I didn't get any response to the specific question, so I'll try restating
> the general question. How does one go about finding what signals are
> available to connect to for a paticular widget type?
> 
> I'm currently trying to find a signal from a spin button that I can use to
> determine when the arrows have been clicked (and/or the value changed be
> hand) so I can update the screen.
> 
> However if there is a general listing of all signals and what widgets they
> apply to somewhere, it would be very useful to know about.

GLE in gnome cvs comes with a gtkquery tool (in gle/tools/gtkquery) that
supports per widget signal list dumps (amongst other things).
http://www.SoftHome.net/pub/users/timj/gle/index.htm
contains the links for a version that works with gtk+ 1.2.x, e.g.

$ ./gtkquery signals -r GtkButton
GtkButton
=========
void GtkButton::pressed (GtkButton *,
                         gpointer);
void GtkButton::released        (GtkButton *,
                                 gpointer);
void GtkButton::clicked (GtkButton *,
                         gpointer);
void GtkButton::enter   (GtkButton *,
                         gpointer);
void GtkButton::leave   (GtkButton *,
                         gpointer);

GtkToggleButton
===============
void GtkToggleButton::toggled   (GtkToggleButton *,
                                 gpointer);


> 
> thanks
> 

---
ciaoTJ



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]