Expose browsers in MidoriApp as GList

This commit is contained in:
Christian Dywan 2010-04-25 18:48:04 +02:00
parent c213824d5f
commit 102810842f
2 changed files with 19 additions and 0 deletions

View file

@ -1146,7 +1146,23 @@ midori_app_create_browser (MidoriApp* app)
"history", app->history,
NULL);
}
/**
* midori_app_get_browsers:
* @app: a #MidoriApp
*
* Retrieves the browsers as a list.
*
* Return value: a newly allocated #Glist of #MidoriBrowser
*
* Since: 0.2.5
**/
GList*
midori_app_get_browsers (MidoriApp* app)
{
g_return_val_if_fail (MIDORI_IS_APP (app), NULL);
return katze_array_get_items (app->browsers);
}
/**
* midori_app_quit:
* @app: a #MidoriApp

View file

@ -65,6 +65,9 @@ midori_app_add_browser (MidoriApp* app,
MidoriBrowser*
midori_app_create_browser (MidoriApp* app);
GList*
midori_app_get_browsers (MidoriApp* app);
void
midori_app_quit (MidoriApp* app);