Rename midori_browser_get/set_current_tab to get/set_tab

This commit is contained in:
Christian Dywan 2010-05-18 23:55:30 +02:00
parent a69ba674b1
commit 01548549a8
3 changed files with 9 additions and 4 deletions

View file

@ -7659,13 +7659,15 @@ midori_browser_get_nth_tab (MidoriBrowser* browser,
} }
/** /**
* midori_browser_set_current_tab: * midori_browser_set_tab:
* @browser: a #MidoriBrowser * @browser: a #MidoriBrowser
* @view: a #GtkWidget * @view: a #GtkWidget
* *
* Switches to the page containing @view. * Switches to the page containing @view.
* *
* The widget will also grab the focus automatically. * The widget will also grab the focus automatically.
*
* Since: 0.2.6
**/ **/
void void
midori_browser_set_current_tab (MidoriBrowser* browser, 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 * @browser: a #MidoriBrowser
* *
* Retrieves the currently selected tab. * Retrieves the currently selected tab.
@ -7695,6 +7697,8 @@ midori_browser_set_current_tab (MidoriBrowser* browser,
* See also midori_browser_get_current_page(). * See also midori_browser_get_current_page().
* *
* Return value: the selected tab, or %NULL * Return value: the selected tab, or %NULL
*
* Since: 0.2.6
**/ **/
GtkWidget* GtkWidget*
midori_browser_get_current_tab (MidoriBrowser* browser) midori_browser_get_current_tab (MidoriBrowser* browser)

View file

@ -130,9 +130,11 @@ midori_browser_get_nth_tab (MidoriBrowser* browser,
void void
midori_browser_set_current_tab (MidoriBrowser* browser, midori_browser_set_current_tab (MidoriBrowser* browser,
GtkWidget* widget); GtkWidget* widget);
#define midori_browser_set_tab midori_browser_set_current_tab
GtkWidget* GtkWidget*
midori_browser_get_current_tab (MidoriBrowser* browser); midori_browser_get_current_tab (MidoriBrowser* browser);
#define midori_browser_get_tab midori_browser_get_current_tab
GList* GList*
midori_browser_get_tabs (MidoriBrowser* browser); midori_browser_get_tabs (MidoriBrowser* browser);

View file

@ -54,8 +54,7 @@ namespace Midori {
public Gtk.Widget panel { get; } public Gtk.Widget panel { get; }
[NoAccessorMethod] [NoAccessorMethod]
public string uri { get; set; } public string uri { get; set; }
[NoAccessorMethod] public Gtk.Widget? tab { get; set; }
public View tab { get; set; }
[NoAccessorMethod] [NoAccessorMethod]
public uint load_status { get; } public uint load_status { get; }
[NoAccessorMethod] [NoAccessorMethod]