1
0
Fork 0
mutter-performance-source/clutter/x11
Neil Roberts 8d51617979 Conditionally use g_object_notify_by_pspec
This adds a wrapper macro to clutter-private that will use
g_object_notify_by_pspec if it's compiled against a version of GLib
that is sufficiently new. Otherwise it will notify by the property
name as before by extracting the name from the pspec. The objects can
then store a static array of GParamSpecs and notify using those as
suggested in the documentation for g_object_notify_by_pspec.

Note that the name of the variable used for storing the array of
GParamSpecs is obj_props instead of properties as used in the
documentation because some places in Clutter uses 'properties' as the
name of a local variable.

Mose of the classes in Clutter have been converted using the script in
the bug report. Some classes have not been modified even though the
script picked them up as described here:

json-generator:

 We probably don't want to modify the internal copy of JSON

behaviour-depth:
rectangle:
score:
stage-manager:

 These aren't using the separate GParamSpec* variable style.

blur-effect:
win32/device-manager:

 Don't actually define any properties even though it has the enum.

box-layout:
flow-layout:

  Have some per-child properties that don't work automatically with
  the script.

clutter-model:

  The script gets confused with ClutterModelIter

stage:

  Script gets confused because PROP_USER_RESIZE doesn't match
  "user-resizable"

test-layout:

  Don't really want to modify the tests

http://bugzilla.clutter-project.org/show_bug.cgi?id=2150
2010-08-10 17:12:06 +01:00
..
xsettings x11: Add the XSETTINGS machinery 2010-06-21 15:55:36 +01:00
clutter-backend-x11-private.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
clutter-backend-x11.c docs: Further clarifications 2010-08-03 16:48:53 +01:00
clutter-backend-x11.h x11: Use XKB detectable auto-repeat 2010-07-13 08:27:48 +01:00
clutter-device-manager-x11.c Conditionally use g_object_notify_by_pspec 2010-08-10 17:12:06 +01:00
clutter-device-manager-x11.h device: Impose per-backend DeviceManager 2010-02-17 17:46:48 +00:00
clutter-event-x11.c docs: Improve the text of X11 event-related functions 2010-07-22 10:48:21 +01:00
clutter-input-device-x11.c Conditionally use g_object_notify_by_pspec 2010-08-10 17:12:06 +01:00
clutter-input-device-x11.h device: Make InputDevice an object and subclass it for X11 2010-01-20 00:38:08 +00:00
clutter-keymap-x11.c Conditionally use g_object_notify_by_pspec 2010-08-10 17:12:06 +01:00
clutter-keymap-x11.h x11: Use XKB to translate keycodes into key symbols 2010-07-13 11:54:44 +01:00
clutter-settings-x11.h x11: Add the XSETTINGS machinery 2010-06-21 15:55:36 +01:00
clutter-stage-x11.c x11: Split out conditions and warnings 2010-07-29 17:18:25 +01:00
clutter-stage-x11.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
clutter-x11-enum-types.c.in 2008-06-30 Emmanuele Bassi <ebassi@openedhand.com> 2008-06-30 15:03:42 +00:00
clutter-x11-enum-types.h.in 2008-06-30 Emmanuele Bassi <ebassi@openedhand.com> 2008-06-30 15:03:42 +00:00
clutter-x11-texture-pixmap.c x11: Clean up TexturePixmap header and private data structure 2010-07-21 15:14:36 +01:00
clutter-x11-texture-pixmap.h x11: Clean up TexturePixmap header and private data structure 2010-07-21 15:14:36 +01:00
clutter-x11.h x11: Store the group inside the event platform data 2010-07-13 08:27:48 +01:00
clutter-x11.pc.in Intial Re-layout of the Cogl source code and introduction of a Cogl Winsys 2009-10-16 18:58:50 +01:00
Makefile.am x11: Add a Keymap ancillary object 2010-07-13 08:27:48 +01:00