]> rtime.felk.cvut.cz Git - sojka/lightdm.git/commitdiff
Tell the vala compiler these enums work as ints
authorAlbert Astals <albert.astals@canonical.com>
Thu, 30 Aug 2012 09:55:11 +0000 (11:55 +0200)
committerAlbert Astals <albert.astals@canonical.com>
Thu, 30 Aug 2012 09:55:11 +0000 (11:55 +0200)
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

index a92360118fc9ddb5aad7fa4b4b9584275b18f284..8bc3b5248b8581237e4d2badb45a513284458e75 100644 (file)
@@ -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