Expose tabs in MidoriBrowser as GList

This commit is contained in:
Christian Dywan 2010-04-25 18:58:28 +02:00
parent 102810842f
commit 7044bb70c4
2 changed files with 21 additions and 0 deletions

View file

@ -7613,6 +7613,24 @@ midori_browser_get_current_tab (MidoriBrowser* browser)
return NULL;
}
/**
* midori_browser_get_tabs:
* @browser: a #MidoriBrowser
*
* Retrieves the tabs as a list.
*
* Return value: a newly allocated #GList of #MidoriView
*
* Since: 0.2.5
**/
GList*
midori_browser_get_tabs (MidoriBrowser* browser)
{
g_return_val_if_fail (MIDORI_IS_BROWSER (browser), NULL);
return gtk_container_get_children (GTK_CONTAINER (browser->notebook));
}
/**
* midori_browser_get_proxy_items:
* @browser: a #MidoriBrowser

View file

@ -133,6 +133,9 @@ midori_browser_set_current_tab (MidoriBrowser* browser,
GtkWidget*
midori_browser_get_current_tab (MidoriBrowser* browser);
GList*
midori_browser_get_tabs (MidoriBrowser* browser);
KatzeArray*
midori_browser_get_proxy_items (MidoriBrowser* browser);