Top | ![]() |
![]() |
![]() |
![]() |
MidoriBrowser * midori_browser_new (void
);
Creates a new browser widget.
A browser is a window with a menubar, toolbars, a notebook, panels and a statusbar. You should mostly treat it as an opaque widget.
void midori_browser_add_tab (,
MidoriBrowser *browser);
GtkWidget *widget
Appends a view in the form of a new tab and creates an according item in the Window menu.
Since 0.4.9: Return type is void
void midori_browser_close_tab (,
MidoriBrowser *browser);
GtkWidget *widget
Closes an existing view, removing it and its associated menu item from the browser.
GtkWidget * midori_browser_add_item (,
MidoriBrowser *browser);
KatzeItem *item
Since 0.4.9: Return type is GtkWidget*
GtkWidget * midori_browser_add_uri (,
MidoriBrowser *browserconst
);gchar *uri
Appends an uri in the form of a new view.
Since 0.4.9: Return type is GtkWidget*
void midori_browser_activate_action (,
MidoriBrowser *browserconst
);gchar *name
Activates the specified action. See also midori_browser_assert_action()
.
void midori_browser_assert_action (,
MidoriBrowser *browserconst
);gchar *name
Assert that name
is a valid action or setting expression,
if it fails the program will terminate with an error.
To be used with command line interfaces.
Since 0.5.0
void midori_browser_block_action (,
MidoriBrowser *browser);
GtkAction *action
Blocks built-in behavior of the specified action without
disabling it, which gives you a chance to connect your
own signal handling.
Call midori_browser_unblock_action()
to undo the effect.
Since 0.3.4
void midori_browser_unblock_action (,
MidoriBrowser *browser);
GtkAction *action
Restores built-in behavior of the specified action after
previously blocking it with midori_browser_block_action()
.
Since 0.3.4
void midori_browser_set_action_visible (,
MidoriBrowser *browserconst
,gchar *name);
gboolean visible
GtkActionGroup * midori_browser_get_action_group ();
MidoriBrowser *browser
Retrieves the action group holding all actions used by the browser. It allows obtaining individual actions and adding new actions.
Since 0.1.4
void midori_browser_set_current_uri (,
MidoriBrowser *browserconst
);gchar *uri
Loads the specified URI in the current view.
If the current view is opaque, and cannot load new pages, it will automatically open a new tab.
constgchar * midori_browser_get_current_uri ();
MidoriBrowser *browser
Determines the URI loaded in the current view.
If there is no view present at all, NULL
void midori_browser_set_current_page_smartly (,
MidoriBrowser *browser);
gint n
void midori_browser_set_current_tab_smartly (,
MidoriBrowser *browser);
GtkWidget *view
Switches to the tab containing view
iff open-tabs-in-the-background is FALSE
Since 0.4.9
void midori_browser_set_current_page (,
MidoriBrowser *browser);
gint n
Switches to the page with the index n
.
The widget will also grab the focus automatically.
gint midori_browser_get_current_page ();
MidoriBrowser *browser
Determines the currently selected page.
If there is no page present at all, NULL
void midori_browser_set_current_item (,
MidoriBrowser *browser);
KatzeItem *item
Switches to the page containing item
, see also midori_browser_set_current_page()
.
The widget will also grab the focus automatically.
Since 0.4.8
GtkWidget * midori_browser_get_nth_tab (,
MidoriBrowser *browser);
gint n
Retrieves the tab at the position page
.
If there is no page present at all, NULL
Since 0.1.9
void midori_browser_set_current_tab (,
MidoriBrowser *browser);
GtkWidget *widget
GtkWidget * midori_browser_get_current_tab ();
MidoriBrowser *browser
gint midori_browser_page_num (,
MidoriBrowser *browser);
GtkWidget *view
Retrieves the position of widget
in the browser.
If there is no page present at all, -1 is returned.
Since 0.4.5
GList * midori_browser_get_tabs ();
MidoriBrowser *browser
Retrieves the tabs as a list.
Since 0.2.5
KatzeArray * midori_browser_get_proxy_array ();
MidoriBrowser *browser
Retrieves a proxy array representing the respective proxy items. The array is updated automatically.
MidoriBrowser * midori_browser_get_for_widget ();
GtkWidget *widget
Determines the browser appropriate for the specified widget.
void midori_browser_quit ();
MidoriBrowser *browser
Quits the browser, including any other browser windows.
This function relys on the application implementing the MidoriBrowser::quit signal. If the browser was added to the MidoriApp, this is handled automatically.
constgchar ** midori_browser_get_toolbar_actions ();
MidoriBrowser *browser
Retrieves a list of actions which are suitable for use in a toolbar.
Since 0.1.8
MidoriWebSettings * midori_browser_get_settings ();
MidoriBrowser *browser
Retrieves the settings instance of the browser.
Since 0.2.5
void midori_browser_update_history (,
KatzeItem *itemconst
,gchar *typeconst
);gchar *event
item |
a |
|
type |
"website", "bookmark" or "download" |
|
event |
"access", "leave", "modify", "delete" |
Since 0.4.7
void midori_browser_save_uri (,
MidoriBrowser *browser,
MidoriView *viewconst
);gchar *uri
#define midori_browser_set_tab midori_browser_set_current_tab
Switches to the page containing view
.
The widget will also grab the focus automatically.
Since 0.2.6
#define midori_browser_get_tab midori_browser_get_current_tab
Retrieves the currently selected tab.
If there is no tab present at all, NULL
See also midori_browser_get_current_page()
.
Since 0.2.6