BrowserSetDefault
From TrillWiki
The browserSetDefault function sets up a particular browser for a particular protocol as the default. Until this is set, a browser that is registered still may not be used as the main browser.
Compatibility: 2.0 and higher
Contents |
Syntax
plugin_send(MYGUID, "browserSetDefault", struct browser_entry_t *);
Note that all Trillian functions and notifications begin with a lower-case letter, despite the Wiki requirement that all pages start with a capital letter.
Parameters
BrowserSetDefault utilitizes the browser_entry_t structure.
struct browser_entry_t {
unsigned int struct_size;
char *protocol;
char *name;
char *description;
ttkCallback callback;
void *data;
};
- protocol
- The protocol to set the default browser.
- name
- The name of the browser.
Return Value
Negative value on error, 0 on success.
Remarks
Do not automatically set your browser as the default. Have it be user-initiated.
