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 351427 - Use at-poke to expose AtkDocument interface
Use at-poke to expose AtkDocument interface
Status: RESOLVED FIXED
Product: at-poke
Classification: Deprecated
Component: general
unspecified
Other All
: Normal enhancement
: ---
Assigned To: bill.haneman
bill.haneman
Depends on:
Blocks:
 
 
Reported: 2006-08-15 11:04 UTC by Ginn Chen
Modified: 2006-08-23 17:42 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (12.29 KB, patch)
2006-08-15 11:04 UTC, Ginn Chen
needs-work Details | Review
patch v2 (11.02 KB, patch)
2006-08-23 09:30 UTC, Ginn Chen
none Details | Review
patch merged with patch for bug 345706, as applied. (28.88 KB, patch)
2006-08-23 17:40 UTC, bill.haneman
committed Details | Review

Description Ginn Chen 2006-08-15 11:04:13 UTC
Use at-poke to expose AtkDocument interface
Comment 1 Ginn Chen 2006-08-15 11:04:53 UTC
Created attachment 70933 [details] [review]
patch
Comment 2 bill.haneman 2006-08-21 13:25:00 UTC
Comment on attachment 70933 [details] [review]
patch

The patch seems to have some problems, it changes the attribution of too much of the .glade file.  Also, we should not be using document_if_type, only document_if_locale and document_if_attributes.

Lastly, I am not a maintainer of at-poke (officially), so I can't approve these patches.
Comment 3 Ginn Chen 2006-08-23 09:30:28 UTC
Created attachment 71441 [details] [review]
patch v2

Removed document_type part.

I've no experience with .glade2 files, so I don't know how to make a better patch for at-poke.glade2.
Comment 4 Michael Meeks 2006-08-23 09:55:31 UTC
The patch looks fine to me - but this code:

Is more normally done with a GString and g_string_append ...

+	attributes_str = g_strdup ("");
+	for ( i = 0; i < attributeSet->len; ++ i)
+	  {
+	    tmp = g_strconcat (attributes_str,
+			       (i == 0) ? "" : " ",
+			       attributeSet->attributes [i],
+			       (i != attributeSet->len - 1) ? ";" : "",
+			       NULL);
+	    g_free (attributes_str);
+	    attributes_str = tmp;

Otherwise this looks lovely.

Are there any document events that we should be displaying / decoding ?

Otherwise - it'd be great if someone could commit this :-)

Thanks.
Comment 5 bill.haneman 2006-08-23 11:44:21 UTC
Thanks Michael.  Michael and Ginn, if you don't mind, I'll make the small change suggested above and commit the resulting patch.

Ginn I agree that it may be hard to know how to reduce the size of the .glade diff.

Also Michael, is my patch for RFE 345706 OK to commit?  I could merge with this patch.
Comment 6 bill.haneman 2006-08-23 17:40:49 UTC
Created attachment 71481 [details] [review]
patch merged with patch for bug 345706, as applied.

Thanks Michael and Ginn!