[gnome-commander] Add a GMountOperation argument to g_volume_mount



commit d666fd665b6c10dbc0c6dd8f179a5ac349974cbb
Author: Uwe Scholz <u scholz83 gmx de>
Date:   Sat Nov 13 22:29:04 2021 +0100

    Add a GMountOperation argument to g_volume_mount
    
    This is needed for mounting encrypted devices by asking the user for a password

 src/gnome-cmd-con-device.cc | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/gnome-cmd-con-device.cc b/src/gnome-cmd-con-device.cc
index 37370a58..c87fbfed 100644
--- a/src/gnome-cmd-con-device.cc
+++ b/src/gnome-cmd-con-device.cc
@@ -249,9 +249,12 @@ static void do_mount (GnomeCmdCon *con)
         set_con_mount_succeed(con);
         return;
     }
+
+    auto gMountOperation = gtk_mount_operation_new ((GtkWindow*) main_win);
+
     g_volume_mount (dev_con->priv->gVolume,
         G_MOUNT_MOUNT_NONE,
-        nullptr,
+        gMountOperation,
         nullptr,
         mount_finish_callback,
         con);


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