diff options
author | Padraig O'Briain <padraigo@src.gnome.org> | 2001-11-17 11:56:03 +0000 |
---|---|---|
committer | Padraig O'Briain <padraigo@src.gnome.org> | 2001-11-17 11:56:03 +0000 |
commit | 40be3ed8f7999eb778319be2ba783850cd4ed901 (patch) | |
tree | e1f3897c2ecd8ca7968d2a80201c2b36a642ee7a /atk/atkselection.c | |
parent | 72ba9184a0da324c8827cce908729f5f496e90b4 (diff) | |
download | atk-40be3ed8f7999eb778319be2ba783850cd4ed901.tar.gz |
Remove unused structure _AtkEditableTextIfaceClass
* atk/atkeditabletext.c:
Remove unused structure _AtkEditableTextIfaceClass
* atk/atkobject.[c|h]
Remove signals model_changed and selection_changed
* atk/selection.[c|h]
Add signal selection_changed
* atk/atktable.[c|h]
Remove unused structure _AtkTableIfaceClass
Add signal model_changed
* atk/atktext.[c|h]
Remove unused structure _AtkTextIfaceClass
Add signal text_selection_changed
* docs/tmpl/atkobject.sgml, docs/tmpl/atkselection.sgml,
docs/tmpl/atktable.sgml, atk/tmpl/atktext.sgml:
Documentation changes
Diffstat (limited to 'atk/atkselection.c')
-rwxr-xr-x | atk/atkselection.c | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/atk/atkselection.c b/atk/atkselection.c index 25bb656..cc157d7 100755 --- a/atk/atkselection.c +++ b/atk/atkselection.c @@ -19,6 +19,15 @@ #include "atkselection.h" +enum { + SELECTION_CHANGED, + LAST_SIGNAL +}; + +static void atk_selection_base_init (gpointer *g_class); + +static guint atk_selection_signals[LAST_SIGNAL] = { 0 }; + GType atk_selection_get_type () { @@ -28,7 +37,7 @@ atk_selection_get_type () GTypeInfo tinfo = { sizeof (AtkSelectionIface), - (GBaseInitFunc) NULL, + (GBaseInitFunc)atk_selection_base_init, (GBaseFinalizeFunc) NULL, }; @@ -39,6 +48,27 @@ atk_selection_get_type () return type; } +static void +atk_selection_base_init (gpointer *g_class) +{ + static gboolean initialized = FALSE; + + if (! initialized) + { + atk_selection_signals[SELECTION_CHANGED] = + g_signal_new ("selection_changed", + ATK_TYPE_SELECTION, + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (AtkSelectionIface, selection_changed), + (GSignalAccumulator) NULL, NULL, + g_cclosure_marshal_VOID__VOID, + G_TYPE_NONE, 0); + + + initialized = TRUE; + } +} + /** * atk_selection_add_selection: * @selection: a #GObject instance that implements AtkSelectionIface |