summaryrefslogtreecommitdiff
path: root/atk/atkrelation.c
Commit message (Collapse)AuthorAgeFilesLines
* Patch from Yue Wang. Bug #575794.Li Yuan2009-03-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | 2009-03-19 Li Yuan <liyuan@goaltender> Patch from Yue Wang. Bug #575794. * atk/atkcomponent.c: * atk/atkdocument.c: * atk/atkhyperlink.c: * atk/atkhyperlinkimpl.c: * atk/atkmisc.c: * atk/atkobject.c: * atk/atkobject.h: * atk/atkrelation.c: * atk/atkrelationset.c: * atk/atkstreamablecontent.c: * atk/atktext.c: * atk/atkutil.c: * atk/atkvalue.c: Change "ATK 1.x" to "1.x". Avoid build error. svn path=/trunk/; revision=1364
* Bug #361757. Add ATK_ROLE_LINK and ATK_ROLE_INPUT_METHOD_WINDOW toLi Yuan2008-11-181-0/+12
| | | | | | | | | | | | 2008-11-14 Li Yuan <li.yuan@sun.com> * atk/atkobject.c: Bug #361757. Add ATK_ROLE_LINK and ATK_ROLE_INPUT_METHOD_WINDOW to role_items so their name can be got. * atk/atkrelation.c: (atk_relation_set_property): Bug #478620. Fix memory when atk_relation_set_property. svn path=/trunk/; revision=1300
* Bug #477708. Only remove the target, not the relation if there are stillLi Yuan2008-11-111-0/+29
| | | | | | | | | | | | | | | | | | 2008-11-10 Li Yuan <li.yuan@sun.com> * atk/atkobject.c: (atk_object_remove_relationship): Bug #477708. Only remove the target, not the relation if there are still are targets. * atk/atkrelation.c: (atk_relation_remove_target): * atk/atkrelation.h: New API. * atk/atkrelationset.c: (atk_relation_set_add), (atk_relation_set_remove): Add/remove the new relation's targets to/from the existed relation if there has been a relation with the same type. * atk/atkstateset.c: (atk_state_set_or_sets): Bug #478595. Return NULL if sets are empty. svn path=/trunk/; revision=1297
* Fix for #382328. add missing const. ditto. ditto.Christian Persch2007-03-221-1/+1
| | | | | | | | | | | | | 2007-03-22 Christian Persch <chpe@gnome.org> Fix for #382328. * atk/atkrelation.c: (atk_relation_type_get_name): add missing const. * atk/atkstate.c: (atk_state_type_get_name): ditto. * atk/atktext.c: (atk_text_attribute_get_name): ditto. svn path=/trunk/; revision=1164
* Point AtkRelation docs to atk_object_add_relationship(), whichBill Haneman2007-02-131-2/+3
| | | | | | simplifies the use of AtkRelation. See docs bug #367627. svn path=/trunk/; revision=1148
* Revise atk-docs.sgml to add indices for deprecated and newBill Haneman2006-06-231-1/+1
| | | | | symbols, and modify the inline docs so that the parser can find them. Bug #313183.
* Update doc to note that atk_relation_add_target was added for version 1.9.Padraig O'Briain2005-04-041-0/+2
| | | | | | | | | | 2005-04-04 Padraig O'Briain <padraig.obriain@sun.com> * atk/atkrelation.c: Update doc to note that atk_relation_add_target was added for version 1.9. * atk/atkrelationset.c: Update doc to note that atk_relation_set_add_relation_by_type was added for version 1.9.
* Replace DEPRECATED by @Deprecated in comments to fix warning whenPadraig O'Briain2004-11-221-0/+26
| | | | | | | | | | | | | | | | | | 2004-11-22 Padraig O'Briain <padraig.obriain@sun.com> * atk/atkobject.c: Replace DEPRECATED by @Deprecated in comments to fix warning when documentation is generated. * atk/atkrelation.[ch]: * docs/tmpl/atkrelation.sgml: Add atk_relation_add_target. * atk/atkrelationset.[ch]: * atk/tmpl/atkrelationset.sgml: Add atk_relation_add_relation_by_type. * docs/atk-sections.txt: Add atk_relation_add_target and atk_relation_add_relation_by_type. Fixes bug #158722.
* Make extra_roles static.Padraig O'Briain2004-05-111-1/+1
| | | | | | | | | | | | | 2004-05-11 Padraig O'Briain <padraig.obriain@sun.com> * atk/atkobject.c: Make extra_roles static. * atk/atkrelation.c: Make extra_names static. Fixes bug #142234. * atk/atkstate.h: Add clarification of state ATK_STATE_ENABLED to documentation.
* Use weak references for objects in a relation instead of object referencesPadraig O'Briain2003-11-031-5/+17
| | | | | | | | | | 2003-11-03 Padraig O'Briain <padraig.obriain@sun.com> * atk/atkrelation.c: Use weak references for objects in a relation instead of object references so that objects are not leaked when corresponding widgets are destroyed. This fixes bug #125725.
* Fix memory leak. (bug #124877)Padraig O'Briain2003-10-241-0/+1
| | | | | | 2003-10-24 Padraig O'Briain <padraig.obriain@sun.com> * atk/atkrelation.c (atk_relation_new): Fix memory leak. (bug #124877)
* Correct returning of FALSE to NULL in functions which return pointer; (bugPadraig O'Briain2003-03-051-1/+1
| | | | | | | | | 2003-03-05 Padraig O'Briain <padraig.obriain@sun.com> * atk/atk-relation.c atk/atkrelationset.c atk/atkstatset.c: Correct returning of FALSE to NULL in functions which return pointer; (bug #107650) reported by Morten Welinder.
* Add property accessible-table-caption-object. This addresses bug #74814.Padraig O'Briain2003-01-211-13/+143
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-01-21 Padraig O'Briain <padraig.obriain@sun.com> * atk/atkobject.c: Add property accessible-table-caption-object. This addresses bug #74814. * atk/atkobject.h: Move some documentation from template file to avoid warnings when building. * atk/atkrelation.c: Add new properties relation and target. This addresses bug #72426. * atktext.[ch]: Add new functions atk_text_get_range_extents and atk_text_get_bounded_ranges. Also added data structures AtkTextRectangle and AtkTextRange, enum AtkTextClipType and helper function atk_text_free_ranges. This addresses bug #100943. (atk_text_get_character_extents): Ensure that the reported width is not negative. This fixes bug #102954) * docs/atk-sections.txt: Add new functions and data items. * docs/tmpl/atk-object.sgml: Remove some docuementation and put in atkobject.h. Add reference to accessible-table-caption-object. * docs/tmpl/atk-relation.sgml: Add new properties * docs/tmpl/atktext.sgml: Add new functions and data items.
* Make use of parent_class consistent; define as gpointer and usePadraig O'Briain2002-02-221-2/+2
| | | | | | | | | | | | | | * atk/atkgobjectaccessible.c atk/atkhyperlink.c atk/atknoopobject.c atk/atknoopobjectfactory.c atkobject.c atk/atkobjectfactory.c atk/atkregistry.c atk/atkrelation.c atk/atkrelationset.c: Make use of parent_class consistent; define as gpointer and use g_type_class_peek_parent() to get it * atk/atktext.c: Delete unused empty line * atk/atkregistry.c atk/atkrelation.c: Make parent_class static
* setup parent class (atk_relation_finalize): chain to parent.Michael Meeks2001-12-271-2/+8
| | | | | | | | | | | 2001-12-15 Michael Meeks <michael@ximian.com> * atk/atkrelation.c (atk_relation_class_init): setup parent class (atk_relation_finalize): chain to parent. * atk/atkrelationset.c (atk_relation_set_class_init), (atk_relation_set_finalize): same fix.
* Use ATK_TYPE_RELATION_TYPE in atk_relation_type_get_name() andPadraig O'Briain2001-12-031-33/+48
| | | | | | | | | | | | | | * atk/atkrelation.c: Use ATK_TYPE_RELATION_TYPE in atk_relation_type_get_name() and atk_relation_type_for_name() * atk/atkstate.c: Use ATK_TYPE_STATE_TYPE in atk_state_type_get_name() and atk_state_type_for_name() * tests/testrelation.c, tests/teststateset.c: Update tests as name componenets are separated by hyphen (-) rather than underline (_)
* Add functions atk_role_get_name() and atk_role_for_name() which transformPadraig O'Briain2001-11-281-1/+1
| | | | | | | | | | | | | | | | * atk/atkobject.[c|h]: Add functions atk_role_get_name() and atk_role_for_name() which transform a role into an untranslated string Update comments in atkobject.h which refer to property names * atk/atkrelation.c: Correct error in atk_relation_type_get_name * docs/atk-sections.txt Added atk_role_get_name and atk_role_for_name * docs/tmpl/*sgml Updated files
* Change atk_relation_type_from_string to atk_relation_type_for_name AddPadraig O'Briain2001-11-221-15/+74
| | | | | | | | | | | | | | | | | | | | | | | | * atk/atk.def, atk/atkrelationtype.h, docs/atk-sections.txt, docs/tmpl/atkrelation.sgml: Change atk_relation_type_from_string to atk_relation_type_for_name Add atk_relation_type_get_name * atk/atkrelationtype.c: Change atk_relation_type_from_string to atk_relation_type_for_name Add atk_relation_type_get_name Update atk_relation_type_register() to correctly register new relation types * atk/atkstate.c: Changed name of static variable type to last_type Changed name of paremeter if atk_state_type_get_name to type to match comments * docs/tmpl/*sgml Updated files * tests/README, tests/Makefile.am Add new test file testrelation.c
* switch to class_peek.Michael Meeks2001-11-221-0/+1
| | | | | | | | | | | | | | | | | | | | 2001-11-22 Michael Meeks <michael@ximian.com> * atk/atkutil.c (atk_add_key_event_listener): switch to class_peek. * atk/atkobject.c (atk_object_real_get_property): add missing 'break'. 2001-11-21 Michael Meeks <michael@ximian.com> * atk/atkrelation.c: pull in string.h for strcmp * atk/atktext.c (atk_text_get_selection): fix bug / warning. * atk/atkutil.c (atk_add_global_event_listener), (atk_get_toolkit_name, atk_get_toolkit_version): constify
* Added missing gtk-doc comments for atk_relation_type_from_string.Bill Haneman2001-11-211-0/+10
|
* Added method for getting an AtkRelationType from a string.Bill Haneman2001-09-291-0/+16
| | | | Rev'ed package as a result.
* Remove all instances of g_return_if_fail (foo != NULL); that arePadraig O'Briain2001-07-271-2/+0
| | | | | | | * atk/*.c: Remove all instances of g_return_if_fail (foo != NULL); that are immediately before a g_return_if_fail (ATK_IS_FOO (foo)); since the second check catches the NULL.
* Updated gtk-doc comment blocks for Oisin BoydellLucy Brophy2001-05-211-13/+13
|
* Added better gtk-doc comments.Brian Cameron2001-05-161-0/+36
|
* Added gtk-doc comments to most function in atkobject.cPadraig O'Briain2001-05-021-2/+2
| | | | | Changed atk-object_get_relation_set to atk_object_ref_relation_set Corrected typos in atkrelation.c and atkrelationset.c
* Change to use GPtrArray instead GArrayPadraig O'Briain2001-05-011-5/+18
| | | | Addess memory mangement issues.
* Make AtkRelation and AtkRelationSet into GObjects.Erwin Ireland2001-04-301-0/+122
Corrected typo in atk_text_set_caret_offset() name