Add saving API, unimplemented.

This commit is contained in:
Marco Pesenti Gritti 2007-03-13 12:59:58 +01:00
parent 6b14d9e883
commit 49ef39ac7c
3 changed files with 38 additions and 1 deletions

View File

@ -98,6 +98,25 @@
(return-type "none")
)
(define-method save_uri
(of-object "SugarBrowser")
(c-name "sugar_browser_save_uri")
(return-type "none")
(parameters
'("const-char*" "uri")
'("const-char*" "filename")
)
)
(define-method save_document
(of-object "SugarBrowser")
(c-name "sugar_browser_save_document")
(return-type "none")
(parameters
'("const-char*" "filename")
)
)
(define-method create_window
(of-object "SugarBrowser")
(c-name "sugar_browser_create_window")

View File

@ -484,8 +484,21 @@ sugar_browser_grab_focus(SugarBrowser *browser)
}
}
void
sugar_browser_save_uri(SugarBrowser *browser,
const char *uri,
const char *filename)
{
}
void
sugar_browser_save_document(SugarBrowser *browser,
const char *filename)
{
}
GType
sugar_browser_event_get_type (void)
sugar_browser_event_get_type(void)
{
static GType type = 0;

View File

@ -63,6 +63,11 @@ void sugar_browser_scroll_pixels (SugarBrowser *browser,
int dx,
int dy);
void sugar_browser_grab_focus (SugarBrowser *browser);
void sugar_browser_save_uri (SugarBrowser *browser,
const char *uri,
const char *filename);
void sugar_browser_save_document (SugarBrowser *browser,
const char *filename);
gboolean sugar_browser_startup (const char *profile_path,
const char *profile_name);