aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorXan Lopez <xan@src.gnome.org>2007-11-17 02:06:54 +0800
committerXan Lopez <xan@src.gnome.org>2007-11-17 02:06:54 +0800
commitc9587f416cc719e537c0f931531c1a64f2ce1ddc (patch)
treeac1fb93e5e08303723b9c683cbcf18c5ce2b0e71 /embed
parent41ca258bfd0ee58b63e4ac9dfb8d62c9a696f105 (diff)
downloadgsoc2013-epiphany-c9587f416cc719e537c0f931531c1a64f2ce1ddc.tar
gsoc2013-epiphany-c9587f416cc719e537c0f931531c1a64f2ce1ddc.tar.gz
gsoc2013-epiphany-c9587f416cc719e537c0f931531c1a64f2ce1ddc.tar.bz2
gsoc2013-epiphany-c9587f416cc719e537c0f931531c1a64f2ce1ddc.tar.lz
gsoc2013-epiphany-c9587f416cc719e537c0f931531c1a64f2ce1ddc.tar.xz
gsoc2013-epiphany-c9587f416cc719e537c0f931531c1a64f2ce1ddc.tar.zst
gsoc2013-epiphany-c9587f416cc719e537c0f931531c1a64f2ce1ddc.zip
Make EphyEmbedContainer add_child method return the child's new position inside the container.
svn path=/trunk/; revision=7700
Diffstat (limited to 'embed')
-rw-r--r--embed/ephy-embed-container.c5
-rw-r--r--embed/ephy-embed-container.h4
2 files changed, 5 insertions, 4 deletions
diff --git a/embed/ephy-embed-container.c b/embed/ephy-embed-container.c
index 01e4c0520..301d3e082 100644
--- a/embed/ephy-embed-container.c
+++ b/embed/ephy-embed-container.c
@@ -75,15 +75,16 @@ ephy_embed_container_get_type (void)
* @jump_to: %TRUE to switch to @container's new child after insertion
*
* Inserts @child into @container.
+ * Return value: @child's new position inside @container.
**/
-void
+gint
ephy_embed_container_add_child (EphyEmbedContainer *container,
EphyEmbed *child,
gint position,
gboolean jump_to)
{
EphyEmbedContainerIface *iface = EPHY_EMBED_CONTAINER_GET_IFACE (container);
- iface->add_child (container, child, position, jump_to);
+ return iface->add_child (container, child, position, jump_to);
}
/**
diff --git a/embed/ephy-embed-container.h b/embed/ephy-embed-container.h
index 948a0d77c..448203e3b 100644
--- a/embed/ephy-embed-container.h
+++ b/embed/ephy-embed-container.h
@@ -39,7 +39,7 @@ typedef struct _EphyEmbedContainerIface EphyEmbedContainerIface;
struct _EphyEmbedContainerIface
{
- void (* add_child) (EphyEmbedContainer *container,
+ gint (* add_child) (EphyEmbedContainer *container,
EphyEmbed *child,
gint position,
gboolean jump_to);
@@ -61,7 +61,7 @@ struct _EphyEmbedContainerIface
GType ephy_embed_container_get_type (void);
-void ephy_embed_container_add_child (EphyEmbedContainer *container,
+gint ephy_embed_container_add_child (EphyEmbedContainer *container,
EphyEmbed *child,
gint position,
gboolean jump_to);