aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-embed-single.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-08-08 19:32:18 +0800
committerChristian Persch <chpe@src.gnome.org>2004-08-08 19:32:18 +0800
commit1bb4b10ce6a3e857b14e0637e17203960dcc9543 (patch)
tree13cc19b248d1c9b042ba8ccd3bf3a837f0778ac5 /embed/ephy-embed-single.c
parent5edd4b22cdae0b762add8316fe023a334f67060d (diff)
downloadgsoc2013-epiphany-1bb4b10ce6a3e857b14e0637e17203960dcc9543.tar
gsoc2013-epiphany-1bb4b10ce6a3e857b14e0637e17203960dcc9543.tar.gz
gsoc2013-epiphany-1bb4b10ce6a3e857b14e0637e17203960dcc9543.tar.bz2
gsoc2013-epiphany-1bb4b10ce6a3e857b14e0637e17203960dcc9543.tar.lz
gsoc2013-epiphany-1bb4b10ce6a3e857b14e0637e17203960dcc9543.tar.xz
gsoc2013-epiphany-1bb4b10ce6a3e857b14e0637e17203960dcc9543.tar.zst
gsoc2013-epiphany-1bb4b10ce6a3e857b14e0637e17203960dcc9543.zip
Make ephy_embed_single_open_window() return the newly opened embed widget.
2004-08-08 Christian Persch <chpe@cvs.gnome.org> * embed/ephy-embed-single.c: (ephy_embed_single_open_window): * embed/ephy-embed-single.h: * embed/mozilla/mozilla-embed-single.cpp: (impl_open_window): * src/ephy-tab.c: (popups_manager_show): Make ephy_embed_single_open_window() return the newly opened embed widget.
Diffstat (limited to 'embed/ephy-embed-single.c')
-rw-r--r--embed/ephy-embed-single.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/embed/ephy-embed-single.c b/embed/ephy-embed-single.c
index 64f72d3a3..80788dada 100644
--- a/embed/ephy-embed-single.c
+++ b/embed/ephy-embed-single.c
@@ -190,21 +190,26 @@ ephy_embed_single_get_font_list (EphyEmbedSingle *single,
* @single: the #EphyEmbedSingle
* @parent: the requested window's parent #EphyEmbed
* @address: the URL to load
+ * @name: a name for the window
* @features: a Javascript features string
*
* Opens a new window, as if it were opened in @parent using the Javascript
* method and arguments: <code>window.open(&quot;@address&quot;,
* &quot;_blank&quot;, &quot;@features&quot;);</code>.
*
- * Use ephy_shell_new_tab() unless this handling of the @features string is
+ * Returns: the new embed. This is either a #EphyEmbed, or, when @features specified
+ * "chrome", a #GtkMozEmbed.
+ *
+ * NOTE: Use ephy_shell_new_tab() unless this handling of the @features string is
* required.
*/
-void
+GtkWidget *
ephy_embed_single_open_window (EphyEmbedSingle *single,
EphyEmbed *parent,
const char *address,
+ const char *name,
const char *features)
{
EphyEmbedSingleIface *iface = EPHY_EMBED_SINGLE_GET_IFACE (single);
- return iface->open_window (single, parent, address, features);
+ return iface->open_window (single, parent, address, name, features);
}