diff options
author | Robert Ancell <robert.ancell@canonical.com> | 2012-12-14 09:58:39 +1300 |
---|---|---|
committer | Robert Ancell <robert.ancell@canonical.com> | 2012-12-14 09:58:39 +1300 |
commit | 6c9a6684a2bd7fb990831175bac8681669e27080 (patch) | |
tree | b6f3e4ed08a7eb78d2b1ed1b76ae286424fed330 /src/idoentrymenuitem.c | |
parent | 21040fcad5f3a0a808d6a0ac2a9beb4d9e595673 (diff) | |
download | ayatana-ido-6c9a6684a2bd7fb990831175bac8681669e27080.tar.gz ayatana-ido-6c9a6684a2bd7fb990831175bac8681669e27080.tar.bz2 ayatana-ido-6c9a6684a2bd7fb990831175bac8681669e27080.zip |
Add introspection and Vala support to IDO
Diffstat (limited to 'src/idoentrymenuitem.c')
-rw-r--r-- | src/idoentrymenuitem.c | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/src/idoentrymenuitem.c b/src/idoentrymenuitem.c index 5390d0b..5b5a3fb 100644 --- a/src/idoentrymenuitem.c +++ b/src/idoentrymenuitem.c @@ -260,17 +260,31 @@ entry_move_focus_cb (GtkWidget *widget, GTK_DIR_TAB_FORWARD); } -/* Public API */ +/** + * ido_entry_menu_item_new: + * + * Creates a new #IdoEntryMenuItem. + * + * Return Value: the newly created #IdoEntryMenuItem. + */ GtkWidget * ido_entry_menu_item_new (void) { return g_object_new (IDO_TYPE_ENTRY_MENU_ITEM, NULL); } +/** + * ido_entry_menu_item_get_entry: + * @menuitem: The #IdoEntryMenuItem. + * + * Get the #GtkEntry used in this menu item. + * + * Return Value: (transfer none): The #GtkEntry inside this menu item. + */ GtkWidget * -ido_entry_menu_item_get_entry (IdoEntryMenuItem *item) +ido_entry_menu_item_get_entry (IdoEntryMenuItem *menuitem) { - g_return_val_if_fail (IDO_IS_ENTRY_MENU_ITEM (item), NULL); + g_return_val_if_fail (IDO_IS_ENTRY_MENU_ITEM (menuitem), NULL); - return item->priv->entry; + return menuitem->priv->entry; } |