diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2013-05-22 22:51:19 -0400 |
---|---|---|
committer | Lars Uebernickel <lars.uebernickel@canonical.com> | 2013-05-22 22:51:19 -0400 |
commit | 3f3aa147ac8ee224f40d9c4e9800b4c5825fde59 (patch) | |
tree | 44d25da574f577ce6aa2f2e4d2b8641ad174d30d /src/libido.h | |
parent | 27f3661cfb2266ee87a552738e5c03774dc9ae68 (diff) | |
download | ayatana-ido-3f3aa147ac8ee224f40d9c4e9800b4c5825fde59.tar.gz ayatana-ido-3f3aa147ac8ee224f40d9c4e9800b4c5825fde59.tar.bz2 ayatana-ido-3f3aa147ac8ee224f40d9c4e9800b4c5825fde59.zip |
Add IdoMenuItemFactory
It's implementing the GtkMenuItemFactory extension point (only available in
Ubuntu's version of gtk+). It doesn't create any menu items yet.
The extension point must be registered before calling gtk_menu_new_from_model()
with a menu model that references any of the custom menu items ido will
provide. Registering means the type must exist in the type system. This patch
adds an ido_init() which does that. Consumers of libido are required to call
this function from now on.
Diffstat (limited to 'src/libido.h')
-rw-r--r-- | src/libido.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libido.h b/src/libido.h index 4c4f68b..43a8168 100644 --- a/src/libido.h +++ b/src/libido.h @@ -31,4 +31,6 @@ #include <libido/idoentrymenuitem.h> #include <libido/idomessagedialog.h> +void ido_init (void); + #endif /* __IDO__ */ |