vapi: Update mutter bindings to 3.11.2

This commit is contained in:
Rico Tzschichholz 2013-11-16 17:18:45 +01:00
parent 4af55a9a44
commit 69d49f5eb3
2 changed files with 18 additions and 0 deletions

View File

@ -57,6 +57,13 @@ if (MUTTER310_FOUND)
set (MUTTER310_FLAGS "--define=HAS_MUTTER310")
endif (MUTTER310_FOUND)
set (MUTTER312_FLAGS "")
pkg_check_modules(MUTTER312 QUIET libmutter>=3.11)
if (MUTTER312_FOUND)
pkg_check_modules(MUTTER310 REQUIRED libmutter>=3.11.2)
set (MUTTER312_FLAGS "--define=HAS_MUTTER312")
endif (MUTTER312_FOUND)
add_definitions(${DEPS_CFLAGS})
link_libraries(${DEPS_LIBRARIES})
@ -99,6 +106,7 @@ OPTIONS
${MUTTER36_FLAGS}
${MUTTER38_FLAGS}
${MUTTER310_FLAGS}
${MUTTER312_FLAGS}
)
#add_subdirectory (po)

View File

@ -489,8 +489,10 @@ namespace Meta {
#endif
[CCode (cheader_filename = "meta/keybindings.h", cname = "meta_keybindings_set_custom_handler")]
public static bool set_custom_handler (string name, owned Meta.KeyHandlerFunc? handler);
#if !HAS_MUTTER312
[CCode (cheader_filename = "meta/keybindings.h", cname = "meta_keybindings_switch_window")]
public static void switch_window (Meta.Display display, Meta.Screen screen, Meta.Window event_window, X.Event event, Meta.KeyBinding binding);
#endif
}
[CCode (cheader_filename = "meta/main.h")]
[Compact]
@ -646,7 +648,11 @@ namespace Meta {
public void set_opaque_region (owned Cairo.Region opaque_region);
#endif
public void set_pixmap (X.Pixmap pixmap);
#if HAS_MUTTER312
public void update_area (int x, int y, int width, int height, Cairo.Region unobscured_region);
#else
public void update_area (int x, int y, int width, int height);
#endif
}
[CCode (cheader_filename = "meta/theme.h")]
[Compact]
@ -677,7 +683,11 @@ namespace Meta {
public bool can_close ();
#endif
public void change_workspace (Meta.Workspace workspace);
#if HAS_MUTTER312
public void change_workspace_by_index (int space_index, bool append);
#else
public void change_workspace_by_index (int space_index, bool append, uint32 timestamp);
#endif
#if HAS_MUTTER38
public void check_alive (uint32 timestamp);
#endif