Make Mutter 3.28 the minimum libmutter version (#640)

This commit is contained in:
Corentin Noël 2019-11-20 18:10:51 +01:00 committed by Daniel Foré
parent 7845530b9b
commit 2c22f2de80
37 changed files with 16 additions and 267 deletions

View File

@ -298,11 +298,7 @@ namespace Gala {
#endif
public static int get_ui_scaling_factor () {
#if HAS_MUTTER326
return Meta.Backend.get_backend ().get_settings ().get_ui_scaling_factor ();
#else
return 1;
#endif
}
/**

View File

@ -117,94 +117,6 @@ libmutter_dep = []
vala_flags = []
mutter318_dep = dependency('libmutter', version: ['>= 3.18.3', '< 3.19'], required: false)
if mutter318_dep.found()
mutter_packages_command = [
'--pkg', 'libmutter',
'--pkg', 'cogl-1.0',
'--pkg', 'clutter-1.0'
]
libmutter_dep = dependency('libmutter')
pkgconf.set('MUTTER_PKGS', 'libmutter >= 3.18.3')
mutter_dep = [libmutter_dep, dependency('cogl-1.0'), dependency('clutter-1.0')]
endif
mutter320_dep = dependency('libmutter', version: ['>= 3.19', '< 3.21'], required: false)
if mutter320_dep.found()
mutter_packages_command = [
'--pkg', 'libmutter',
'--pkg', 'cogl-1.0',
'--pkg', 'clutter-1.0'
]
libmutter_dep = dependency('libmutter', version: '>= 3.20.3')
pkgconf.set('MUTTER_PKGS', 'libmutter >= 3.20.3')
mutter_dep = [libmutter_dep, dependency('cogl-1.0'), dependency('clutter-1.0')]
vala_flags += ['--define', 'HAS_MUTTER320']
endif
mutter322_dep = dependency('libmutter', version: ['>= 3.21', '< 3.23'], required: false)
if mutter322_dep.found()
mutter_packages_command = [
'--pkg', 'libmutter',
'--pkg', 'mutter-cogl-1.0',
'--pkg', 'mutter-cogl-pango-1.0',
'--pkg', 'mutter-cogl-path-1.0',
'--pkg', 'mutter-clutter-1.0'
]
libmutter_dep = dependency('libmutter', version: '>= 3.22.0')
pkgconf.set('MUTTER_PKGS', 'libmutter >= 3.22.0')
mutter_dep = [
libmutter_dep,
dependency('mutter-cogl-1.0'), dependency('mutter-cogl-pango-1.0'),
dependency('mutter-cogl-path-1.0'), dependency('mutter-clutter-1.0')
]
vala_flags += ['--define', 'HAS_MUTTER320', '--define', 'HAS_MUTTER322']
add_project_arguments(['-DCLUTTER_ENABLE_COMPOSITOR_API', '-DCLUTTER_ENABLE_EXPERIMENTAL_API',
'-DCOGL_ENABLE_EXPERIMENTAL_API', '-DCOGL_ENABLE_EXPERIMENTAL_2_0_API'], language: 'c')
endif
mutter324_dep = dependency('libmutter-0', version: ['>= 3.23', '< 3.25'], required: false)
if mutter324_dep.found()
mutter_packages_command = [
'--pkg', 'libmutter-0',
'--pkg', 'mutter-cogl-0',
'--pkg', 'mutter-cogl-pango-0',
'--pkg', 'mutter-cogl-path-0',
'--pkg', 'mutter-clutter-0'
]
libmutter_dep = dependency('libmutter-0', version: '>= 3.24.0')
pkgconf.set('MUTTER_PKGS', 'libmutter-0 >= 3.24.0')
mutter_dep = [
libmutter_dep,
dependency('mutter-cogl-0'), dependency('mutter-cogl-pango-0'),
dependency('mutter-cogl-path-0'), dependency('mutter-clutter-0')
]
vala_flags += ['--define', 'HAS_MUTTER320', '--define', 'HAS_MUTTER322', '--define', 'HAS_MUTTER324']
add_project_arguments(['-DCLUTTER_ENABLE_COMPOSITOR_API', '-DCLUTTER_ENABLE_EXPERIMENTAL_API',
'-DCOGL_ENABLE_EXPERIMENTAL_API', '-DCOGL_ENABLE_EXPERIMENTAL_2_0_API'], language: 'c')
endif
mutter326_dep = dependency('libmutter-1', version: ['>= 3.25', '< 3.27'], required: false)
if mutter326_dep.found()
mutter_packages_command = [
'--pkg', 'libmutter-1',
'--pkg', 'mutter-cogl-1',
'--pkg', 'mutter-cogl-pango-1',
'--pkg', 'mutter-cogl-path-1',
'--pkg', 'mutter-clutter-1'
]
libmutter_dep = dependency('libmutter-1', version: '>= 3.26.0')
pkgconf.set('MUTTER_PKGS', 'libmutter-1 >= 3.26.0')
mutter_dep = [
libmutter_dep,
dependency('mutter-cogl-1'), dependency('mutter-cogl-pango-1'),
dependency('mutter-cogl-path-1'), dependency('mutter-clutter-1')
]
vala_flags += ['--define', 'HAS_MUTTER320', '--define', 'HAS_MUTTER322', '--define', 'HAS_MUTTER324', '--define', 'HAS_MUTTER326']
add_project_arguments(['-DCLUTTER_ENABLE_COMPOSITOR_API', '-DCLUTTER_ENABLE_EXPERIMENTAL_API',
'-DCOGL_ENABLE_EXPERIMENTAL_API', '-DCOGL_ENABLE_EXPERIMENTAL_2_0_API'], language: 'c')
endif
mutter328_dep = dependency('libmutter-2', version: ['>= 3.27', '< 3.29'], required: false)
if mutter328_dep.found()
mutter_packages_command = [
@ -221,7 +133,7 @@ if mutter328_dep.found()
dependency('mutter-cogl-2'), dependency('mutter-cogl-pango-2'),
dependency('mutter-cogl-path-2'), dependency('mutter-clutter-2')
]
vala_flags += ['--define', 'HAS_MUTTER320', '--define', 'HAS_MUTTER322', '--define', 'HAS_MUTTER324', '--define', 'HAS_MUTTER326', '--define', 'HAS_MUTTER328']
vala_flags += []
add_project_arguments(['-DCLUTTER_ENABLE_COMPOSITOR_API', '-DCLUTTER_ENABLE_EXPERIMENTAL_API',
'-DCOGL_ENABLE_EXPERIMENTAL_API', '-DCOGL_ENABLE_EXPERIMENTAL_2_0_API'], language: 'c')
endif
@ -242,7 +154,7 @@ if mutter330_dep.found()
dependency('mutter-cogl-3'), dependency('mutter-cogl-pango-3'),
dependency('mutter-cogl-path-3'), dependency('mutter-clutter-3')
]
vala_flags += ['--define', 'HAS_MUTTER320', '--define', 'HAS_MUTTER322', '--define', 'HAS_MUTTER324', '--define', 'HAS_MUTTER326', '--define', 'HAS_MUTTER328', '--define', 'HAS_MUTTER330']
vala_flags += ['--define', 'HAS_MUTTER330']
add_project_arguments(['-DCLUTTER_ENABLE_COMPOSITOR_API', '-DCLUTTER_ENABLE_EXPERIMENTAL_API',
'-DCOGL_ENABLE_EXPERIMENTAL_API', '-DCOGL_ENABLE_EXPERIMENTAL_2_0_API'], language: 'c')
endif
@ -263,7 +175,7 @@ if mutter332_dep.found()
dependency('mutter-cogl-4'), dependency('mutter-cogl-pango-4'),
dependency('mutter-cogl-path-4'), dependency('mutter-clutter-4')
]
vala_flags += ['--define', 'HAS_MUTTER320', '--define', 'HAS_MUTTER322', '--define', 'HAS_MUTTER324', '--define', 'HAS_MUTTER326', '--define', 'HAS_MUTTER328', '--define', 'HAS_MUTTER330', '--define', 'HAS_MUTTER332']
vala_flags += ['--define', 'HAS_MUTTER330', '--define', 'HAS_MUTTER332']
add_project_arguments(['-DCLUTTER_ENABLE_COMPOSITOR_API', '-DCLUTTER_ENABLE_EXPERIMENTAL_API',
'-DCOGL_ENABLE_EXPERIMENTAL_API', '-DCOGL_ENABLE_EXPERIMENTAL_2_0_API'], language: 'c')
endif
@ -284,7 +196,7 @@ if mutter334_dep.found()
dependency('mutter-cogl-5'), dependency('mutter-cogl-pango-5'),
dependency('mutter-cogl-path-5'), dependency('mutter-clutter-5')
]
vala_flags += ['--define', 'HAS_MUTTER320', '--define', 'HAS_MUTTER322', '--define', 'HAS_MUTTER324', '--define', 'HAS_MUTTER326', '--define', 'HAS_MUTTER328', '--define', 'HAS_MUTTER330', '--define', 'HAS_MUTTER332', '--define', 'HAS_MUTTER334']
vala_flags += ['--define', 'HAS_MUTTER330', '--define', 'HAS_MUTTER332', '--define', 'HAS_MUTTER334']
add_project_arguments(['-DCLUTTER_ENABLE_COMPOSITOR_API', '-DCLUTTER_ENABLE_EXPERIMENTAL_API',
'-DCOGL_ENABLE_EXPERIMENTAL_API', '-DCOGL_ENABLE_EXPERIMENTAL_2_0_API'], language: 'c')
endif
@ -305,7 +217,7 @@ if mutter336_dep.found()
dependency('mutter-cogl-6'), dependency('mutter-cogl-pango-6'),
dependency('mutter-cogl-path-6'), dependency('mutter-clutter-6')
]
vala_flags += ['--define', 'HAS_MUTTER320', '--define', 'HAS_MUTTER322', '--define', 'HAS_MUTTER324', '--define', 'HAS_MUTTER326', '--define', 'HAS_MUTTER328', '--define', 'HAS_MUTTER330', '--define', 'HAS_MUTTER332', '--define', 'HAS_MUTTER334', '--define', 'HAS_MUTTER336']
vala_flags += ['--define', 'HAS_MUTTER330', '--define', 'HAS_MUTTER332', '--define', 'HAS_MUTTER334', '--define', 'HAS_MUTTER336']
add_project_arguments(['-DCLUTTER_ENABLE_COMPOSITOR_API', '-DCLUTTER_ENABLE_EXPERIMENTAL_API',
'-DCOGL_ENABLE_EXPERIMENTAL_API', '-DCOGL_ENABLE_EXPERIMENTAL_2_0_API'], language: 'c')
endif

View File

@ -93,9 +93,7 @@ namespace Gala.Plugins.MaskCorners
screen.monitors_changed.connect (resetup_cornermasks);
#if HAS_MUTTER322
screen.get_display ().gl_video_memory_purged.connect (resetup_cornermasks);
#endif
#endif
}
@ -103,7 +101,7 @@ namespace Gala.Plugins.MaskCorners
{
#if HAS_MUTTER330
display.gl_video_memory_purged.disconnect (resetup_cornermasks);
#elif HAS_MUTTER322
#else
screen.get_display ().gl_video_memory_purged.disconnect (resetup_cornermasks);
#endif

View File

@ -380,11 +380,7 @@ namespace Gala
public static int get_ui_scaling_factor ()
{
#if HAS_MUTTER326
return Meta.Backend.get_backend ().get_settings ().get_ui_scaling_factor ();
#else
return 1;
#endif
}
}
}

View File

@ -221,7 +221,6 @@ namespace Gala
Cairo.ImageSurface take_screenshot (int x, int y, int width, int height, bool include_cursor)
{
Cairo.ImageSurface image;
#if HAS_MUTTER322
Clutter.Capture[] captures;
wm.stage.capture (false, {x, y, width, height}, out captures);
@ -231,14 +230,6 @@ namespace Gala
image = captures[0].image;
else
image = composite_capture_images (captures, x, y, width, height);
#else
unowned Clutter.Backend backend = Clutter.get_default_backend ();
unowned Cogl.Context context = Clutter.backend_get_cogl_context (backend);
image = new Cairo.ImageSurface (Cairo.Format.ARGB32, width, height);
var bitmap = Cogl.bitmap_new_for_data (context, width, height, Cogl.PixelFormat.BGRA_8888_PRE, image.get_stride (), image.get_data ());
Cogl.framebuffer_read_pixels_into_bitmap (Cogl.get_draw_framebuffer (), x, y, Cogl.ReadPixelsFlags.BUFFER, bitmap);
#endif
if (include_cursor) {
image = composite_stage_cursor (image, { x, y, width, height});
@ -248,7 +239,6 @@ namespace Gala
return image;
}
#if HAS_MUTTER322
Cairo.ImageSurface composite_capture_images (Clutter.Capture[] captures, int x, int y, int width, int height)
{
var image = new Cairo.ImageSurface (captures[0].image.get_format (), width, height);
@ -270,7 +260,6 @@ namespace Gala
return image;
}
#endif
Cairo.ImageSurface composite_stage_cursor (Cairo.ImageSurface image, Cairo.RectangleInt image_rect)
{

View File

@ -58,23 +58,13 @@ namespace Gala
base.paint ();
Cogl.set_source_color4ub (0, 0, 0, 100);
#if HAS_MUTTER322
var path = new Cogl.Path ();
path.rectangle (0, 0, width, height);
path.stroke ();
#else
Cogl.Path.rectangle (0, 0, width, height);
Cogl.Path.stroke ();
#endif
Cogl.set_source_color4ub (255, 255, 255, 25);
#if HAS_MUTTER322
path.rectangle (0.5f, 0.5f, width - 1, height - 1);
path.stroke ();
#else
Cogl.Path.rectangle (0.5f, 0.5f, width - 1, height - 1);
Cogl.Path.stroke ();
#endif
}
}

View File

@ -121,15 +121,13 @@ namespace Gala
#if HAS_MUTTER330
unowned Meta.Display display = get_display ();
#elif HAS_MUTTER322
#else
unowned Meta.Display display = get_screen ().get_display ();
#endif
#if HAS_MUTTER322
display.gl_video_memory_purged.connect (() => {
Meta.Background.refresh_all ();
SystemBackground.refresh ();
});
#endif
}
void on_menu_get (GLib.Object? o, GLib.AsyncResult? res)

View File

@ -1 +0,0 @@
libmutter.deps

View File

@ -1 +0,0 @@
libmutter.vapi

View File

@ -1 +0,0 @@
libmutter-0.deps

View File

@ -1 +0,0 @@
libmutter-0.vapi

View File

@ -1 +1 @@
libmutter-1.deps
libmutter.deps

View File

@ -1 +1 @@
libmutter-1.vapi
libmutter.vapi

View File

@ -1 +1 @@
libmutter.deps
libmutter-3.deps

View File

@ -1 +1 @@
libmutter.vapi
libmutter-3.vapi

View File

@ -200,30 +200,20 @@ namespace Meta {
#endif
}
[CCode (cheader_filename = "meta/main.h", type_id = "meta_backend_get_type ()")]
#if HAS_MUTTER322
public abstract class Backend : GLib.Object, GLib.Initable {
#else
public abstract class Backend : GLib.Object {
#endif
[CCode (has_construct_function = false)]
protected Backend ();
[CCode (cheader_filename = "meta/meta-backend.h", cname = "meta_get_backend")]
public static unowned Meta.Backend get_backend ();
#if HAS_MUTTER324
public unowned Meta.Dnd get_dnd ();
#endif
#if HAS_MUTTER330
public unowned Meta.RemoteAccessController get_remote_access_controller ();
#endif
#if HAS_MUTTER326
public unowned Meta.Settings get_settings ();
#endif
public unowned Clutter.Actor get_stage ();
public void lock_layout_group (uint idx);
public void set_keymap (string layouts, string variants, string options);
#if HAS_MUTTER322
public void set_numlock (bool numlock_state);
#endif
public signal void keymap_changed ();
public signal void keymap_layout_group_changed (uint object);
public signal void last_device_changed (int object);
@ -261,23 +251,19 @@ namespace Meta {
public BackgroundActor (Meta.Screen screen, int monitor);
#endif
public void set_background (Meta.Background background);
#if HAS_MUTTER326
public void set_gradient (bool enabled, int height, double tone_start);
public void set_monitor (int monitor);
#endif
public void set_vignette (bool enabled, double brightness, double sharpness);
[NoAccessorMethod]
public Meta.Background background { owned get; set; }
[NoAccessorMethod]
public double brightness { get; set; }
#if HAS_MUTTER326
[NoAccessorMethod]
public bool gradient { get; set; }
[NoAccessorMethod]
public int gradient_height { get; set; }
[NoAccessorMethod]
public double gradient_max_darkness { get; set; }
#endif
[NoAccessorMethod]
#if HAS_MUTTER330
public Meta.Display meta_display { owned get; construct; }
@ -395,10 +381,6 @@ namespace Meta {
public void show_window_menu (Meta.Window window, Meta.WindowMenuType menu, int x, int y);
public void show_window_menu_for_rect (Meta.Window window, Meta.WindowMenuType menu, Meta.Rectangle rect);
public void size_change_window (Meta.Window window, Meta.SizeChange which_change, Meta.Rectangle old_frame_rect, Meta.Rectangle old_buffer_rect);
#if !HAS_MUTTER328
[CCode (cheader_filename = "meta/compositor-mutter.h", cname = "meta_stage_is_focused")]
public static bool stage_is_focused (Meta.Screen screen);
#endif
public void switch_workspace (Meta.Workspace from, Meta.Workspace to, Meta.MotionDirection direction);
public void sync_stack (GLib.List<Meta.WindowActor> stack);
public void sync_updates_frozen (Meta.Window window);
@ -432,7 +414,7 @@ namespace Meta {
public signal void visibility_changed ();
#endif
}
#if HAS_MUTTER328 && !HAS_MUTTER332
#if !HAS_MUTTER332
[CCode (cheader_filename = "meta/main.h", type_id = "meta_dbus_display_config_skeleton_get_type ()")]
public class DBusDisplayConfigSkeleton : GLib.DBusInterfaceSkeleton, GLib.DBusInterface {
[CCode (has_construct_function = false)]
@ -484,9 +466,7 @@ namespace Meta {
#endif
public int get_n_monitors ();
#endif
#if HAS_MUTTER322
public string get_pad_action_label (Clutter.InputDevice pad, Meta.PadActionType action_type, uint action_number);
#endif
#if HAS_MUTTER330
public int get_primary_monitor ();
public void get_size (out int width, out int height);
@ -522,9 +502,7 @@ namespace Meta {
public unowned Meta.Group lookup_group (X.Window group_leader);
#endif
public bool remove_keybinding (string name);
#if HAS_MUTTER322
public void request_pad_osd (Clutter.InputDevice pad, bool edition_mode);
#endif
#if HAS_MUTTER330
public void set_cursor (Meta.Cursor cursor);
#else
@ -546,9 +524,7 @@ namespace Meta {
#if HAS_MUTTER330
public signal void cursor_updated ();
#endif
#if HAS_MUTTER322
public signal void gl_video_memory_purged ();
#endif
#if HAS_MUTTER330
public signal void grab_op_begin (Meta.Display object, Meta.Window p0, Meta.GrabOp p1);
public signal void grab_op_end (Meta.Display object, Meta.Window p0, Meta.GrabOp p1);
@ -559,19 +535,13 @@ namespace Meta {
#endif
public signal bool modifiers_accelerator_activated ();
public signal void overlay_key ();
#if HAS_MUTTER324
public signal void pad_mode_switch (Clutter.InputDevice object, uint p0, uint p1);
#endif
#if HAS_MUTTER330
public signal void restacked ();
#endif
public signal bool restart ();
#if HAS_MUTTER324
public signal void show_osd (int object, string p0, string p1);
#endif
#if HAS_MUTTER322
public signal unowned Clutter.Actor? show_pad_osd (Clutter.InputDevice pad, GLib.Settings settings, string layout_path, bool edition_mode, int monitor_idx);
#endif
public signal bool show_resize_popup (bool object, Meta.Rectangle p0, int p1, int p2);
public signal bool show_restart_message (string? message);
#if HAS_MUTTER330
@ -593,7 +563,6 @@ namespace Meta {
public signal void x11_display_opened ();
#endif
}
#if HAS_MUTTER324
[CCode (cheader_filename = "meta/meta-dnd.h", type_id = "meta_dnd_get_type ()")]
public class Dnd : GLib.Object {
[CCode (has_construct_function = false)]
@ -602,7 +571,6 @@ namespace Meta {
public signal void dnd_leave ();
public signal void dnd_position_change (int object, int p0);
}
#endif
[CCode (cheader_filename = "meta/common.h", has_type_id = false)]
[Compact]
public class Frame {
@ -658,35 +626,19 @@ namespace Meta {
[CCode (cheader_filename = "meta/meta-monitor-manager.h", type_id = "meta_monitor_manager_get_type ()")]
#if HAS_MUTTER332
public class MonitorManager : GLib.Object {
#elif HAS_MUTTER328
public abstract class MonitorManager : Meta.DBusDisplayConfigSkeleton, GLib.DBusInterface {
#else
public abstract class MonitorManager : GLib.DBusInterfaceSkeleton, GLib.DBusInterface {
public abstract class MonitorManager : Meta.DBusDisplayConfigSkeleton, GLib.DBusInterface {
#endif
[CCode (has_construct_function = false)]
protected MonitorManager ();
#if HAS_MUTTER326
public bool can_switch_config ();
#endif
public static unowned Meta.MonitorManager @get ();
#if HAS_MUTTER326
public static int get_display_configuration_timeout ();
#endif
#if HAS_MUTTER322
public bool get_is_builtin_display_on ();
#endif
#if HAS_MUTTER326
public int get_monitor_for_connector (string connector);
#endif
#if !HAS_MUTTER328
public int get_monitor_for_output (uint id);
#endif
public signal void confirm_display_change ();
#if HAS_MUTTER326
public Meta.MonitorSwitchConfigType get_switch_config ();
public void switch_config (Meta.MonitorSwitchConfigType config_type);
#endif
#if HAS_MUTTER328
[NoAccessorMethod]
public Meta.Backend backend { owned get; construct; }
#if HAS_MUTTER332
@ -695,10 +647,6 @@ namespace Meta {
public signal void monitors_changed_internal ();
#if HAS_MUTTER332
public signal void power_save_mode_changed ();
#endif
#endif
#if HAS_MUTTER324 && !HAS_MUTTER326
public signal void lid_is_closed_changed ();
#endif
}
[CCode (cheader_filename = "meta/meta-plugin.h", type_id = "meta_plugin_get_type ()")]
@ -709,12 +657,10 @@ namespace Meta {
public void complete_display_change (bool ok);
[NoWrapper]
public virtual void confirm_display_change ();
#if HAS_MUTTER326
[NoWrapper]
public virtual unowned Meta.CloseDialog create_close_dialog (Meta.Window window);
[NoWrapper]
public virtual unowned Meta.InhibitShortcutsDialog create_inhibit_shortcuts_dialog (Meta.Window window);
#endif
[NoWrapper]
public virtual void destroy (Meta.WindowActor actor);
public void destroy_completed (Meta.WindowActor actor);
@ -751,10 +697,8 @@ namespace Meta {
[NoWrapper]
public virtual void size_change (Meta.WindowActor actor, Meta.SizeChange which_change, Meta.Rectangle old_frame_rect, Meta.Rectangle old_buffer_rect);
public void size_change_completed (Meta.WindowActor actor);
#if HAS_MUTTER324
[NoWrapper]
public virtual void size_changed (Meta.WindowActor actor);
#endif
[NoWrapper]
public virtual void start ();
[NoWrapper]
@ -791,9 +735,6 @@ namespace Meta {
public void reorder_workspace (Meta.Workspace workspace, int new_index);
public int get_active_workspace_index ();
public int get_current_monitor ();
#if !HAS_MUTTER324
public int get_current_monitor_for_pos (int x, int y);
#endif
public unowned Meta.Display get_display ();
public Meta.Rectangle get_monitor_geometry (int monitor);
public bool get_monitor_in_fullscreen (int monitor);
@ -825,14 +766,12 @@ namespace Meta {
public signal void workspaces_reordered ();
}
#endif
#if HAS_MUTTER326
[CCode (cheader_filename = "meta/meta-settings.h", has_type_id = false)]
[Compact]
public class Settings {
public int get_font_dpi ();
public int get_ui_scaling_factor ();
}
#endif
[CCode (cheader_filename = "meta/meta-shadow-factory.h", ref_function = "meta_shadow_ref", type_id = "meta_shadow_get_type ()", unref_function = "meta_shadow_unref")]
[Compact]
public class Shadow {
@ -876,7 +815,6 @@ namespace Meta {
public void play_from_theme (string name, string description, GLib.Cancellable? cancellable = null);
}
#endif
#if HAS_MUTTER328
[CCode (cheader_filename = "meta/main.h", type_id = "meta_stage_get_type ()")]
public class Stage : Clutter.Stage, Atk.Implementor, Clutter.Animatable, Clutter.Container, Clutter.Scriptable {
[CCode (has_construct_function = false)]
@ -890,7 +828,6 @@ namespace Meta {
public signal void actors_painted ();
#endif
}
#endif
#if HAS_MUTTER332
[CCode (cheader_filename = "meta/main.h", type_id = "meta_startup_notification_get_type ()")]
public class StartupNotification : GLib.Object {
@ -957,10 +894,6 @@ namespace Meta {
public void foreach_ancestor (Meta.WindowForeachFunc func);
public void foreach_transient (Meta.WindowForeachFunc func);
public Meta.Rectangle frame_rect_to_client_rect (Meta.Rectangle frame_rect);
#if !HAS_MUTTER324
[CCode (array_length_pos = 0.1, array_length_type = "gsize")]
public int[] get_all_monitors ();
#endif
public Meta.Rectangle get_buffer_rect ();
public unowned string get_client_machine ();
#if HAS_MUTTER332
@ -969,9 +902,6 @@ namespace Meta {
public unowned GLib.Object get_compositor_private ();
public unowned string get_description ();
public unowned Meta.Display get_display ();
#if HAS_MUTTER322 && !HAS_MUTTER328
public unowned string get_flatpak_id ();
#endif
public unowned Meta.Frame get_frame ();
public unowned Cairo.Region? get_frame_bounds ();
public Meta.Rectangle get_frame_rect ();
@ -994,9 +924,7 @@ namespace Meta {
public unowned string get_mutter_hints ();
public int get_pid ();
public unowned string get_role ();
#if HAS_MUTTER328
public unowned string get_sandboxed_app_id ();
#endif
#if !HAS_MUTTER330
public unowned Meta.Screen get_screen ();
#endif
@ -1124,9 +1052,7 @@ namespace Meta {
public X.Window get_x_window ();
#endif
public bool is_destroyed ();
#if HAS_MUTTER322
public void sync_visibility ();
#endif
[NoAccessorMethod]
public string shadow_class { owned get; set; }
[NoAccessorMethod]
@ -1136,13 +1062,11 @@ namespace Meta {
#endif
public signal void first_frame ();
}
#if HAS_MUTTER328
[CCode (cheader_filename = "meta/main.h", type_id = "meta_window_group_get_type ()")]
public class WindowGroup : Clutter.Actor, Atk.Implementor, Clutter.Animatable, Clutter.Container, Clutter.Scriptable {
[CCode (has_construct_function = false)]
protected WindowGroup ();
}
#endif
[CCode (cheader_filename = "meta/meta_window_shape.h", ref_function = "meta_window_shape_ref", type_id = "meta_window_shape_get_type ()", unref_function = "meta_window_shape_unref")]
[Compact]
public class WindowShape {
@ -1228,7 +1152,6 @@ namespace Meta {
public bool xwindow_is_a_no_focus_window (X.Window xwindow);
}
#endif
#if HAS_MUTTER326
[CCode (cheader_filename = "meta/main.h", type_cname = "MetaInhibitShortcutsDialogInterface", type_id = "meta_inhibit_shortcuts_dialog_get_type ()")]
public interface InhibitShortcutsDialog : GLib.Object {
public abstract void hide ();
@ -1249,7 +1172,6 @@ namespace Meta {
[HasEmitter]
public signal void response (Meta.CloseDialogResponse response);
}
#endif
[CCode (cheader_filename = "meta/common.h", has_type_id = false)]
public struct ButtonLayout {
#if HAS_MUTTER332
@ -1343,26 +1265,16 @@ namespace Meta {
MINIMIZE,
MAXIMIZE,
CLOSE,
#if !HAS_MUTTER320
SHADE,
ABOVE,
STICK,
UNSHADE,
UNABOVE,
UNSTICK,
#endif
#if !HAS_MUTTER332
APPMENU,
#endif
LAST
}
#if HAS_MUTTER326
[CCode (cheader_filename = "meta/main.h", cprefix = "META_CLOSE_DIALOG_RESPONSE_", type_id = "meta_close_dialog_response_get_type ()")]
public enum CloseDialogResponse {
WAIT,
FORCE_CLOSE
}
#endif
[CCode (cheader_filename = "meta/compositor.h", cprefix = "META_COMP_EFFECT_", type_id = "meta_comp_effect_get_type ()")]
public enum CompEffect {
CREATE,
@ -1527,13 +1439,11 @@ namespace Meta {
KEYBOARD_RESIZING_SE,
KEYBOARD_RESIZING_W
}
#if HAS_MUTTER326
[CCode (cheader_filename = "meta/main.h", cprefix = "META_INHIBIT_SHORTCUTS_DIALOG_RESPONSE_", type_id = "meta_inhibit_shortcuts_dialog_response_get_type ()")]
public enum InhibitShortcutsDialogResponse {
ALLOW,
DENY
}
#endif
[CCode (cheader_filename = "meta/prefs.h", cprefix = "META_KEYBINDING_ACTION_", type_id = "meta_key_binding_action_get_type ()")]
public enum KeyBindingAction {
NONE,
@ -1625,10 +1535,8 @@ namespace Meta {
OVERLAY_KEY,
ISO_NEXT_GROUP,
ALWAYS_ON_TOP,
#if HAS_MUTTER326
SWITCH_MONITOR,
ROTATE_MONITOR,
#endif
LAST
}
[CCode (cheader_filename = "meta/prefs.h", cprefix = "META_KEY_BINDING_", type_id = "meta_key_binding_flags_get_type ()")]
@ -1637,9 +1545,7 @@ namespace Meta {
NONE,
PER_WINDOW,
BUILTIN,
#if HAS_MUTTER326
NON_MASKABLE,
#endif
#if HAS_MUTTER330
IGNORE_AUTOREPEAT,
#endif
@ -1672,7 +1578,6 @@ namespace Meta {
POINTER_ALREADY_GRABBED,
KEYBOARD_ALREADY_GRABBED
}
#if HAS_MUTTER326
[CCode (cheader_filename = "meta/main.h", cprefix = "META_MONITOR_SWITCH_CONFIG_", type_id = "meta_monitor_switch_config_type_get_type ()")]
public enum MonitorSwitchConfigType {
ALL_MIRROR,
@ -1681,7 +1586,6 @@ namespace Meta {
BUILTIN,
UNKNOWN
}
#endif
[CCode (cheader_filename = "meta/common.h", cprefix = "META_MOTION_", type_id = "meta_motion_direction_get_type ()")]
public enum MotionDirection {
UP,
@ -1693,14 +1597,12 @@ namespace Meta {
DOWN_LEFT,
DOWN_RIGHT
}
#if HAS_MUTTER322
[CCode (cheader_filename = "meta/display.h", cprefix = "META_PAD_ACTION_", type_id = "meta_pad_action_type_get_type ()")]
public enum PadActionType {
BUTTON,
RING,
STRIP
}
#endif
[CCode (cheader_filename = "meta/prefs.h", cprefix = "META_PREF_", type_id = "meta_preference_get_type ()")]
public enum Preference {
MOUSE_BUTTON_MODS,
@ -1782,12 +1684,6 @@ namespace Meta {
NORMAL,
TOP,
DOCK,
#if !HAS_MUTTER322
FULLSCREEN,
#endif
#if !HAS_MUTTER320
FOCUSED_WINDOW,
#endif
OVERRIDE_REDIRECT,
LAST
}

View File

@ -1,5 +0,0 @@
atk
cairo
pango
json-glib-1.0
mutter-cogl-0

View File

@ -1 +0,0 @@
mutter-clutter-1.0.vapi

View File

@ -1,5 +0,0 @@
atk
cairo
pango
json-glib-1.0
mutter-cogl-1.0

View File

@ -1,5 +0,0 @@
atk
cairo
pango
json-glib-1.0
mutter-cogl-1

View File

@ -1 +0,0 @@
mutter-clutter-0.vapi

View File

@ -1 +1 @@
mutter-clutter-1.vapi
mutter-clutter.vapi

View File

@ -1 +0,0 @@
mutter-cogl-1.0.deps

View File

@ -1 +0,0 @@
mutter-cogl-1.0.vapi

View File

@ -1 +0,0 @@
pango

View File

@ -1 +0,0 @@
mutter-cogl-0.deps

View File

@ -1 +0,0 @@
mutter-cogl-0.vapi

View File

@ -1 +0,0 @@
mutter-cogl-1.deps

1
vapi/mutter-cogl-2.deps Normal file
View File

@ -0,0 +1 @@
pango

View File

@ -1 +1 @@
mutter-cogl-1.vapi
mutter-cogl.vapi