2006-09-26 21:58:54 +02:00
|
|
|
;; -*- scheme -*-
|
|
|
|
; object definitions ...
|
2006-09-27 14:45:55 +02:00
|
|
|
(define-object Browser
|
|
|
|
(in-module "Gecko")
|
|
|
|
(parent "GtkMozEmbed")
|
|
|
|
(c-name "GeckoBrowser")
|
|
|
|
(gtype-id "GECKO_TYPE_BROWSER")
|
|
|
|
)
|
|
|
|
|
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-09-26 21:58:54 +02:00
|
|
|
;; Enumerations and flags ...
|
|
|
|
|
|
|
|
|
2006-09-27 14:45:55 +02:00
|
|
|
;; From gecko-browser.h
|
|
|
|
|
|
|
|
(define-function get_type
|
|
|
|
(c-name "gecko_browser_get_type")
|
|
|
|
(return-type "GType")
|
|
|
|
)
|
2006-09-26 21:58:54 +02:00
|
|
|
|
2006-10-12 12:47:17 +02:00
|
|
|
(define-function startup_browser
|
2006-09-27 14:45:55 +02:00
|
|
|
(c-name "gecko_browser_startup")
|
2006-09-26 21:58:54 +02:00
|
|
|
(return-type "none")
|
|
|
|
)
|
|
|
|
|
2006-09-27 14:45:55 +02:00
|
|
|
(define-function new
|
|
|
|
(c-name "gecko_browser_new")
|
|
|
|
(is-constructor-of "GeckoBrowser")
|
|
|
|
(return-type "GeckoBrowser*")
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-method create_window
|
|
|
|
(of-object "GeckoBrowser")
|
|
|
|
(c-name "gecko_browser_create_window")
|
|
|
|
(return-type "GeckoBrowser*")
|
|
|
|
)
|
2006-09-26 21:58:54 +02:00
|
|
|
|
2006-09-27 14:45:55 +02:00
|
|
|
(define-virtual create_window
|
|
|
|
(of-object "GeckoBrowser")
|
|
|
|
(return-type "GeckoBrowser*")
|
|
|
|
)
|
2006-10-12 12:47:17 +02:00
|
|
|
(define-object KeyGrabber
|
|
|
|
(in-module "globalkeys")
|
|
|
|
(parent "GObject")
|
|
|
|
(c-name "SugarKeyGrabber")
|
|
|
|
(gtype-id "SUGAR_TYPE_KEY_GRABBER")
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-function sugar_key_grabber_get_type
|
|
|
|
(c-name "sugar_key_grabber_get_type")
|
|
|
|
(return-type "GType")
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-function sugar_key_grabber_new
|
|
|
|
(c-name "sugar_key_grabber_new")
|
|
|
|
(is-constructor-of "SugarKeyGrabber")
|
|
|
|
(return-type "GObject*")
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-method grab
|
|
|
|
(of-object "SugarKeyGrabber")
|
|
|
|
(c-name "sugar_key_grabber_grab")
|
|
|
|
(return-type "none")
|
|
|
|
(parameters
|
|
|
|
'("const-char*" "address")
|
|
|
|
)
|
|
|
|
)
|