diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2005-01-01 00:09:40 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2005-01-01 00:09:40 +0800 |
commit | 9b8959a4de1dc5eacdf807ae6d311defce4fad51 (patch) | |
tree | 88ac3f23c1b1024b3b6d7101bbc6712ebd943e74 /embed/ephy-embed-shell.h | |
parent | ddf12994065314b103f57969640845d7344974f2 (diff) | |
download | gsoc2013-epiphany-9b8959a4de1dc5eacdf807ae6d311defce4fad51.tar gsoc2013-epiphany-9b8959a4de1dc5eacdf807ae6d311defce4fad51.tar.gz gsoc2013-epiphany-9b8959a4de1dc5eacdf807ae6d311defce4fad51.tar.bz2 gsoc2013-epiphany-9b8959a4de1dc5eacdf807ae6d311defce4fad51.tar.lz gsoc2013-epiphany-9b8959a4de1dc5eacdf807ae6d311defce4fad51.tar.xz gsoc2013-epiphany-9b8959a4de1dc5eacdf807ae6d311defce4fad51.tar.zst gsoc2013-epiphany-9b8959a4de1dc5eacdf807ae6d311defce4fad51.zip |
Move mime permission checks to ephy-file-helpers.
2004-12-31 Christian Persch <chpe@cvs.gnome.org>
* embed/ephy-embed-shell.c: (ephy_embed_shell_finalize),
(ephy_embed_shell_get_encodings):
* embed/ephy-embed-shell.h:
* embed/mozilla/ContentHandler.cpp:
* embed/mozilla/ContentHandler.h:
* lib/ephy-file-helpers.c: (ephy_file_helpers_shutdown),
(ephy_file_delete_on_exit), (load_mime_from_xml),
(ephy_file_check_mime):
* lib/ephy-file-helpers.h:
Move mime permission checks to ephy-file-helpers.
* src/popup-commands.c: (image_open_uri),
(save_source_completed_cb), (popup_cmd_open_image):
Only open the image if its mime type is 'safe'.
Diffstat (limited to 'embed/ephy-embed-shell.h')
-rw-r--r-- | embed/ephy-embed-shell.h | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/embed/ephy-embed-shell.h b/embed/ephy-embed-shell.h index cc2febf60..4eb3234a9 100644 --- a/embed/ephy-embed-shell.h +++ b/embed/ephy-embed-shell.h @@ -33,20 +33,13 @@ G_BEGIN_DECLS #define EPHY_IS_EMBED_SHELL_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EPHY_TYPE_EMBED_SHELL)) #define EPHY_EMBED_SHELL_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), EPHY_TYPE_EMBED_SHELL, EphyEmbedShellClass)) -typedef struct EphyEmbedShellClass EphyEmbedShellClass; -typedef struct EphyEmbedShell EphyEmbedShell; -typedef struct EphyEmbedShellPrivate EphyEmbedShellPrivate; +typedef struct _EphyEmbedShellClass EphyEmbedShellClass; +typedef struct _EphyEmbedShell EphyEmbedShell; +typedef struct _EphyEmbedShellPrivate EphyEmbedShellPrivate; extern EphyEmbedShell *embed_shell; -typedef enum -{ - EPHY_MIME_PERMISSION_SAFE = 1, - EPHY_MIME_PERMISSION_UNSAFE = 2, - EPHY_MIME_PERMISSION_UNKNOWN = 3 -} EphyMimePermission; - -struct EphyEmbedShell +struct _EphyEmbedShell { GObject parent; @@ -54,7 +47,7 @@ struct EphyEmbedShell EphyEmbedShellPrivate *priv; }; -struct EphyEmbedShellClass +struct _EphyEmbedShellClass { GObjectClass parent_class; }; @@ -71,9 +64,6 @@ GObject *ephy_embed_shell_get_encodings (EphyEmbedShell *shell); GObject *ephy_embed_shell_get_embed_single (EphyEmbedShell *shell); -EphyMimePermission ephy_embed_shell_check_mime (EphyEmbedShell *shell, - const char *mime_type); - G_END_DECLS -#endif +#endif /* !EPHY_EMBED_SHELL_H */ |