[gnome-commander] Remove deprecated GnomeVFS types



commit 35372d3d6655bb7f4016496aa9841001d2712f97
Author: Uwe Scholz <u scholz83 gmx de>
Date:   Thu Oct 7 21:38:17 2021 +0200

    Remove deprecated GnomeVFS types

 src/dialogs/gnome-cmd-chmod-dialog.cc      | 2 +-
 src/dialogs/gnome-cmd-file-props-dialog.cc | 2 +-
 src/gnome-cmd-chmod-component.cc           | 2 +-
 src/gnome-cmd-chmod-component.h            | 2 +-
 src/gnome-cmd-file-list.cc                 | 2 +-
 src/gnome-cmd-file.cc                      | 2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/dialogs/gnome-cmd-chmod-dialog.cc b/src/dialogs/gnome-cmd-chmod-dialog.cc
index 9f904fb6..97b43816 100644
--- a/src/dialogs/gnome-cmd-chmod-dialog.cc
+++ b/src/dialogs/gnome-cmd-chmod-dialog.cc
@@ -192,7 +192,7 @@ static void gnome_cmd_chmod_dialog_init (GnomeCmdChmodDialog *dialog)
     gnome_cmd_dialog_add_expanding_category (GNOME_CMD_DIALOG (dialog), vbox);
 
 
-    dialog->priv->chmod_component = gnome_cmd_chmod_component_new ((GnomeVFSFilePermissions) 0);
+    dialog->priv->chmod_component = gnome_cmd_chmod_component_new (0);
     g_object_ref (dialog->priv->chmod_component);
     g_object_set_data_full (G_OBJECT (chmod_dialog), "chmod_component", dialog->priv->chmod_component, 
g_object_unref);
     gtk_widget_show (dialog->priv->chmod_component);
diff --git a/src/dialogs/gnome-cmd-file-props-dialog.cc b/src/dialogs/gnome-cmd-file-props-dialog.cc
index 5321c811..8e2116d9 100644
--- a/src/dialogs/gnome-cmd-file-props-dialog.cc
+++ b/src/dialogs/gnome-cmd-file-props-dialog.cc
@@ -501,7 +501,7 @@ inline GtkWidget *create_permissions_tab (GnomeCmdFilePropsDialogPrivate *data)
     gtk_box_pack_start (GTK_BOX (vbox), cat, TRUE, TRUE, 0);
 
 
-    data->chmod_component = gnome_cmd_chmod_component_new ((GnomeVFSFilePermissions) 0);
+    data->chmod_component = gnome_cmd_chmod_component_new (0);
     g_object_ref (data->chmod_component);
     g_object_set_data_full (G_OBJECT (data->dialog), "chmod_component", data->chmod_component, 
g_object_unref);
     gtk_widget_show (data->chmod_component);
diff --git a/src/gnome-cmd-chmod-component.cc b/src/gnome-cmd-chmod-component.cc
index f72ea25c..f99cb505 100644
--- a/src/gnome-cmd-chmod-component.cc
+++ b/src/gnome-cmd-chmod-component.cc
@@ -169,7 +169,7 @@ static void init (GnomeCmdChmodComponent *comp)
  * Public functions
  ***********************************/
 
-GtkWidget *gnome_cmd_chmod_component_new (GnomeVFSFilePermissions perms)
+GtkWidget *gnome_cmd_chmod_component_new (guint32 perms)
 {
     auto comp = static_cast <GnomeCmdChmodComponent*> (g_object_new (GNOME_CMD_TYPE_CHMOD_COMPONENT, 
nullptr));
 
diff --git a/src/gnome-cmd-chmod-component.h b/src/gnome-cmd-chmod-component.h
index 5cd18aaf..9752ab28 100644
--- a/src/gnome-cmd-chmod-component.h
+++ b/src/gnome-cmd-chmod-component.h
@@ -49,7 +49,7 @@ struct GnomeCmdChmodComponentClass
 };
 
 
-GtkWidget *gnome_cmd_chmod_component_new (GnomeVFSFilePermissions perms);
+GtkWidget *gnome_cmd_chmod_component_new (guint32 perms);
 
 GtkType gnome_cmd_chmod_component_get_type ();
 
diff --git a/src/gnome-cmd-file-list.cc b/src/gnome-cmd-file-list.cc
index f5110ec5..199baa7b 100644
--- a/src/gnome-cmd-file-list.cc
+++ b/src/gnome-cmd-file-list.cc
@@ -907,7 +907,7 @@ inline gint my_intcmp (gint i1, gint i2, gboolean raising)
 }
 
 
-inline gint my_filesizecmp (GnomeVFSFileSize i1, GnomeVFSFileSize i2, gboolean raising)
+inline gint my_filesizecmp (guint32 i1, guint32 i2, gboolean raising)
 {
     if (i1 > i2)
         return raising ? -1 : 1;
diff --git a/src/gnome-cmd-file.cc b/src/gnome-cmd-file.cc
index 0b03d018..49bf521f 100644
--- a/src/gnome-cmd-file.cc
+++ b/src/gnome-cmd-file.cc
@@ -1095,5 +1095,5 @@ void GnomeCmdFile::invalidate_tree_size()
 
 gboolean GnomeCmdFile::has_tree_size()
 {
-    return priv->tree_size != (GnomeVFSFileSize)-1;
+    return priv->tree_size != (guint64)-1;
 }


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