clutter/stage: Remove offscreen property

It was deprecated, unused and unimplemented, so lets remove it.

https://gitlab.gnome.org/GNOME/mutter/merge_requests/616
This commit is contained in:
Jonas Ådahl 2019-06-08 17:11:07 +02:00 committed by Georges Basile Stavracas Neto
parent a61d525111
commit 3073acc3b0
2 changed files with 0 additions and 27 deletions

View File

@ -974,7 +974,6 @@ typedef enum /*< prefix=CLUTTER_SCROLL >*/
/** /**
* ClutterStageState: * ClutterStageState:
* @CLUTTER_STAGE_STATE_OFFSCREEN: Offscreen mask (deprecated)
* @CLUTTER_STAGE_STATE_ACTIVATED: Activated mask * @CLUTTER_STAGE_STATE_ACTIVATED: Activated mask
* *
* Stage state masks, used by the #ClutterEvent of type %CLUTTER_STAGE_STATE. * Stage state masks, used by the #ClutterEvent of type %CLUTTER_STAGE_STATE.
@ -983,7 +982,6 @@ typedef enum /*< prefix=CLUTTER_SCROLL >*/
*/ */
typedef enum typedef enum
{ {
CLUTTER_STAGE_STATE_OFFSCREEN = (1 << 2),
CLUTTER_STAGE_STATE_ACTIVATED = (1 << 3) CLUTTER_STAGE_STATE_ACTIVATED = (1 << 3)
} ClutterStageState; } ClutterStageState;

View File

@ -168,7 +168,6 @@ enum
PROP_0, PROP_0,
PROP_COLOR, PROP_COLOR,
PROP_OFFSCREEN,
PROP_CURSOR_VISIBLE, PROP_CURSOR_VISIBLE,
PROP_PERSPECTIVE, PROP_PERSPECTIVE,
PROP_TITLE, PROP_TITLE,
@ -1675,11 +1674,6 @@ clutter_stage_set_property (GObject *object,
clutter_value_get_color (value)); clutter_value_get_color (value));
break; break;
case PROP_OFFSCREEN:
if (g_value_get_boolean (value))
g_warning ("Offscreen stages are currently not supported\n");
break;
case PROP_CURSOR_VISIBLE: case PROP_CURSOR_VISIBLE:
if (g_value_get_boolean (value)) if (g_value_get_boolean (value))
clutter_stage_show_cursor (stage); clutter_stage_show_cursor (stage);
@ -1745,10 +1739,6 @@ clutter_stage_get_property (GObject *gobject,
} }
break; break;
case PROP_OFFSCREEN:
g_value_set_boolean (value, FALSE);
break;
case PROP_CURSOR_VISIBLE: case PROP_CURSOR_VISIBLE:
g_value_set_boolean (value, priv->is_cursor_visible); g_value_set_boolean (value, priv->is_cursor_visible);
break; break;
@ -1884,21 +1874,6 @@ clutter_stage_class_init (ClutterStageClass *klass)
actor_class->queue_redraw = clutter_stage_real_queue_redraw; actor_class->queue_redraw = clutter_stage_real_queue_redraw;
actor_class->apply_transform = clutter_stage_real_apply_transform; 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: * ClutterStage:cursor-visible:
* *