[epiphany] ephy-file-helpers: add ephy_has_private_profile



commit cad7e6662ea287c565aa1c5d77c91d26a9ce3fd2
Author: Xan Lopez <xan gnome org>
Date:   Wed Aug 12 14:37:05 2009 +0300

    ephy-file-helpers: add ephy_has_private_profile
    
    To know whether or not we are using a private profile different from
    the default one.

 lib/ephy-file-helpers.c |    6 +++
 lib/ephy-file-helpers.h |   98 +++++++++++++++++++----------------------------
 2 files changed, 46 insertions(+), 58 deletions(-)
---
diff --git a/lib/ephy-file-helpers.c b/lib/ephy-file-helpers.c
index c3741a7..8777c96 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 1127b06..752cf70 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 */



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