2007-07-27 20:15:31 +02:00
|
|
|
;; -*- scheme -*-
|
|
|
|
; object definitions
|
|
|
|
|
|
|
|
(define-object AddressEntry
|
|
|
|
(in-module "Sugar")
|
|
|
|
(parent "GtkEntry")
|
|
|
|
(c-name "SugarAddressEntry")
|
|
|
|
(gtype-id "SUGAR_TYPE_ADDRESS_ENTRY")
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-object KeyGrabber
|
|
|
|
(in-module "Sugar")
|
|
|
|
(parent "GObject")
|
|
|
|
(c-name "SugarKeyGrabber")
|
|
|
|
(gtype-id "SUGAR_TYPE_KEY_GRABBER")
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-object Menu
|
|
|
|
(in-module "Sugar")
|
|
|
|
(parent "GtkMenu")
|
|
|
|
(c-name "SugarMenu")
|
|
|
|
(gtype-id "SUGAR_TYPE_MENU")
|
|
|
|
)
|
|
|
|
|
2007-11-04 16:20:54 +01:00
|
|
|
(define-object Preview
|
|
|
|
(in-module "Sugar")
|
|
|
|
(parent "GObject")
|
|
|
|
(c-name "SugarPreview")
|
|
|
|
(gtype-id "SUGAR_TYPE_PREVIEW")
|
|
|
|
)
|
|
|
|
|
2007-08-20 13:03:17 +02:00
|
|
|
(define-object IconEntry
|
|
|
|
(in-module "Sexy")
|
|
|
|
(parent "GtkEntry")
|
|
|
|
(c-name "SexyIconEntry")
|
|
|
|
(gtype-id "SEXY_TYPE_ICON_ENTRY")
|
|
|
|
)
|
|
|
|
|
2007-07-27 20:15:31 +02:00
|
|
|
;; Enumerations and flags ...
|
|
|
|
|
2007-08-20 13:03:17 +02:00
|
|
|
(define-enum IconEntryPosition
|
|
|
|
(in-module "Sexy")
|
|
|
|
(c-name "SexyIconEntryPosition")
|
|
|
|
(gtype-id "SEXY_TYPE_ICON_ENTRY_POSITION")
|
|
|
|
(values
|
|
|
|
'("primary" "SEXY_ICON_ENTRY_PRIMARY")
|
|
|
|
'("secondary" "SEXY_ICON_ENTRY_SECONDARY")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
2007-07-27 20:15:31 +02:00
|
|
|
;; From sugar-menu.h
|
|
|
|
|
2007-08-08 03:07:00 +02:00
|
|
|
(define-method set_active
|
2007-07-27 20:15:31 +02:00
|
|
|
(of-object "SugarMenu")
|
2007-08-08 03:07:00 +02:00
|
|
|
(c-name "sugar_menu_set_active")
|
2007-07-27 20:15:31 +02:00
|
|
|
(return-type "none")
|
|
|
|
(parameters
|
2007-08-08 03:07:00 +02:00
|
|
|
'("gboolean" "active")
|
2007-07-27 20:15:31 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
|
2007-08-08 03:07:00 +02:00
|
|
|
(define-method embed
|
2007-07-27 20:15:31 +02:00
|
|
|
(of-object "SugarMenu")
|
2007-08-08 03:07:00 +02:00
|
|
|
(c-name "sugar_menu_embed")
|
2007-07-27 20:15:31 +02:00
|
|
|
(return-type "none")
|
2007-08-08 03:07:00 +02:00
|
|
|
(parameters
|
|
|
|
'("GtkContainer" "container")
|
|
|
|
)
|
2007-07-27 20:15:31 +02:00
|
|
|
)
|
|
|
|
|
2007-08-11 12:16:49 +02:00
|
|
|
(define-method unembed
|
|
|
|
(of-object "SugarMenu")
|
|
|
|
(c-name "sugar_menu_unembed")
|
|
|
|
(return-type "none")
|
|
|
|
)
|
|
|
|
|
2007-07-27 20:15:31 +02:00
|
|
|
;; From sugar-key-grabber.h
|
|
|
|
|
|
|
|
(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
|
|
|
|
'("const-char*" "key")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-method get_key
|
|
|
|
(of-object "SugarKeyGrabber")
|
|
|
|
(c-name "sugar_key_grabber_get_key")
|
|
|
|
(return-type "char*")
|
|
|
|
(parameters
|
|
|
|
'("guint" "keycode")
|
|
|
|
'("guint" "state")
|
|
|
|
)
|
|
|
|
)
|
2007-08-20 13:03:17 +02:00
|
|
|
|
|
|
|
;; From sexy-icon-entry.h
|
|
|
|
|
|
|
|
(define-function sexy_icon_entry_get_type
|
|
|
|
(c-name "sexy_icon_entry_get_type")
|
|
|
|
(return-type "GType")
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-function sexy_icon_entry_new
|
|
|
|
(c-name "sexy_icon_entry_new")
|
|
|
|
(is-constructor-of "SexyIconEntry")
|
|
|
|
(return-type "GtkWidget*")
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-method set_icon
|
|
|
|
(of-object "SexyIconEntry")
|
|
|
|
(c-name "sexy_icon_entry_set_icon")
|
|
|
|
(return-type "none")
|
|
|
|
(parameters
|
|
|
|
'("SexyIconEntryPosition" "position")
|
2007-11-22 17:04:58 +01:00
|
|
|
'("GtkImage*" "icon" (null-ok))
|
2007-08-20 13:03:17 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-method set_icon_highlight
|
|
|
|
(of-object "SexyIconEntry")
|
|
|
|
(c-name "sexy_icon_entry_set_icon_highlight")
|
|
|
|
(return-type "none")
|
|
|
|
(parameters
|
|
|
|
'("SexyIconEntryPosition" "position")
|
|
|
|
'("gboolean" "highlight")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-method get_icon
|
|
|
|
(of-object "SexyIconEntry")
|
|
|
|
(c-name "sexy_icon_entry_get_icon")
|
|
|
|
(return-type "GtkImage*")
|
|
|
|
(parameters
|
|
|
|
'("SexyIconEntryPosition" "position")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-method get_icon_highlight
|
|
|
|
(of-object "SexyIconEntry")
|
|
|
|
(c-name "sexy_icon_entry_get_icon_highlight")
|
|
|
|
(return-type "gboolean")
|
|
|
|
(parameters
|
|
|
|
'("SexyIconEntryPosition" "position")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-method add_clear_button
|
|
|
|
(of-object "SexyIconEntry")
|
|
|
|
(c-name "sexy_icon_entry_add_clear_button")
|
|
|
|
(return-type "none")
|
|
|
|
)
|
|
|
|
|
2007-11-04 16:20:54 +01:00
|
|
|
;; From sugar-preview.h
|
|
|
|
|
|
|
|
(define-function sugar_preview_get_type
|
|
|
|
(c-name "sugar_preview_get_type")
|
|
|
|
(return-type "GType")
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-method take_screenshot
|
|
|
|
(of-object "SugarPreview")
|
|
|
|
(c-name "sugar_preview_take_screenshot")
|
|
|
|
(return-type "none")
|
|
|
|
(parameters
|
|
|
|
'("GdkDrawable" "drawable")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
2007-11-04 16:40:28 +01:00
|
|
|
(define-method set_size
|
2007-11-04 16:20:54 +01:00
|
|
|
(of-object "SugarPreview")
|
2007-11-04 16:40:28 +01:00
|
|
|
(c-name "sugar_preview_set_size")
|
|
|
|
(return-type "none")
|
2007-11-04 16:20:54 +01:00
|
|
|
(parameters
|
2007-11-04 16:40:28 +01:00
|
|
|
'("int" "width")
|
|
|
|
'("int" "height")
|
2007-11-04 16:20:54 +01:00
|
|
|
)
|
|
|
|
)
|
2007-11-04 16:40:28 +01:00
|
|
|
|
|
|
|
(define-method clear
|
|
|
|
(of-object "SugarPreview")
|
|
|
|
(c-name "sugar_preview_clear")
|
|
|
|
(return-type "none")
|
|
|
|
)
|
|
|
|
|
|
|
|
(define-method get_pixbuf
|
|
|
|
(of-object "SugarPreview")
|
|
|
|
(c-name "sugar_preview_get_pixbuf")
|
|
|
|
(return-type "GdkPixbuf*")
|
|
|
|
)
|