|
9 | 9 | #include <meta/meta-x11-display.h> |
10 | 10 | #include <meta/compositor-muffin.h> |
11 | 11 | #include <meta/meta-cursor-tracker.h> |
12 | | -#include <meta/meta-background-actor.h> |
13 | 12 | #include <meta/meta-settings.h> |
14 | 13 | #include <meta/meta-backend.h> |
15 | 14 | #include <meta/util.h> |
@@ -145,6 +144,8 @@ cinnamon_global_get_property(GObject *object, |
145 | 144 | g_value_set_object (value, meta_get_top_window_group_for_display (global->meta_display)); |
146 | 145 | break; |
147 | 146 | case PROP_BACKGROUND_ACTOR: |
| 147 | + g_warning_once ("global.background_actor is deprecated and X11-only. " |
| 148 | + "Use global.get_background_actors() instead."); |
148 | 149 | g_value_set_object (value, meta_get_x11_background_actor_for_display (global->meta_display)); |
149 | 150 | break; |
150 | 151 | case PROP_DESKLET_CONTAINER: |
@@ -392,9 +393,9 @@ cinnamon_global_class_init (CinnamonGlobalClass *klass) |
392 | 393 | PROP_BACKGROUND_ACTOR, |
393 | 394 | g_param_spec_object ("background-actor", |
394 | 395 | "Background Actor", |
395 | | - "Actor drawing root window background", |
| 396 | + "Actor drawing root window background (X11 only, deprecated)", |
396 | 397 | CLUTTER_TYPE_ACTOR, |
397 | | - G_PARAM_READABLE)); |
| 398 | + G_PARAM_READABLE | G_PARAM_DEPRECATED)); |
398 | 399 | g_object_class_install_property (gobject_class, |
399 | 400 | PROP_DESKLET_CONTAINER, |
400 | 401 | g_param_spec_object ("desklet-container", |
@@ -760,6 +761,23 @@ cinnamon_global_get_window_actors (CinnamonGlobal *global) |
760 | 761 | return meta_get_window_actors (global->meta_display); |
761 | 762 | } |
762 | 763 |
|
| 764 | +/** |
| 765 | + * cinnamon_global_get_background_actors: |
| 766 | + * |
| 767 | + * Gets the list of per-monitor background actors created by |
| 768 | + * meta_create_background_for_monitor(). These are the live actors in the |
| 769 | + * scene graph and can have effects applied to them directly. |
| 770 | + * |
| 771 | + * Return value: (element-type Clutter.Actor) (transfer none): the list of background actors |
| 772 | + */ |
| 773 | +GList * |
| 774 | +cinnamon_global_get_background_actors (CinnamonGlobal *global) |
| 775 | +{ |
| 776 | + g_return_val_if_fail (CINNAMON_IS_GLOBAL (global), NULL); |
| 777 | + |
| 778 | + return meta_get_background_actors_for_display (global->meta_display); |
| 779 | +} |
| 780 | + |
763 | 781 | static void |
764 | 782 | global_stage_notify_width (GObject *gobject, |
765 | 783 | GParamSpec *pspec, |
|
0 commit comments