diff options
Diffstat (limited to 'embed')
-rw-r--r-- | embed/ephy-embed-shell.c | 14 | ||||
-rw-r--r-- | embed/ephy-embed-shell.h | 3 |
2 files changed, 15 insertions, 2 deletions
diff --git a/embed/ephy-embed-shell.c b/embed/ephy-embed-shell.c index 4802438a0..0dbb568af 100644 --- a/embed/ephy-embed-shell.c +++ b/embed/ephy-embed-shell.c @@ -169,8 +169,8 @@ ephy_embed_shell_get_downloader_view (EphyEmbedShell *shell) return G_OBJECT (shell->priv->downloader_view); } -GObject * -ephy_embed_shell_get_embed_single (EphyEmbedShell *shell) +static GObject * +impl_get_embed_single (EphyEmbedShell *shell) { g_return_val_if_fail (EPHY_IS_EMBED_SHELL (shell), NULL); @@ -184,6 +184,14 @@ ephy_embed_shell_get_embed_single (EphyEmbedShell *shell) } GObject * +ephy_embed_shell_get_embed_single (EphyEmbedShell *shell) +{ + EphyEmbedShellClass *klass = EPHY_EMBED_SHELL_GET_CLASS (shell); + + return klass->get_embed_single (shell); +} + +GObject * ephy_embed_shell_get_encodings (EphyEmbedShell *shell) { g_return_val_if_fail (EPHY_IS_EMBED_SHELL (shell), NULL); @@ -215,5 +223,7 @@ ephy_embed_shell_class_init (EphyEmbedShellClass *klass) object_class->finalize = ephy_embed_shell_finalize; + klass->get_embed_single = impl_get_embed_single; + g_type_class_add_private (object_class, sizeof (EphyEmbedShellPrivate)); } diff --git a/embed/ephy-embed-shell.h b/embed/ephy-embed-shell.h index 4eb3234a9..b5897781f 100644 --- a/embed/ephy-embed-shell.h +++ b/embed/ephy-embed-shell.h @@ -50,6 +50,9 @@ struct _EphyEmbedShell struct _EphyEmbedShellClass { GObjectClass parent_class; + + /*< private >*/ + GObject * (* get_embed_single) (EphyEmbedShell *shell); }; GType ephy_embed_shell_get_type (void); |