Make the backend add_option function optional.

This commit is contained in:
Richard Purdie 2007-07-09 21:56:06 +00:00
parent b1aa854ec6
commit 87d163db5c
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-07-09 Richard Purdie <rpurdie@openedhand.com>
* clutter/clutter-backend.c:
Make the backend add_option function optional.
2007-07-09 Emmanuele Bassi <ebassi@openedhand.com> 2007-07-09 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-behaviour-depth.h: * clutter/clutter-behaviour-depth.h:

View File

@ -107,9 +107,13 @@ void
_clutter_backend_add_options (ClutterBackend *backend, _clutter_backend_add_options (ClutterBackend *backend,
GOptionGroup *group) GOptionGroup *group)
{ {
ClutterBackendClass *klass;
g_return_if_fail (CLUTTER_IS_BACKEND (backend)); g_return_if_fail (CLUTTER_IS_BACKEND (backend));
CLUTTER_BACKEND_GET_CLASS (backend)->add_options (backend, group); klass = CLUTTER_BACKEND_GET_CLASS (backend);
if (klass->add_options)
return klass->add_options (backend, group);
} }
gboolean gboolean