From 9d3c8841946b2fd36de28d12033aaa74e46adc71 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sun, 25 Apr 2010 18:20:19 +0200 Subject: [PATCH] Implement midori_browser_get_proxy_items This supersedes midori_browser_get_proxy_array as a means to access the KatzeItem* items. The new name is clearer. --- midori/midori-browser.c | 22 +++++++++++++++++++++- midori/midori-browser.h | 3 +++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/midori/midori-browser.c b/midori/midori-browser.c index 85b7d8f8..12227714 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -7614,7 +7614,7 @@ midori_browser_get_current_tab (MidoriBrowser* browser) } /** - * midori_browser_get_proxy_array: + * midori_browser_get_proxy_items: * @browser: a #MidoriBrowser * * Retrieves a proxy array representing the respective proxy items @@ -7626,6 +7626,26 @@ midori_browser_get_current_tab (MidoriBrowser* browser) * may release its reference at some point. * * Return value: the proxy #KatzeArray + * + * Since: 0.2.5 + **/ +KatzeArray* +midori_browser_get_proxy_items (MidoriBrowser* browser) +{ + g_return_val_if_fail (MIDORI_IS_BROWSER (browser), NULL); + + return browser->proxy_array; +} + +/** + * midori_browser_get_proxy_array: + * @browser: a #MidoriBrowser + * + * Retrieves a proxy array representing the respective proxy items. + * + * Return value: the proxy #KatzeArray + * + * Deprecated: 0.2.5: Use midori_browser_get_proxy_item instead. **/ KatzeArray* midori_browser_get_proxy_array (MidoriBrowser* browser) diff --git a/midori/midori-browser.h b/midori/midori-browser.h index 1b3d8734..2bd4c432 100644 --- a/midori/midori-browser.h +++ b/midori/midori-browser.h @@ -133,6 +133,9 @@ midori_browser_set_current_tab (MidoriBrowser* browser, GtkWidget* midori_browser_get_current_tab (MidoriBrowser* browser); +KatzeArray* +midori_browser_get_proxy_items (MidoriBrowser* browser); + KatzeArray* midori_browser_get_proxy_array (MidoriBrowser* browser); -- 2.39.5