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-26 12:55:16 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2007-06-26 12:55:16 (GMT)
commit3eaeebc60e9045a99aeac9616ccf25be6ec28370 (patch)
treea9013402157a2f62e3e60b4173521dff6c05ee09 /sugar/_sugarext.defs
parent5c3c7be96667b3a833633d131c47a9457f70409b (diff)
Lots of palette refactoring.
Diffstat (limited to 'sugar/_sugarext.defs')
-rw-r--r--sugar/_sugarext.defs25
1 files changed, 25 insertions, 0 deletions
diff --git a/sugar/_sugarext.defs b/sugar/_sugarext.defs
index 33f49f8..2e07b61 100644
--- a/sugar/_sugarext.defs
+++ b/sugar/_sugarext.defs
@@ -15,8 +15,33 @@
(gtype-id "SUGAR_TYPE_KEY_GRABBER")
)
+(define-object Menu
+ (in-module "Sugar")
+ (parent "GtkMenu")
+ (c-name "SugarMenu")
+ (gtype-id "SUGAR_TYPE_MENU")
+)
+
;; Enumerations and flags ...
+;; From sugar-menu.h
+
+(define-method popup
+ (of-object "SugarMenu")
+ (c-name "sugar_menu_popup")
+ (return-type "none")
+ (parameters
+ '("gint" "x")
+ '("gint" "y")
+ )
+)
+
+(define-method popdown
+ (of-object "SugarMenu")
+ (c-name "sugar_menu_popdown")
+ (return-type "none")
+)
+
;; From sugar-key-grabber.h
(define-function sugar_key_grabber_get_type