From 8e2d33d3a5d17531a36e629bcf4c0bc36cbf1cfe Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Sun, 2 Nov 2014 20:40:40 +0100 Subject: Imported Upstream version 14.04.10 --- src/fixes.vapi | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 src/fixes.vapi (limited to 'src/fixes.vapi') diff --git a/src/fixes.vapi b/src/fixes.vapi new file mode 100644 index 0000000..8d08370 --- /dev/null +++ b/src/fixes.vapi @@ -0,0 +1,57 @@ +#if !VALA_0_22 +namespace Posix +{ + [CCode (cheader_filename = "sys/mman.h")] + public const int MCL_CURRENT; + [CCode (cheader_filename = "sys/mman.h")] + public const int MCL_FUTURE; + [CCode (cheader_filename = "sys/mman.h")] + public int mlockall (int flags); + [CCode (cheader_filename = "sys/mman.h")] + public int munlockall (); +} +#endif + +// See https://bugzilla.gnome.org/show_bug.cgi?id=727113 +[CCode (cprefix = "", lower_case_cprefix = "", cheader_filename = "X11/Xlib.h")] +namespace X +{ + [CCode (cname = "XCreatePixmap")] + public int CreatePixmap (X.Display display, X.Drawable d, uint width, uint height, uint depth); + [CCode (cname = "XSetWindowBackgroundPixmap")] + public int SetWindowBackgroundPixmap (X.Display display, X.Window w, int Pixmap); + [CCode (cname = "XClearWindow")] + public int ClearWindow (X.Display display, X.Window w); + public const int RetainPermanent; +} + +namespace Gtk +{ + namespace RGB + { + // Fixed in Vala 0.24 + public void to_hsv (double r, double g, double b, out double h, out double s, out double v); + } +} + +namespace Gnome +{ + [CCode (cheader_filename = "libgnome-desktop/gnome-idle-monitor.h")] + public class IdleMonitor : GLib.Object + { + public IdleMonitor (); + public IdleMonitor.for_device (Gdk.Device device); + public uint add_idle_watch (uint64 interval_msec, IdleMonitorWatchFunc callback, GLib.DestroyNotify? notify = null); + public uint add_user_active_watch (IdleMonitorWatchFunc callback, GLib.DestroyNotify? notify = null); + public void remove_watch (uint id); + public int64 get_idletime (); + } + + public delegate void IdleMonitorWatchFunc (IdleMonitor monitor, uint id); +} + +// Note, fixed in 1.10.0 +namespace LightDM +{ + bool greeter_start_session_sync (LightDM.Greeter greeter, string session) throws GLib.Error; +} -- cgit v1.2.3