diff options
author | Padraig O'Briain <padraig.obriain@sun.com> | 2004-04-20 13:47:42 +0000 |
---|---|---|
committer | Padraig O'Briain <padraigo@src.gnome.org> | 2004-04-20 13:47:42 +0000 |
commit | f33a524c445c5d72b03e1c01305c60083b7de965 (patch) | |
tree | e2a983ca2c7e6bf7ffd6b337e6745ff4e0bbb216 | |
parent | 9bf5a0d1731142d1961a7ab5f5ccd3059fe67d87 (diff) | |
download | atk-f33a524c445c5d72b03e1c01305c60083b7de965.tar.gz |
Increment version to 1.7.0.
2004-04-20 Padraig O'Briain <padraig.obriain@sun.com>
* configure.in: Increment version to 1.7.0.
* atk/atkcomponent.[ch]: Add new signal "bounds_changed".
* docs/tmpl/atkcomponent.sgml: Add new signal "bounds_changed".
Fixes bug #140476.
* atk/atkrelationtype.h: Add new relation ATK_RELATION_PARENT_WINDOW_OF.
* atk/atkstate.h: Add new state ATK_STATE_TRUNCATED.
* docs/tmpl/atkrelation.sgml: Add new relation
* docs/tmpl/atkstate.sgml: Add new state ATK_STATE_TRUNCATED
Fixes bug #133375.
* atk/atktext.c: Make extra_attributes static.
-rw-r--r-- | ChangeLog | 18 | ||||
-rwxr-xr-x | atk/atkcomponent.c | 18 | ||||
-rwxr-xr-x | atk/atkcomponent.h | 15 | ||||
-rwxr-xr-x | atk/atkrelationtype.h | 2 | ||||
-rwxr-xr-x | atk/atkstate.h | 2 | ||||
-rwxr-xr-x | atk/atktext.c | 2 | ||||
-rw-r--r-- | configure.in | 6 | ||||
-rw-r--r-- | docs/tmpl/atkcomponent.sgml | 7 | ||||
-rw-r--r-- | docs/tmpl/atkrelation.sgml | 1 | ||||
-rw-r--r-- | docs/tmpl/atkstate.sgml | 1 |
10 files changed, 67 insertions, 5 deletions
@@ -1,3 +1,21 @@ +2004-04-20 Padraig O'Briain <padraig.obriain@sun.com> + + * configure.in: Increment version to 1.7.0. + + * atk/atkcomponent.[ch]: Add new signal "bounds_changed". + * docs/tmpl/atkcomponent.sgml: Add new signal "bounds_changed". + + Fixes bug #140476. + + * atk/atkrelationtype.h: Add new relation ATK_RELATION_PARENT_WINDOW_OF. + * atk/atkstate.h: Add new state ATK_STATE_TRUNCATED. + * docs/tmpl/atkrelation.sgml: Add new relation + * docs/tmpl/atkstate.sgml: Add new state ATK_STATE_TRUNCATED + + Fixes bug #133375. + + * atk/atktext.c: Make extra_attributes static. + 2004-04-19 Padraig O'Briain <padraig.obriain@sun.com> * ===== Released 1.6.1===== diff --git a/atk/atkcomponent.c b/atk/atkcomponent.c index 3b44f68..bacc3ef 100755 --- a/atk/atkcomponent.c +++ b/atk/atkcomponent.c @@ -20,6 +20,11 @@ #include "atkcomponent.h" +enum { + BOUNDS_CHANGED, + LAST_SIGNAL +}; + static void atk_component_base_init (AtkComponentIface *class); static gboolean atk_component_real_contains (AtkComponent *component, @@ -41,6 +46,8 @@ static void atk_component_real_get_size (AtkComponent *comp gint *width, gint *height); +static guint atk_component_signals[LAST_SIGNAL] = { 0 }; + GType atk_component_get_type (void) { @@ -72,6 +79,17 @@ atk_component_base_init (AtkComponentIface *class) class->contains = atk_component_real_contains; class->get_position = atk_component_real_get_position; class->get_size = atk_component_real_get_size; + + atk_component_signals[BOUNDS_CHANGED] = + g_signal_new ("bounds_changed", + ATK_TYPE_COMPONENT, + G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (AtkComponentIface, bounds_changed), + (GSignalAccumulator) NULL, NULL, + g_cclosure_marshal_VOID__BOXED, + G_TYPE_NONE, 0); + + initialized = TRUE; } } diff --git a/atk/atkcomponent.h b/atk/atkcomponent.h index ccb73d1..5b4b834 100755 --- a/atk/atkcomponent.h +++ b/atk/atkcomponent.h @@ -47,6 +47,15 @@ typedef struct _AtkComponentIface AtkComponentIface; typedef void (*AtkFocusHandler) (AtkObject*, gboolean); +typedef struct _AtkRectangle AtkRectangle; + +struct _AtkRectangle +{ + gint x; + gint y; + gint width; + gint height; +}; struct _AtkComponentIface { @@ -97,7 +106,11 @@ struct _AtkComponentIface AtkLayer (* get_layer) (AtkComponent *component); gint (* get_mdi_zorder) (AtkComponent *component); - AtkFunction pad1; + /* + * signal handlers + */ + void (* bounds_changed) (AtkComponent *component, + AtkRectangle *bounds); AtkFunction pad2; }; diff --git a/atk/atkrelationtype.h b/atk/atkrelationtype.h index 4d2629f..58f20de 100755 --- a/atk/atkrelationtype.h +++ b/atk/atkrelationtype.h @@ -44,6 +44,7 @@ extern "C" { *@ATK_RELATION_EMBEDDED_BY: Inverse of %ATK_RELATION_EMBEDS, indicates that * this object's content is visualy embedded in another object. *@ATK_RELATION_POPUP_FOR: Indicates that an object is a popup for another object. + *@ATK_RELATION_PARENT_WINDOW_OF: Indicates that an object is a parent window of another object. *@ATK_RELATION_LAST_DEFINED: * *Describes the type of the relation @@ -63,6 +64,7 @@ typedef enum ATK_RELATION_EMBEDS, ATK_RELATION_EMBEDDED_BY, ATK_RELATION_POPUP_FOR, + ATK_RELATION_PARENT_WINDOW_OF, ATK_RELATION_LAST_DEFINED } AtkRelationType; diff --git a/atk/atkstate.h b/atk/atkstate.h index d2a1902..3950651 100755 --- a/atk/atkstate.h +++ b/atk/atkstate.h @@ -61,6 +61,7 @@ extern "C" { * is sent when children become 'active' (i.e. are selected or navigated to onscreen). * Used to prevent need to enumerate all children in very large containers, like tables. *@ATK_STATE_INDETERMINATE: Indicates that a check box is in a state other than checked or not checked. + *@ATK_STATE_TRUNCATED: Indicates that an object is truncated, e.g. a text value in a speradsheet cell. *@ATK_STATE_LAST_DEFINED: Not a valid state, used for finding end of enumeration * *The possible types of states of an object @@ -98,6 +99,7 @@ typedef enum ATK_STATE_VISIBLE, ATK_STATE_MANAGES_DESCENDANTS, ATK_STATE_INDETERMINATE, + ATK_STATE_TRUNCATED, ATK_STATE_LAST_DEFINED } AtkStateType; diff --git a/atk/atktext.c b/atk/atktext.c index d9ceb05..b067925 100755 --- a/atk/atktext.c +++ b/atk/atktext.c @@ -23,7 +23,7 @@ #include <string.h> -GPtrArray *extra_attributes = NULL; +static GPtrArray *extra_attributes = NULL; enum { TEXT_CHANGED, diff --git a/configure.in b/configure.in index 2b13ec8..58fb6e0 100644 --- a/configure.in +++ b/configure.in @@ -16,8 +16,8 @@ dnl set ATK_BINARY_AGE _and_ ATK_INTERFACE_AGE to 0. dnl The triplet m4_define([atk_major_version], [1]) -m4_define([atk_minor_version], [6]) -m4_define([atk_micro_version], [1]) +m4_define([atk_minor_version], [7]) +m4_define([atk_micro_version], [0]) m4_define([atk_version], [atk_major_version.atk_minor_version.atk_micro_version]) @@ -25,7 +25,7 @@ dnl The X.Y in -latk-X.Y line. This is expected to stay 1.0 until Atk 2. m4_define([atk_api_version], [1.0]) dnl Number of releases since we've added interfaces -m4_define([atk_interface_age], [1]) +m4_define([atk_interface_age], [0]) m4_define([atk_binary_age], [m4_eval(100 * atk_minor_version + atk_micro_version)]) diff --git a/docs/tmpl/atkcomponent.sgml b/docs/tmpl/atkcomponent.sgml index 3784d36..4ac964a 100644 --- a/docs/tmpl/atkcomponent.sgml +++ b/docs/tmpl/atkcomponent.sgml @@ -32,6 +32,13 @@ The AtkComponent structure does not contain any fields. </para> +<!-- ##### SIGNAL AtkComponent::bounds-changed ##### --> +<para> + +</para> + +@atkcomponent: the object which received the signal. + <!-- ##### FUNCTION atk_component_add_focus_handler ##### --> <para> diff --git a/docs/tmpl/atkrelation.sgml b/docs/tmpl/atkrelation.sgml index 2a05316..90316f7 100644 --- a/docs/tmpl/atkrelation.sgml +++ b/docs/tmpl/atkrelation.sgml @@ -54,6 +54,7 @@ The AtkRelation structure should not be accessed directly. @ATK_RELATION_EMBEDS: @ATK_RELATION_EMBEDDED_BY: @ATK_RELATION_POPUP_FOR: +@ATK_RELATION_PARENT_WINDOW_OF: @ATK_RELATION_LAST_DEFINED: <!-- ##### FUNCTION atk_relation_type_register ##### --> diff --git a/docs/tmpl/atkstate.sgml b/docs/tmpl/atkstate.sgml index a3ca5c6..9e4ba71 100644 --- a/docs/tmpl/atkstate.sgml +++ b/docs/tmpl/atkstate.sgml @@ -51,6 +51,7 @@ an component is described by its AtkStateSet, which is a set of AtkStates. @ATK_STATE_VISIBLE: @ATK_STATE_MANAGES_DESCENDANTS: @ATK_STATE_INDETERMINATE: +@ATK_STATE_TRUNCATED: @ATK_STATE_LAST_DEFINED: <!-- ##### TYPEDEF AtkState ##### --> |