Expose tabs in MidoriBrowser as GList
This commit is contained in:
parent
102810842f
commit
7044bb70c4
2 changed files with 21 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue