2006-09-26 21:58:54 +02:00
|
|
|
;; -*- scheme -*-
|
|
|
|
; object definitions ...
|
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")
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-object KeyGrabber
|
|
|
|
(in-module "Sugar")
|
|
|
|
(parent "GObject")
|
|
|
|
(c-name "SugarKeyGrabber")
|
|
|
|
(gtype-id "SUGAR_TYPE_KEY_GRABBER")
|
|
|
|
)
|
|
|
|
|
2006-10-16 18:43:04 +02:00
|
|
|
(define-object TrayManager
|
|
|
|
(in-module "Sugar")
|
|
|
|
(parent "GObject")
|
|
|
|
(c-name "SugarTrayManager")
|
|
|
|
(gtype-id "SUGAR_TYPE_TRAY_MANAGER")
|
|
|
|
)
|
|
|
|
|
2006-10-17 21:53:29 +02:00
|
|
|
(define-object PushScroller
|
|
|
|
(in-module "Sugar")
|
|
|
|
(parent "GObject")
|
|
|
|
(c-name "SugarPushScroller")
|
|
|
|
(gtype-id "SUGAR_TYPE_PUSH_SCROLLER")
|
|
|
|
)
|
|
|
|
|
2006-10-26 15:47:57 +02:00
|
|
|
(define-object BrowserChandler
|
|
|
|
(in-module "Sugar")
|
|
|
|
(parent "GObject")
|
|
|
|
(c-name "SugarBrowserChandler")
|
|
|
|
(gtype-id "SUGAR_TYPE_BROWSER_CHANDLER")
|
|
|
|
)
|
|
|
|
|
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
|
|
|
)
|
|
|
|
|
2006-10-13 01:04:01 +02:00
|
|
|
(define-function startup_browser
|
|
|
|
(c-name "sugar_browser_startup")
|
2006-10-25 10:18:43 +02:00
|
|
|
(return-type "gboolean")
|
2006-09-27 14:45:55 +02:00
|
|
|
)
|
|
|
|
|
2006-10-20 19:54:28 +02:00
|
|
|
(define-method grab_focus
|
|
|
|
(of-object "SugarBrowser")
|
|
|
|
(c-name "sugar_browser_grab_focus")
|
|
|
|
(return-type "none")
|
|
|
|
)
|
|
|
|
|
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
|
|
|
|
2006-10-16 18:19:44 +02:00
|
|
|
;; From sugar-tray-manager.h
|
|
|
|
|
|
|
|
(define-function tray_manager_get_type
|
|
|
|
(c-name "sugar_tray_manager_get_type")
|
|
|
|
(return-type "GType")
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-function tray_manager_check_running
|
|
|
|
(c-name "sugar_tray_manager_check_running")
|
|
|
|
(return-type "gboolean")
|
|
|
|
(parameters
|
|
|
|
'("GdkScreen*" "screen")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-function tray_manager_new
|
|
|
|
(c-name "sugar_tray_manager_new")
|
|
|
|
(is-constructor-of "SugarTrayManager")
|
|
|
|
(return-type "SugarTrayManager*")
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-method manage_screen
|
|
|
|
(of-object "SugarTrayManager")
|
|
|
|
(c-name "sugar_tray_manager_manage_screen")
|
|
|
|
(return-type "gboolean")
|
|
|
|
(parameters
|
|
|
|
'("GdkScreen*" "screen")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-method get_child_title
|
|
|
|
(of-object "SugarTrayManager")
|
|
|
|
(c-name "sugar_tray_manager_get_child_title")
|
|
|
|
(return-type "char*")
|
|
|
|
(parameters
|
|
|
|
'("SugarTrayManagerChild*" "child")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-method set_orientation
|
|
|
|
(of-object "SugarTrayManager")
|
|
|
|
(c-name "sugar_tray_manager_set_orientation")
|
|
|
|
(return-type "none")
|
|
|
|
(parameters
|
|
|
|
'("GtkOrientation" "orientation")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-method get_orientation
|
|
|
|
(of-object "SugarTrayManager")
|
|
|
|
(c-name "sugar_tray_manager_get_orientation")
|
|
|
|
(return-type "GtkOrientation")
|
|
|
|
)
|
|
|
|
|
2006-10-17 21:53:29 +02:00
|
|
|
;; From sugar-push-scroller.h
|
|
|
|
|
|
|
|
(define-function push_scroller_get_type
|
|
|
|
(c-name "sugar_push_scroller_get_type")
|
|
|
|
(return-type "GType")
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-method start
|
|
|
|
(of-object "SugarPushScroller")
|
|
|
|
(c-name "sugar_push_scroller_start")
|
|
|
|
(return-type "none")
|
|
|
|
(parameters
|
|
|
|
'("SugarBrowser*" "browser")
|
|
|
|
'("int" "x")
|
|
|
|
'("int" "y")
|
|
|
|
)
|
|
|
|
)
|
2006-10-16 18:19:44 +02:00
|
|
|
|
2006-10-17 21:53:29 +02:00
|
|
|
(define-method stop
|
|
|
|
(of-object "SugarPushScroller")
|
|
|
|
(c-name "sugar_push_scroller_stop")
|
|
|
|
(return-type "none")
|
|
|
|
(parameters
|
|
|
|
'("guint32" "timestamp")
|
|
|
|
)
|
|
|
|
)
|
2006-10-26 15:47:57 +02:00
|
|
|
|
|
|
|
;; From sugar-browser-chandler.h
|
|
|
|
|
|
|
|
(define-function sugar_browser_chandler_get_type
|
|
|
|
(c-name "sugar_browser_chandler_get_type")
|
|
|
|
(return-type "GType")
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-function get_browser_chandler
|
|
|
|
(c-name "sugar_get_browser_chandler")
|
|
|
|
(return-type "SugarBrowserChandler*")
|
|
|
|
)
|