From 3073acc3b0fbb763207674176e521506fd7d612d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Sat, 8 Jun 2019 17:11:07 +0200 Subject: [PATCH] clutter/stage: Remove offscreen property It was deprecated, unused and unimplemented, so lets remove it. https://gitlab.gnome.org/GNOME/mutter/merge_requests/616 --- clutter/clutter/clutter-enums.h | 2 -- clutter/clutter/clutter-stage.c | 25 ------------------------- 2 files changed, 27 deletions(-) diff --git a/clutter/clutter/clutter-enums.h b/clutter/clutter/clutter-enums.h index f455e0dd5..541de58be 100644 --- a/clutter/clutter/clutter-enums.h +++ b/clutter/clutter/clutter-enums.h @@ -974,7 +974,6 @@ typedef enum /*< prefix=CLUTTER_SCROLL >*/ /** * ClutterStageState: - * @CLUTTER_STAGE_STATE_OFFSCREEN: Offscreen mask (deprecated) * @CLUTTER_STAGE_STATE_ACTIVATED: Activated mask * * Stage state masks, used by the #ClutterEvent of type %CLUTTER_STAGE_STATE. @@ -983,7 +982,6 @@ typedef enum /*< prefix=CLUTTER_SCROLL >*/ */ typedef enum { - CLUTTER_STAGE_STATE_OFFSCREEN = (1 << 2), CLUTTER_STAGE_STATE_ACTIVATED = (1 << 3) } ClutterStageState; diff --git a/clutter/clutter/clutter-stage.c b/clutter/clutter/clutter-stage.c index e9164d5df..280eb0d49 100644 --- a/clutter/clutter/clutter-stage.c +++ b/clutter/clutter/clutter-stage.c @@ -168,7 +168,6 @@ enum PROP_0, PROP_COLOR, - PROP_OFFSCREEN, PROP_CURSOR_VISIBLE, PROP_PERSPECTIVE, PROP_TITLE, @@ -1675,11 +1674,6 @@ clutter_stage_set_property (GObject *object, clutter_value_get_color (value)); break; - case PROP_OFFSCREEN: - if (g_value_get_boolean (value)) - g_warning ("Offscreen stages are currently not supported\n"); - break; - case PROP_CURSOR_VISIBLE: if (g_value_get_boolean (value)) clutter_stage_show_cursor (stage); @@ -1745,10 +1739,6 @@ clutter_stage_get_property (GObject *gobject, } break; - case PROP_OFFSCREEN: - g_value_set_boolean (value, FALSE); - break; - case PROP_CURSOR_VISIBLE: g_value_set_boolean (value, priv->is_cursor_visible); break; @@ -1884,21 +1874,6 @@ clutter_stage_class_init (ClutterStageClass *klass) actor_class->queue_redraw = clutter_stage_real_queue_redraw; actor_class->apply_transform = clutter_stage_real_apply_transform; - /** - * ClutterStage:offscreen: - * - * Whether the stage should be rendered in an offscreen buffer. - * - * Deprecated: 1.10: This property does not do anything. - */ - pspec = g_param_spec_boolean ("offscreen", - P_("Offscreen"), - P_("Whether the main stage should be rendered offscreen"), - FALSE, - CLUTTER_PARAM_READWRITE | G_PARAM_DEPRECATED); - g_object_class_install_property (gobject_class, - PROP_OFFSCREEN, - pspec); /** * ClutterStage:cursor-visible: *