clutter: Remove deprecated clutter_x11_get_stage_visual
https://gitlab.gnome.org/GNOME/mutter/merge_requests/452
This commit is contained in:
parent
9e75ce2ad7
commit
8f0b4767de
@ -1390,37 +1390,6 @@ clutter_x11_get_stage_from_window (Window win)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/**
|
||||
* clutter_x11_get_stage_visual: (skip)
|
||||
* @stage: a #ClutterStage
|
||||
*
|
||||
* Returns an XVisualInfo suitable for creating a foreign window for the given
|
||||
* stage. NOTE: It doesn't do as the name may suggest, which is return the
|
||||
* XVisualInfo that was used to create an existing window for the given stage.
|
||||
*
|
||||
* XXX: It might be best to deprecate this function and replace with something
|
||||
* along the lines of clutter_backend_x11_get_foreign_visual () or perhaps
|
||||
* clutter_stage_x11_get_foreign_visual ()
|
||||
*
|
||||
* Return value: (transfer full): An XVisualInfo suitable for creating a
|
||||
* foreign stage. Use XFree() to free the returned value instead
|
||||
*
|
||||
* Deprecated: 1.2: Use clutter_x11_get_visual_info() instead
|
||||
*
|
||||
* Since: 0.4
|
||||
*/
|
||||
XVisualInfo *
|
||||
clutter_x11_get_stage_visual (ClutterStage *stage)
|
||||
{
|
||||
ClutterBackend *backend = clutter_get_default_backend ();
|
||||
ClutterBackendX11 *backend_x11;
|
||||
|
||||
g_return_val_if_fail (CLUTTER_IS_BACKEND_X11 (backend), NULL);
|
||||
backend_x11 = CLUTTER_BACKEND_X11 (backend);
|
||||
|
||||
return _clutter_backend_x11_get_visual_info (backend_x11);
|
||||
}
|
||||
|
||||
typedef struct {
|
||||
ClutterStageX11 *stage_x11;
|
||||
cairo_rectangle_int_t geom;
|
||||
|
@ -104,9 +104,6 @@ XVisualInfo *clutter_x11_get_visual_info (void);
|
||||
CLUTTER_EXPORT
|
||||
void clutter_x11_set_display (Display * xdpy);
|
||||
|
||||
CLUTTER_DEPRECATED_FOR(clutter_x11_get_visual_info)
|
||||
XVisualInfo *clutter_x11_get_stage_visual (ClutterStage *stage);
|
||||
|
||||
CLUTTER_EXPORT
|
||||
Window clutter_x11_get_stage_window (ClutterStage *stage);
|
||||
CLUTTER_EXPORT
|
||||
|
Loading…
Reference in New Issue
Block a user