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 682789 - Deprecate ClutterGeometry (and remove it for 2.0)
Deprecate ClutterGeometry (and remove it for 2.0)
Status: RESOLVED OBSOLETE
Product: clutter
Classification: Platform
Component: general
git master
Other Linux
: Normal normal
: 2.0
Assigned To: clutter-maint
clutter-maint
Depends on:
Blocks: clutter-2-0
 
 
Reported: 2012-08-27 10:39 UTC by Emmanuele Bassi (:ebassi)
Modified: 2021-06-10 11:33 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
2.0: Remove Geometry from ClutterText::cursor-event (7.44 KB, patch)
2012-10-07 21:49 UTC, Emmanuele Bassi (:ebassi)
none Details | Review
2.0: Remove ClutterGeometry (11.68 KB, patch)
2012-10-07 21:49 UTC, Emmanuele Bassi (:ebassi)
none Details | Review
text: Add ::cursor-changed signal (10.76 KB, patch)
2013-03-26 22:18 UTC, Emmanuele Bassi (:ebassi)
committed Details | Review
Deprecate ClutterGeometry (2.81 KB, patch)
2013-03-26 22:18 UTC, Emmanuele Bassi (:ebassi)
committed Details | Review

Description Emmanuele Bassi (:ebassi) 2012-08-27 10:39:53 UTC
Use ClutterRect or cairo_rectangle_int_t instead.
Comment 1 Emmanuele Bassi (:ebassi) 2012-10-07 21:49:18 UTC
Created attachment 226009 [details] [review]
2.0: Remove Geometry from ClutterText::cursor-event

Instead of passing a Geometry inside a signal handler, we should just
notify that the cursor origin or size has been changed, and let the user
retrieve the cursor's rectangle using a specific method. This allows us
to use ClutterRect.
Comment 2 Emmanuele Bassi (:ebassi) 2012-10-07 21:49:26 UTC
Created attachment 226010 [details] [review]
2.0: Remove ClutterGeometry

Finally, we can remove this bad rectangle type.
Comment 3 Emmanuele Bassi (:ebassi) 2013-03-26 12:23:26 UTC
there's another route: we can add a ::cursor-changed signal that does not have any argument, add clutter_text_get_cursor_rect(), and deprecate ::cursor-event (which is a pretty gross misnomer) in 1.x; then we can just drop the deprecated signal along with the rest, and presto: we have an upgrade path.
Comment 4 Emmanuele Bassi (:ebassi) 2013-03-26 22:18:21 UTC
Created attachment 239896 [details] [review]
text: Add ::cursor-changed signal

Since we are trying to eliminate the ClutterGeometry type, we should
replace the only entry point still using it: the ::cursor-event signal
of ClutterText.

Instead of passing the cursor geometry, we should add an accessor
function.

The combination of signal and getter for the cursor geometry means that
we can deprecate ClutterText::cursor-event, and mark it for removal in
Clutter 2.0.
Comment 5 Emmanuele Bassi (:ebassi) 2013-03-26 22:18:24 UTC
Created attachment 239897 [details] [review]
Deprecate ClutterGeometry

It's a bad rectangle type, with caveats and gotchas. We have better
types, courtesy of Cairo, as well as our own (ClutterRect).
Comment 6 Emmanuele Bassi (:ebassi) 2013-04-05 16:51:36 UTC
pushed to master; the removal of the Geometry type is now part of the overall 2.0 milestone of removing deprecated types.

Attachment 239896 [details] pushed as 1724536 - text: Add ::cursor-changed signal
Attachment 239897 [details] pushed as 8c32637 - Deprecate ClutterGeometry
Comment 7 André Klapper 2021-06-10 11:33:40 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 clutter, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a ticket at
  https://gitlab.gnome.org/GNOME/clutter/-/issues/

Thank you for your understanding and your help.