diff options
Diffstat (limited to 'src/fixes.vapi')
-rw-r--r-- | src/fixes.vapi | 57 |
1 files changed, 57 insertions, 0 deletions
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; +} |