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
* @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)

View file

@ -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);

View file

@ -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]