aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ephy-file-helpers.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ephy-file-helpers.h')
-rw-r--r--lib/ephy-file-helpers.h35
1 files changed, 12 insertions, 23 deletions
diff --git a/lib/ephy-file-helpers.h b/lib/ephy-file-helpers.h
index f7aa71281..408b975cb 100644
--- a/lib/ephy-file-helpers.h
+++ b/lib/ephy-file-helpers.h
@@ -24,8 +24,8 @@
#define EPHY_FILE_HELPERS_H
#include <glib.h>
-#include <libgnomevfs/gnome-vfs-mime-handlers.h>
-#include <libgnomevfs/gnome-vfs-ops.h>
+#include <gio/gio.h>
+#include <gtk/gtkwidget.h>
extern GQuark ephy_file_helpers_error_quark;
#define EPHY_FILE_HELPERS_ERROR_QUARK (ephy_file_helpers_error_quark)
@@ -39,10 +39,6 @@ typedef enum
EPHY_MIME_PERMISSION_UNKNOWN = 3
} EphyMimePermission;
-typedef struct _EphyFileMonitor EphyFileMonitor;
-typedef void (* EphyFileMonitorFunc) (EphyFileMonitor*, const char*, GnomeVFSMonitorEventType, gpointer);
-typedef gboolean (* EphyFileMonitorDelayFunc) (EphyFileMonitor*, gpointer);
-
gboolean ephy_file_helpers_init (const char *profile_dir,
gboolean private_profile,
gboolean keep_temp_dir,
@@ -72,10 +68,10 @@ GSList *ephy_file_find (const char *path,
const char *fname,
gint maxdepth);
-gboolean ephy_file_switch_temp_file (const char *filename,
- const char *filename_temp);
+gboolean ephy_file_switch_temp_file (GFile *file,
+ GFile *file_temp);
-void ephy_file_delete_on_exit (const char *path);
+void ephy_file_delete_on_exit (GFile *file);
void ephy_file_add_recent_item (const char *uri,
const char *mime_type);
@@ -84,28 +80,21 @@ EphyMimePermission ephy_file_check_mime (const char *mime_type);
gboolean ephy_file_launch_desktop_file (const char *filename,
const char *parameter,
- guint32 user_time);
+ guint32 user_time,
+ GtkWidget *widget);
-gboolean ephy_file_launch_application (GnomeVFSMimeApplication *application,
- const char *parameter,
- guint32 user_time);
+gboolean ephy_file_launch_application (GAppInfo *app,
+ GList *files,
+ guint32 user_time,
+ GtkWidget *parent);
gboolean ephy_file_launch_handler (const char *mime_type,
- const char *address,
+ GFile *file,
guint32 user_time);
gboolean ephy_file_browse_to (const char *parameter,
guint32 user_time);
-EphyFileMonitor *ephy_file_monitor_add (const char *uri,
- GnomeVFSMonitorType monitor_type,
- guint delay,
- EphyFileMonitorFunc callback,
- EphyFileMonitorDelayFunc delay_func,
- gpointer user_data);
-
-void ephy_file_monitor_cancel (EphyFileMonitor *monitor);
-
void ephy_file_delete_directory (const char *path);
G_END_DECLS