diff options
author | Albert Astals <albert.astals@canonical.com> | 2012-08-30 11:55:11 +0200 |
---|---|---|
committer | Albert Astals <albert.astals@canonical.com> | 2012-08-30 11:55:11 +0200 |
commit | 1b315e939550e64044f1148e15a70d731f987895 (patch) | |
tree | 318d96524c4bc38d1e73155ad89bbe3c2ff53b33 /liblightdm-gobject | |
parent | 50f6f24542039cc1f4a590c118e85393a5cb0e02 (diff) | |
download | lightdm-1b315e939550e64044f1148e15a70d731f987895.tar.gz |
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
Diffstat (limited to 'liblightdm-gobject')
-rw-r--r-- | liblightdm-gobject/liblightdm-gobject-1.vapi | 2 |
1 files changed, 2 insertions, 0 deletions
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 |