[seahorse] common: Include correct headers for vala calling C code



commit e46d5eb408bcbabdd941de0fbcba2fb6d4f41cf8
Author: Stef Walter <stefw gnome org>
Date:   Thu Feb 20 09:41:54 2014 +0100

    common: Include correct headers for vala calling C code
    
    These caused crashes due to pointers being casted to int.
    Also force compiler errors when functions have no declaration
    during vala code compilation.
    
    Due to the way vala code is generated, this fix may require
    you to:
    
    $ rm common/*.c
    $ make clean all
    
    https://bugzilla.gnome.org/show_bug.cgi?id=708996

 common/config.vapi |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/common/config.vapi b/common/config.vapi
index b814388..056021f 100644
--- a/common/config.vapi
+++ b/common/config.vapi
@@ -16,11 +16,13 @@ namespace Config
  */
 namespace Seahorse {
 
+[CCode (cheader_filename = "libseahorse/seahorse-prefs.h")]
 namespace Prefs {
        public void show(Gtk.Window window, string? tabid);
        public bool available();
 }
 
+[CCode (cheader_filename = "libseahorse/seahorse-application.h")]
 namespace Application {
        public unowned Gtk.Application @get();
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]