After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 382323 - reduce relocations in atk
reduce relocations in atk
Status: RESOLVED OBSOLETE
Product: atk
Classification: Platform
Component: atk
git master
Other Linux
: Normal normal
: ---
Assigned To: ATK maintainer(s)
ATK maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2006-12-04 18:05 UTC by Christian Persch
Modified: 2021-06-10 11:24 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (15.32 KB, patch)
2006-12-04 18:06 UTC, Christian Persch
none Details | Review
[PATCH] Use G_DEFINE_TYPE[_WITH_CODE] where possible. (65.37 KB, patch)
2007-12-24 14:16 UTC, Christian Persch
none Details | Review

Description Christian Persch 2006-12-04 18:05:48 UTC
It's unnecessary to make GTypeInfo and GInterfaceInfo structs static.
Comment 1 Christian Persch 2006-12-04 18:06:14 UTC
Created attachment 77661 [details] [review]
patch
Comment 2 Christian Persch 2007-12-07 23:16:29 UTC
Could someone please review this patch?
Comment 3 Christian Persch 2007-12-24 14:16:05 UTC
Created attachment 101543 [details] [review]
[PATCH] Use G_DEFINE_TYPE[_WITH_CODE] where possible.

For the rest of the atk_foo_get_type() functions, remove the relocations,
and use g_type_register_static_simple where possible.
Use g_static_intern_string for the signal names.
Mark the param spec's nick, blurb and string as static.
Bug #382323.
---
 atk/atkaction.c            |   27 ++++----
 atk/atkcomponent.c         |   34 ++++++----
 atk/atkdocument.c          |   21 ++++---
 atk/atkeditabletext.c      |   28 ++++----
 atk/atkgobjectaccessible.c |   31 +---------
 atk/atkhyperlink.c         |   58 ++++-------------
 atk/atkhyperlinkimpl.c     |   24 ++++---
 atk/atkhypertext.c         |   18 +++---
 atk/atkimage.c             |   26 ++++----
 atk/atkmisc.c              |   30 ++-------
 atk/atknoopobject.c        |  151 +++++++++-----------------------------------
 atk/atknoopobjectfactory.c |   39 +++---------
 atk/atkobject.c            |  126 +++++++++++++++++--------------------
 atk/atkobjectfactory.c     |   31 ++--------
 atk/atkregistry.c          |   38 +----------
 atk/atkrelation.c          |   41 +++---------
 atk/atkrelationset.c       |   36 +++--------
 atk/atkselection.c         |   17 +++--
 atk/atkstateset.c          |   28 ++-------
 atk/atkstreamablecontent.c |   27 ++++----
 atk/atktable.c             |   36 ++++++-----
 atk/atktext.c              |   38 ++++++------
 atk/atkutil.c              |   32 +++-------
 atk/atkvalue.c             |   27 ++++----
 configure.in               |   11 +---
 25 files changed, 334 insertions(+), 641 deletions(-)
Comment 4 Matthias Clasen 2008-11-25 08:04:23 UTC
Patch looks fine to me.
Comment 5 André Klapper 2011-06-23 22:05:20 UTC
[Mass-reassigning open atk bug reports for better trackability as requested in https://bugzilla.gnome.org/show_bug.cgi?id=653179 .
PLEASE NOTE:
If you have watched the previous assignee of this bug report as a workaround for actually getting notified of changes in atk bugs, you yourself will now have to add atk-maint@gnome.bugs to your watchlist at the bottom of https://bugzilla.gnome.org/userprefs.cgi?tab=email to keep watching atk bug reports in GNOME Bugzilla.
Sorry for the noise: Feel free to filter for this comment in order to mass-delete the triggered bugmail.]
Comment 6 André Klapper 2021-06-10 11:24:54 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version of atk, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a ticket at
  https://gitlab.gnome.org/GNOME/atk/-/issues/

Thank you for your understanding and your help.