diff options
author | Crispin Flowerday <gnome@flowerday.cx> | 2005-01-16 00:47:39 +0800 |
---|---|---|
committer | Crispin Flowerday <crispin@src.gnome.org> | 2005-01-16 00:47:39 +0800 |
commit | 984bb65c96c5f310313557eca924e9ba73adb8b9 (patch) | |
tree | 747ec7df39db2c7a04b49f286e9160ff71da0af8 /src | |
parent | bfb0471ca2ed4decec07d4cefe1498ccd397dbea (diff) | |
download | gsoc2013-epiphany-984bb65c96c5f310313557eca924e9ba73adb8b9.tar gsoc2013-epiphany-984bb65c96c5f310313557eca924e9ba73adb8b9.tar.gz gsoc2013-epiphany-984bb65c96c5f310313557eca924e9ba73adb8b9.tar.bz2 gsoc2013-epiphany-984bb65c96c5f310313557eca924e9ba73adb8b9.tar.lz gsoc2013-epiphany-984bb65c96c5f310313557eca924e9ba73adb8b9.tar.xz gsoc2013-epiphany-984bb65c96c5f310313557eca924e9ba73adb8b9.tar.zst gsoc2013-epiphany-984bb65c96c5f310313557eca924e9ba73adb8b9.zip |
Add a function to get the default ephy_shell, this makes it easier for
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/ephy-shell.c | 14 | ||||
-rw-r--r-- | src/ephy-shell.h | 2 |
2 files changed, 16 insertions, 0 deletions
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, |