From 853959c41d3f118721f118ee3ec16e43bf98d529 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sun, 31 Jul 2005 18:32:35 +0000 Subject: Add ephy_embed_shell_get_default() analogous to ephy_shell_get_default(). 2005-07-31 Christian Persch * embed/ephy-embed-shell.c: (ephy_embed_shell_get_default): * embed/ephy-embed-shell.h: Add ephy_embed_shell_get_default() analogous to ephy_shell_get_default(). --- ChangeLog | 8 ++++++++ embed/ephy-embed-shell.c | 13 +++++++++++++ embed/ephy-embed-shell.h | 2 ++ 3 files changed, 23 insertions(+) diff --git a/ChangeLog b/ChangeLog index 34e8f1564..645779167 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2005-07-31 Christian Persch + + * embed/ephy-embed-shell.c: (ephy_embed_shell_get_default): + * embed/ephy-embed-shell.h: + + Add ephy_embed_shell_get_default() analogous to + ephy_shell_get_default(). + 2005-07-31 Christian Persch * src/ephy-tab.c: (ephy_tab_set_icon_address), diff --git a/embed/ephy-embed-shell.c b/embed/ephy-embed-shell.c index 438dd546b..43e7fb692 100644 --- a/embed/ephy-embed-shell.c +++ b/embed/ephy-embed-shell.c @@ -258,3 +258,16 @@ ephy_embed_shell_class_init (EphyEmbedShellClass *klass) g_type_class_add_private (object_class, sizeof (EphyEmbedShellPrivate)); } + +/** + * ephy_embed_shell_get_default: + * + * Retrieves the default #EphyEmbedShell object + * + * ReturnValue: the default #EphyEmbedShell + **/ +EphyEmbedShell * +ephy_embed_shell_get_default (void) +{ + return embed_shell; +} diff --git a/embed/ephy-embed-shell.h b/embed/ephy-embed-shell.h index d5369749c..3e10d1b5d 100644 --- a/embed/ephy-embed-shell.h +++ b/embed/ephy-embed-shell.h @@ -59,6 +59,8 @@ struct _EphyEmbedShellClass GType ephy_embed_shell_get_type (void); +EphyEmbedShell *ephy_embed_shell_get_default (void); + GObject *ephy_embed_shell_get_favicon_cache (EphyEmbedShell *ges); GObject *ephy_embed_shell_get_global_history (EphyEmbedShell *shell); -- cgit v1.2.3