aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorXan Lopez <xan@gnome.org>2009-08-12 19:37:05 +0800
committerXan Lopez <xan@gnome.org>2009-08-12 19:47:16 +0800
commitcad7e6662ea287c565aa1c5d77c91d26a9ce3fd2 (patch)
tree04d8823d7ecb77c8aa6ae70d51af0938e59b2abb /lib
parentc95f5cbcedaa31dd6b66c8684b61a9f27c9d855f (diff)
downloadgsoc2013-epiphany-cad7e6662ea287c565aa1c5d77c91d26a9ce3fd2.tar
gsoc2013-epiphany-cad7e6662ea287c565aa1c5d77c91d26a9ce3fd2.tar.gz
gsoc2013-epiphany-cad7e6662ea287c565aa1c5d77c91d26a9ce3fd2.tar.bz2
gsoc2013-epiphany-cad7e6662ea287c565aa1c5d77c91d26a9ce3fd2.tar.lz
gsoc2013-epiphany-cad7e6662ea287c565aa1c5d77c91d26a9ce3fd2.tar.xz
gsoc2013-epiphany-cad7e6662ea287c565aa1c5d77c91d26a9ce3fd2.tar.zst
gsoc2013-epiphany-cad7e6662ea287c565aa1c5d77c91d26a9ce3fd2.zip
ephy-file-helpers: add ephy_has_private_profile
To know whether or not we are using a private profile different from the default one.
Diffstat (limited to 'lib')
-rw-r--r--lib/ephy-file-helpers.c6
-rw-r--r--lib/ephy-file-helpers.h98
2 files changed, 46 insertions, 58 deletions
diff --git a/lib/ephy-file-helpers.c b/lib/ephy-file-helpers.c
index c3741a7b5..8777c9616 100644
--- a/lib/ephy-file-helpers.c
+++ b/lib/ephy-file-helpers.c
@@ -248,6 +248,12 @@ ephy_dot_dir (void)
}
gboolean
+ephy_has_private_profile (void)
+{
+ return have_private_profile;
+}
+
+gboolean
ephy_file_helpers_init (const char *profile_dir,
gboolean private_profile,
gboolean keep_temp_dir,
diff --git a/lib/ephy-file-helpers.h b/lib/ephy-file-helpers.h
index 1127b0691..752cf70bd 100644
--- a/lib/ephy-file-helpers.h
+++ b/lib/ephy-file-helpers.h
@@ -45,65 +45,47 @@ typedef enum
EPHY_MIME_PERMISSION_UNKNOWN = 3
} EphyMimePermission;
-gboolean ephy_file_helpers_init (const char *profile_dir,
- gboolean private_profile,
- gboolean keep_temp_dir,
- GError **error);
+gboolean ephy_file_helpers_init (const char *profile_dir,
+ gboolean private_profile,
+ gboolean keep_temp_dir,
+ GError **error);
+const char * ephy_file (const char *filename);
+const char * ephy_dot_dir (void);
+void ephy_file_helpers_shutdown (void);
+char * ephy_file_downloads_dir (void);
+char * ephy_file_get_downloads_dir (void);
+char * ephy_file_desktop_dir (void);
+const char * ephy_file_tmp_dir (void);
+char * ephy_file_tmp_filename (const char *base,
+ const char *extension);
+gboolean ephy_ensure_dir_exists (const char *dir,
+ GError **);
+GSList * ephy_file_find (const char *path,
+ const char *fname,
+ gint maxdepth);
+gboolean ephy_file_switch_temp_file (GFile *file,
+ GFile *file_temp);
+void ephy_file_delete_on_exit (GFile *file);
+void ephy_file_add_recent_item (const char *uri,
+ const char *mime_type);
+EphyMimePermission ephy_file_check_mime (const char *mime_type);
+gboolean ephy_file_launch_desktop_file (const char *filename,
+ const char *parameter,
+ guint32 user_time,
+ GtkWidget *widget);
+gboolean ephy_file_launch_application (GAppInfo *app,
+ GList *files,
+ guint32 user_time,
+ GtkWidget *parent);
+gboolean ephy_file_launch_handler (const char *mime_type,
+ GFile *file,
+ guint32 user_time);
+gboolean ephy_file_browse_to (GFile *file,
+ guint32 user_time);
+void ephy_file_delete_directory (const char *path);
+void ephy_file_delete_uri (const char *uri);
+gboolean ephy_has_private_profile (void);
-const char *ephy_file (const char *filename);
-
-const char *ephy_dot_dir (void);
-
-void ephy_file_helpers_shutdown (void);
-
-char *ephy_file_downloads_dir (void);
-
-char *ephy_file_get_downloads_dir (void);
-
-char *ephy_file_desktop_dir (void);
-
-const char *ephy_file_tmp_dir (void);
-
-char *ephy_file_tmp_filename (const char *base,
- const char *extension);
-
-gboolean ephy_ensure_dir_exists (const char *dir,
- GError **);
-
-GSList *ephy_file_find (const char *path,
- const char *fname,
- gint maxdepth);
-
-gboolean ephy_file_switch_temp_file (GFile *file,
- GFile *file_temp);
-
-void ephy_file_delete_on_exit (GFile *file);
-
-void ephy_file_add_recent_item (const char *uri,
- const char *mime_type);
-
-EphyMimePermission ephy_file_check_mime (const char *mime_type);
-
-gboolean ephy_file_launch_desktop_file (const char *filename,
- const char *parameter,
- guint32 user_time,
- GtkWidget *widget);
-
-gboolean ephy_file_launch_application (GAppInfo *app,
- GList *files,
- guint32 user_time,
- GtkWidget *parent);
-
-gboolean ephy_file_launch_handler (const char *mime_type,
- GFile *file,
- guint32 user_time);
-
-gboolean ephy_file_browse_to (GFile *file,
- guint32 user_time);
-
-void ephy_file_delete_directory (const char *path);
-
-void ephy_file_delete_uri (const char *uri);
G_END_DECLS
#endif /* EPHY_FILE_HELPERS_H */