From: Christian Dywan Date: Tue, 18 May 2010 21:55:30 +0000 (+0200) Subject: Rename midori_browser_get/set_current_tab to get/set_tab X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01548549a834584cebb006cf7b3c85a797239ce2;p=midori Rename midori_browser_get/set_current_tab to get/set_tab --- diff --git a/midori/midori-browser.c b/midori/midori-browser.c index 3d2bfca4..ad5e391c 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -7659,13 +7659,15 @@ midori_browser_get_nth_tab (MidoriBrowser* browser, } /** - * midori_browser_set_current_tab: + * midori_browser_set_tab: * @browser: a #MidoriBrowser * @view: a #GtkWidget * * Switches to the page containing @view. * * The widget will also grab the focus automatically. + * + * Since: 0.2.6 **/ void midori_browser_set_current_tab (MidoriBrowser* browser, @@ -7685,7 +7687,7 @@ midori_browser_set_current_tab (MidoriBrowser* browser, } /** - * midori_browser_get_current_tab: + * midori_browser_get_tab: * @browser: a #MidoriBrowser * * Retrieves the currently selected tab. @@ -7695,6 +7697,8 @@ midori_browser_set_current_tab (MidoriBrowser* browser, * See also midori_browser_get_current_page(). * * Return value: the selected tab, or %NULL + * + * Since: 0.2.6 **/ GtkWidget* midori_browser_get_current_tab (MidoriBrowser* browser) diff --git a/midori/midori-browser.h b/midori/midori-browser.h index 78323d32..7129bcc8 100644 --- a/midori/midori-browser.h +++ b/midori/midori-browser.h @@ -130,9 +130,11 @@ midori_browser_get_nth_tab (MidoriBrowser* browser, void midori_browser_set_current_tab (MidoriBrowser* browser, GtkWidget* widget); +#define midori_browser_set_tab midori_browser_set_current_tab GtkWidget* midori_browser_get_current_tab (MidoriBrowser* browser); +#define midori_browser_get_tab midori_browser_get_current_tab GList* midori_browser_get_tabs (MidoriBrowser* browser); diff --git a/midori/midori.vapi b/midori/midori.vapi index 9d208dd8..eb0f1f29 100644 --- a/midori/midori.vapi +++ b/midori/midori.vapi @@ -54,8 +54,7 @@ namespace Midori { public Gtk.Widget panel { get; } [NoAccessorMethod] public string uri { get; set; } - [NoAccessorMethod] - public View tab { get; set; } + public Gtk.Widget? tab { get; set; } [NoAccessorMethod] public uint load_status { get; } [NoAccessorMethod]