Increment version to 1.7.0.
authorPadraig O'Briain <padraig.obriain@sun.com>
Tue, 20 Apr 2004 13:47:42 +0000 (13:47 +0000)
committerPadraig O'Briain <padraigo@src.gnome.org>
Tue, 20 Apr 2004 13:47:42 +0000 (13:47 +0000)
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.

ChangeLog
atk/atkcomponent.c
atk/atkcomponent.h
atk/atkrelationtype.h
atk/atkstate.h
atk/atktext.c
configure.in
docs/tmpl/atkcomponent.sgml
docs/tmpl/atkrelation.sgml
docs/tmpl/atkstate.sgml

index c04d80e..87584f8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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=====
index 3b44f68..bacc3ef 100755 (executable)
 
 #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;
     }
 }
 
index ccb73d1..5b4b834 100755 (executable)
@@ -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;
 };
 
index 4d2629f..58f20de 100755 (executable)
@@ -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;
 
index d2a1902..3950651 100755 (executable)
@@ -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;
 
index d9ceb05..b067925 100755 (executable)
@@ -23,7 +23,7 @@
 
 #include <string.h>
 
-GPtrArray *extra_attributes = NULL;
+static GPtrArray *extra_attributes = NULL;
 
 enum {
   TEXT_CHANGED,
index 2b13ec8..58fb6e0 100644 (file)
@@ -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)])
index 3784d36..4ac964a 100644 (file)
@@ -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>
 
index 2a05316..90316f7 100644 (file)
@@ -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 ##### -->
index a3ca5c6..9e4ba71 100644 (file)
@@ -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 ##### -->