mirror of
https://github.com/brl/mutter.git
synced 2025-08-13 20:04:51 +00:00
clutter: StageWindow: Use G_DECLARE_INTERFACE()
It cuts away a bit of the GObject boilerplate, gives us support for `g_autoptr`, and removes the typedef hack inside clutter-stage-window.c. https://gitlab.gnome.org/GNOME/mutter/merge_requests/380
This commit is contained in:

committed by
Jonas Ådahl

parent
f9e33a89fd
commit
b67394dcd1
@@ -45,7 +45,7 @@ struct _MetaStageNative
|
||||
};
|
||||
|
||||
static void
|
||||
clutter_stage_window_iface_init (ClutterStageWindowIface *iface);
|
||||
clutter_stage_window_iface_init (ClutterStageWindowInterface *iface);
|
||||
|
||||
G_DEFINE_TYPE_WITH_CODE (MetaStageNative, meta_stage_native,
|
||||
CLUTTER_TYPE_STAGE_COGL,
|
||||
@@ -219,7 +219,7 @@ meta_stage_native_class_init (MetaStageNativeClass *klass)
|
||||
}
|
||||
|
||||
static void
|
||||
clutter_stage_window_iface_init (ClutterStageWindowIface *iface)
|
||||
clutter_stage_window_iface_init (ClutterStageWindowInterface *iface)
|
||||
{
|
||||
iface->can_clip_redraws = meta_stage_native_can_clip_redraws;
|
||||
iface->get_geometry = meta_stage_native_get_geometry;
|
||||
|
Reference in New Issue
Block a user