[seahorse] pkcs11-request: corrects error "Non-void function should return a value".



commit 64b559ff8213f5981ac8283f45be209f886f0dc8
Author: Andrei Macavei <andrei macavei89 gmail com>
Date:   Fri Apr 11 01:51:59 2014 +0300

    pkcs11-request: corrects error "Non-void function should return a value".
    
    Removed GLib.return_if_fail in the contruct { } because it causes a compile error in the generated C file.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=725728

 pkcs11/pkcs11-request.vala |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/pkcs11/pkcs11-request.vala b/pkcs11/pkcs11-request.vala
index fa59714..d676ea3 100644
--- a/pkcs11/pkcs11-request.vala
+++ b/pkcs11/pkcs11-request.vala
@@ -58,7 +58,9 @@ public class Request : Gtk.Dialog {
 
                this.update_response ();
 
-               GLib.return_if_fail (this.private_key is Gck.Object);
+               if (!(this.private_key is Gck.Object)) {
+                       GLib.critical("private key is not of type %s", typeof(Gck.Object).name());
+               }
        }
 
        public static void prompt(Gtk.Window? parent,


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