aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
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);