trayicon.defs 1.07 KB
Newer Older
1
;; -*- scheme -*-
2

3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
; object definitions ...
(define-object TrayIcon
  (in-module "Egg")
  (parent "GtkPlug")
  (c-name "EggTrayIcon")
  (gtype-id "EGG_TYPE_TRAY_ICON")
)

;; Enumerations and flags ...


;; From eggtrayicon.h

(define-function egg_tray_icon_get_type
  (c-name "egg_tray_icon_get_type")
  (return-type "GType")
)

21 22 23 24 25 26 27 28
(define-function egg_tray_icon_new_for_screen
  (c-name "egg_tray_icon_new_for_screen")
  (return-type "EggTrayIcon*")
  (parameters
    '("GdkScreen*" "screen")
    '("const-gchar*" "name")
  )
)
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59

(define-function egg_tray_icon_new
  (c-name "egg_tray_icon_new")
  (is-constructor-of "EggTrayIcon")
  (return-type "EggTrayIcon*")
  (parameters
    '("const-gchar*" "name")
  )
)

(define-method send_message
  (of-object "EggTrayIcon")
  (c-name "egg_tray_icon_send_message")
  (return-type "guint")
  (parameters
    '("gint" "timeout")
    '("const-char*" "message")
    '("gint" "len")
  )
)

(define-method cancel_message
  (of-object "EggTrayIcon")
  (c-name "egg_tray_icon_cancel_message")
  (return-type "none")
  (parameters
    '("guint" "id")
  )
)