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 From 37a54bfdea77aa360b7883b27abc059b8c58ab2f Mon Sep 17 00:00:00 2001 From: Albert Astals Date: Mon, 3 Sep 2012 09:42:19 +0200 Subject: Use [CCode (has_type_id = false)] as suggested by Robert --- liblightdm-gobject/liblightdm-gobject-1.vapi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/liblightdm-gobject/liblightdm-gobject-1.vapi b/liblightdm-gobject/liblightdm-gobject-1.vapi index 8bc3b524..ba0ec195 100644 --- a/liblightdm-gobject/liblightdm-gobject-1.vapi +++ b/liblightdm-gobject/liblightdm-gobject-1.vapi @@ -47,12 +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")] + [CCode (has_type_id = false)] public enum MessageType { INFO, ERROR } - [CCode (type_id = "G_TYPE_INT")] + [CCode (has_type_id = false)] public enum PromptType { QUESTION, SECRET -- cgit v1.2.1