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") (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 (define-method create_window
(of-object "SugarBrowser") (of-object "SugarBrowser")
(c-name "sugar_browser_create_window") (c-name "sugar_browser_create_window")

View File

@ -484,6 +484,19 @@ 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 GType
sugar_browser_event_get_type(void) sugar_browser_event_get_type(void)
{ {

View File

@ -63,6 +63,11 @@ void sugar_browser_scroll_pixels (SugarBrowser *browser,
int dx, int dx,
int dy); int dy);
void sugar_browser_grab_focus (SugarBrowser *browser); 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, gboolean sugar_browser_startup (const char *profile_path,
const char *profile_name); const char *profile_name);