Re: g_signal_connect: what are the "detailed_signal" ?
- From: Muthiah Annamalai <dearestchum yahoo co in>
- To: Colossus <colossus 3000 it>, gtk-app-devel-list gnome org
- Cc:
- Subject: Re: g_signal_connect: what are the "detailed_signal" ?
- Date: Thu, 19 May 2005 00:44:04 -0700 (PDT)
Hi !
You can see this for each widget in its GTK+ source.
eg: GtkButton() supports signals like clicked etc,
which can be found by looking in its header files,
gtkbutton.h
or in the source gtkbutton.c.
/* GtkButton.h */
struct _GtkButtonClass
{
GtkBinClass parent_class;
void (* pressed) (GtkButton *button);
void (* released) (GtkButton *button);
void (* clicked) (GtkButton *button);
void (* enter) (GtkButton *button);
void (* leave) (GtkButton *button);
void (* activate) (GtkButton *button);
/* Padding for future expansion */
void (*_gtk_reserved1) (void);
void (*_gtk_reserved2) (void);
void (*_gtk_reserved3) (void);
void (*_gtk_reserved4) (void);
};
Moreover each widget inherits
from its parent the signals also.
eg: GtkButton widget inherits from GtkBin, which
inherits
from GtkContainer: so also signals like add,remove are
available for g_signal_connect for the GtkWidget
types.
/* from GtkContainer.h */
struct _GtkContainerClass
{
GtkWidgetClass parent_class;
void (*add) (GtkContainer *container,
GtkWidget *widget);
void (*remove) (GtkContainer *container,
GtkWidget *widget);
void (*check_resize) (GtkContainer *container);
void (*forall) (GtkContainer *container,
gboolean include_internals,
GtkCallback callback,
gpointer callback_data);
void (*set_focus_child) (GtkContainer
*container,
GtkWidget *widget);
GType (*child_type) (GtkContainer *container);
gchar* (*composite_name) (GtkContainer *container,
GtkWidget *child);
void (*set_child_property) (GtkContainer
*container,
GtkWidget *child,
guint property_id,
const GValue *value,
GParamSpec *pspec);
void (*get_child_property) (GtkContainer
*container,
GtkWidget
*child,
guint property_id,
GValue *value,
GParamSpec *pspec);
/* Padding for future expansion */
void (*_gtk_reserved1) (void);
void (*_gtk_reserved2) (void);
void (*_gtk_reserved3) (void);
void (*_gtk_reserved4) (void);
};
Cheers
Muthu
--- Colossus <colossus 3000 it> wrote:
Hi,
I need to know what are is the signal strings to
give to
g_signal_connect() but I didn't find any specs of
them in doc.
Possible ?
--
Colossus
Cpsed, a Linux OpenGL 3D scene editor
http://cpsed.sourceforge.net/
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
__________________________________
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]