2006-09-26 21:58:54 +02:00
|
|
|
;; -*- scheme -*-
|
|
|
|
; object definitions ...
|
2007-03-13 11:41:27 +01:00
|
|
|
|
|
|
|
(define-boxed SugarBrowserEvent
|
|
|
|
(in-module "Sugar")
|
|
|
|
(c-name "SugarBrowserEvent")
|
|
|
|
(gtype-id "SUGAR_TYPE_BROWSER_EVENT")
|
|
|
|
(copy-func "sugar_browser_event_copy")
|
|
|
|
(release-func "sugar_browser_event_free")
|
|
|
|
)
|
|
|
|
|
2007-03-17 14:26:10 +01:00
|
|
|
(define-boxed SugarBrowserMetadata
|
|
|
|
(in-module "Sugar")
|
|
|
|
(c-name "SugarBrowserMetadata")
|
|
|
|
(gtype-id "SUGAR_TYPE_BROWSER_METADATA")
|
|
|
|
(copy-func "sugar_browser_metadata_copy")
|
|
|
|
(release-func "sugar_browser_metadata_free")
|
|
|
|
)
|
|
|
|
|
2006-10-12 15:49:11 +02:00
|
|
|
(define-object AddressEntry
|
|
|
|
(in-module "Sugar")
|
|
|
|
(parent "GtkEntry")
|
|
|
|
(c-name "SugarAddressEntry")
|
|
|
|
(gtype-id "SUGAR_TYPE_ADDRESS_ENTRY")
|
|
|
|
)
|
|
|
|
|
2006-10-13 01:04:01 +02:00
|
|
|
(define-object Browser
|
|
|
|
(in-module "Sugar")
|
|
|
|
(parent "GtkMozEmbed")
|
|
|
|
(c-name "SugarBrowser")
|
|
|
|
(gtype-id "SUGAR_TYPE_BROWSER")
|
|
|
|
)
|
|
|
|
|
2006-11-15 13:56:19 +01:00
|
|
|
(define-object DownloadManager
|
2006-10-26 15:47:57 +02:00
|
|
|
(in-module "Sugar")
|
|
|
|
(parent "GObject")
|
2006-11-15 13:56:19 +01:00
|
|
|
(c-name "SugarDownloadManager")
|
|
|
|
(gtype-id "SUGAR_TYPE_DOWNLOAD_MANAGER")
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-object Download
|
|
|
|
(in-module "Sugar")
|
|
|
|
(parent "GObject")
|
|
|
|
(c-name "SugarDownload")
|
|
|
|
(gtype-id "SUGAR_TYPE_DOWNLOAD")
|
2006-10-26 15:47:57 +02:00
|
|
|
)
|
|
|
|
|
2006-09-26 21:58:54 +02:00
|
|
|
;; Enumerations and flags ...
|
|
|
|
|
|
|
|
|
2006-10-13 01:04:01 +02:00
|
|
|
;; From sugar-address-entry.h
|
2006-09-27 14:45:55 +02:00
|
|
|
|
2006-10-13 01:04:01 +02:00
|
|
|
(define-function sugar_address_entry_get_type
|
|
|
|
(c-name "sugar_address_entry_get_type")
|
2006-09-27 14:45:55 +02:00
|
|
|
(return-type "GType")
|
|
|
|
)
|
2006-09-26 21:58:54 +02:00
|
|
|
|
2006-10-13 01:04:01 +02:00
|
|
|
;; From sugar-browser.h
|
|
|
|
|
|
|
|
(define-function sugar_browser_get_type
|
|
|
|
(c-name "sugar_browser_get_type")
|
|
|
|
(return-type "GType")
|
2006-09-26 21:58:54 +02:00
|
|
|
)
|
|
|
|
|
2007-04-07 13:17:36 +02:00
|
|
|
(define-function startup
|
2006-10-13 01:04:01 +02:00
|
|
|
(c-name "sugar_browser_startup")
|
2007-01-23 20:33:56 +01:00
|
|
|
(parameters
|
|
|
|
'("const-char*" "profile_path")
|
|
|
|
'("const-char*" "profile_name")
|
|
|
|
)
|
2006-10-25 10:18:43 +02:00
|
|
|
(return-type "gboolean")
|
2006-09-27 14:45:55 +02:00
|
|
|
)
|
|
|
|
|
2007-04-07 13:17:36 +02:00
|
|
|
(define-function shutdown
|
2007-01-23 20:33:56 +01:00
|
|
|
(c-name "sugar_browser_shutdown")
|
|
|
|
(return-type "none")
|
|
|
|
)
|
|
|
|
|
2006-10-20 19:54:28 +02:00
|
|
|
(define-method grab_focus
|
|
|
|
(of-object "SugarBrowser")
|
|
|
|
(c-name "sugar_browser_grab_focus")
|
|
|
|
(return-type "none")
|
|
|
|
)
|
|
|
|
|
2007-03-13 12:59:58 +01:00
|
|
|
(define-method save_uri
|
|
|
|
(of-object "SugarBrowser")
|
|
|
|
(c-name "sugar_browser_save_uri")
|
2007-03-13 14:07:03 +01:00
|
|
|
(return-type "gboolean")
|
2007-03-13 12:59:58 +01:00
|
|
|
(parameters
|
|
|
|
'("const-char*" "uri")
|
|
|
|
'("const-char*" "filename")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-method save_document
|
|
|
|
(of-object "SugarBrowser")
|
|
|
|
(c-name "sugar_browser_save_document")
|
2007-03-13 14:07:03 +01:00
|
|
|
(return-type "gboolean")
|
2007-03-13 12:59:58 +01:00
|
|
|
(parameters
|
|
|
|
'("const-char*" "filename")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
2006-09-27 14:45:55 +02:00
|
|
|
(define-method create_window
|
2006-10-13 01:04:01 +02:00
|
|
|
(of-object "SugarBrowser")
|
|
|
|
(c-name "sugar_browser_create_window")
|
|
|
|
(return-type "SugarBrowser*")
|
2006-09-27 14:45:55 +02:00
|
|
|
)
|
2006-09-26 21:58:54 +02:00
|
|
|
|
2006-10-20 00:32:54 +02:00
|
|
|
(define-virtual create_window
|
|
|
|
(of-object "SugarBrowser")
|
|
|
|
(c-name "sugar_browser_create_window")
|
|
|
|
(return-type "SugarBrowser*")
|
|
|
|
)
|
2006-10-13 01:04:01 +02:00
|
|
|
|
|
|
|
;; From sugar-key-grabber.h
|
2006-10-12 12:47:17 +02:00
|
|
|
|
|
|
|
(define-function sugar_key_grabber_get_type
|
|
|
|
(c-name "sugar_key_grabber_get_type")
|
|
|
|
(return-type "GType")
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-method grab
|
|
|
|
(of-object "SugarKeyGrabber")
|
|
|
|
(c-name "sugar_key_grabber_grab")
|
|
|
|
(return-type "none")
|
|
|
|
(parameters
|
2006-10-13 01:04:01 +02:00
|
|
|
'("const-char*" "key")
|
2006-10-12 12:47:17 +02:00
|
|
|
)
|
|
|
|
)
|
2006-10-13 01:04:01 +02:00
|
|
|
|
2007-03-17 14:30:23 +01:00
|
|
|
(define-method get_key
|
|
|
|
(of-object "SugarKeyGrabber")
|
|
|
|
(c-name "sugar_key_grabber_get_key")
|
|
|
|
(return-type "char*")
|
|
|
|
(parameters
|
|
|
|
'("guint" "keycode")
|
|
|
|
'("guint" "state")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
2006-11-15 13:56:19 +01:00
|
|
|
;; From sugar-download-manager.h
|
|
|
|
|
|
|
|
(define-function sugar_download_manager_get_type
|
|
|
|
(c-name "sugar_download_manager_get_type")
|
|
|
|
(return-type "GType")
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-function get_download_manager
|
|
|
|
(c-name "sugar_get_download_manager")
|
|
|
|
(return-type "SugarDownloadManager*")
|
|
|
|
)
|
|
|
|
|
|
|
|
;; From sugar-download.h
|
2006-10-26 15:47:57 +02:00
|
|
|
|
2006-11-15 13:56:19 +01:00
|
|
|
(define-function sugar_download_get_type
|
|
|
|
(c-name "sugar_download_get_type")
|
2006-10-26 15:47:57 +02:00
|
|
|
(return-type "GType")
|
|
|
|
)
|
|
|
|
|
2006-11-15 13:56:19 +01:00
|
|
|
(define-method get_file_name
|
|
|
|
(of-object "SugarDownload")
|
|
|
|
(c-name "sugar_download_get_file_name")
|
|
|
|
(return-type "const-gchar*")
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-method get_url
|
|
|
|
(of-object "SugarDownload")
|
|
|
|
(c-name "sugar_download_get_url")
|
|
|
|
(return-type "const-gchar*")
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-method get_mime_type
|
|
|
|
(of-object "SugarDownload")
|
|
|
|
(c-name "sugar_download_get_mime_type")
|
|
|
|
(return-type "const-gchar*")
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-method get_percent
|
|
|
|
(of-object "SugarDownload")
|
|
|
|
(c-name "sugar_download_get_percent")
|
|
|
|
(return-type "gint")
|
2006-10-26 15:47:57 +02:00
|
|
|
)
|
2006-12-21 08:09:05 +01:00
|
|
|
|
2007-01-23 20:33:56 +01:00
|
|
|
(include "gtkmozembed.defs")
|