aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog8
-rw-r--r--src/ephy-shell.c14
-rw-r--r--src/ephy-shell.h2
3 files changed, 24 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 92cbe440d..64d0a78aa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2005-01-15 Crispin Flowerday <gnome@flowerday.cx>
+
+ * src/ephy-shell.c (ephy_shell_get_default):
+ * src/ephy-shell.h:
+
+ Add a function to get the default ephy_shell, this makes
+ it easier for bindings to get it.
+
2005-01-15 Christian Persch <chpe@cvs.gnome.org>
* embed/ephy-cookie-manager.c: (ephy_cookie_copy):
diff --git a/src/ephy-shell.c b/src/ephy-shell.c
index 235cdc3f5..a05d0a759 100644
--- a/src/ephy-shell.c
+++ b/src/ephy-shell.c
@@ -499,6 +499,20 @@ ephy_shell_finalize (GObject *object)
LOG ("Ephy shell finalized")
}
+
+/**
+ * ephy_shell_get_default:
+ *
+ * Retrieve the default #EphyShell object
+ *
+ * ReturnValue: the default #EphyShell
+ **/
+EphyShell *
+ephy_shell_get_default (void)
+{
+ return ephy_shell;
+}
+
EphyShell *
ephy_shell_new (void)
{
diff --git a/src/ephy-shell.h b/src/ephy-shell.h
index a9867fe97..9bc1fe06d 100644
--- a/src/ephy-shell.h
+++ b/src/ephy-shell.h
@@ -106,6 +106,8 @@ GType ephy_shell_get_type (void);
GQuark ephy_shell_error_quark (void);
+EphyShell *ephy_shell_get_default (void);
+
EphyShell *ephy_shell_new (void);
gboolean ephy_shell_startup (EphyShell *shell,