From 1b315e939550e64044f1148e15a70d731f987895 Mon Sep 17 00:00:00 2001 From: Albert Astals Date: Thu, 30 Aug 2012 11:55:11 +0200 Subject: Tell the vala compiler these enums work as ints Otherwise if you try to define a signal that uses these enums it won't compile because it tries to use LIGHTDM_TYPE_MESSAGE_TYPE and LIGHTDM_TYPE_PROMPT_TYPE that are not defined anywhere --- liblightdm-gobject/liblightdm-gobject-1.vapi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/liblightdm-gobject/liblightdm-gobject-1.vapi b/liblightdm-gobject/liblightdm-gobject-1.vapi index a9236011..8bc3b524 100644 --- a/liblightdm-gobject/liblightdm-gobject-1.vapi +++ b/liblightdm-gobject/liblightdm-gobject-1.vapi @@ -47,10 +47,12 @@ namespace LightDM { public unowned string? authentication_user { get; } public void start_session_sync (string? session = null) throws GLib.Error; } + [CCode (type_id = "G_TYPE_INT")] public enum MessageType { INFO, ERROR } + [CCode (type_id = "G_TYPE_INT")] public enum PromptType { QUESTION, SECRET -- cgit v1.2.1