[gtk: 1/2] gtkmountoperation: Support TCRYPT options when using proxy handler



commit e5cccbf5a04bf114a316b23f917312245d9313a5
Author: segfault <segfault riseup net>
Date:   Mon Jul 9 21:13:50 2018 +0200

    gtkmountoperation: Support TCRYPT options when using proxy handler
    
    GMountOperation now supports options to unlock TCRYPT volumes. This
    patch sets these options if they are returned by AskPassword() of a
    GtkMountOperationHandlerProxy.

 gtk/gtkmountoperation.c | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/gtk/gtkmountoperation.c b/gtk/gtkmountoperation.c
index 3561bd2762..2e72d4335c 100644
--- a/gtk/gtkmountoperation.c
+++ b/gtk/gtkmountoperation.c
@@ -759,6 +759,12 @@ call_password_proxy_cb (GObject      *source,
         g_mount_operation_set_password (op, g_variant_get_string (value, NULL));
       else if (strcmp (key, "password_save") == 0)
         g_mount_operation_set_password_save (op, g_variant_get_uint32 (value));
+      else if (strcmp (key, "hidden_volume") == 0)
+        g_mount_operation_set_is_tcrypt_hidden_volume (op, g_variant_get_boolean (value));
+      else if (strcmp (key, "system_volume") == 0)
+        g_mount_operation_set_is_tcrypt_system_volume (op, g_variant_get_boolean (value));
+      else if (strcmp (key, "pim") == 0)
+        g_mount_operation_set_pim (op, g_variant_get_uint32 (value));
     }
 
  out:


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