Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/_sugarext.defs
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2007-06-20 13:22:12 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2007-06-20 13:22:12 (GMT)
commitc91bbd18ccf00b87d0e99029235f120b1b7839d6 (patch)
tree2eca21668e716d903999fade320e04258fe0edcf /sugar/_sugarext.defs
parent61314c97057b34292cf30b771d98274b8f29bd85 (diff)
Move SugarKeyGrabber in the lib. Keep it private.
We can't install libraries in datadir.
Diffstat (limited to 'sugar/_sugarext.defs')
-rw-r--r--sugar/_sugarext.defs34
1 files changed, 34 insertions, 0 deletions
diff --git a/sugar/_sugarext.defs b/sugar/_sugarext.defs
index 699f96c..33f49f8 100644
--- a/sugar/_sugarext.defs
+++ b/sugar/_sugarext.defs
@@ -8,6 +8,40 @@
(gtype-id "SUGAR_TYPE_ADDRESS_ENTRY")
)
+(define-object KeyGrabber
+ (in-module "Sugar")
+ (parent "GObject")
+ (c-name "SugarKeyGrabber")
+ (gtype-id "SUGAR_TYPE_KEY_GRABBER")
+)
+
+;; Enumerations and flags ...
+
+;; 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")
+ )
+)
; functions
(define-function get_mime_type_from_file_name