passwordentry: Add property annotations

Connect properties, getters, and setters with annotations
This commit is contained in:
Matthias Clasen 2021-02-25 11:03:03 -05:00 committed by Emmanuele Bassi
parent d5a024c7f8
commit cf6f57b41c

View File

@ -458,7 +458,7 @@ gtk_password_entry_class_init (GtkPasswordEntryClass *klass)
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
/**
* GtkPasswordEntry:show-peek-icon:
* GtkPasswordEntry:show-peek-icon: (attributes org.gtk.Property.get=gtk_password_entry_get_show_peek_icon org.gtk.Property.set=gtk_password_entry_set_show_peek_icon)
*
* Whether to show an icon for revealing the content.
*/
@ -470,7 +470,7 @@ gtk_password_entry_class_init (GtkPasswordEntryClass *klass)
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
/**
* GtkPasswordEntry:extra-menu:
* GtkPasswordEntry:extra-menu: (attributes org.gtk.Property.get=gtk_password_entry_get_extra_menu org.gtk.Property.set=gtk_password_entry_set_extra_menu)
*
* A menu model whose contents will be appended to
* the context menu.
@ -575,7 +575,7 @@ gtk_password_entry_new (void)
}
/**
* gtk_password_entry_set_show_peek_icon:
* gtk_password_entry_set_show_peek_icon: (attributes org.gtk.Method.set_property=show-peek-icon)
* @entry: a `GtkPasswordEntry`
* @show_peek_icon: whether to show the peek icon
*
@ -628,7 +628,7 @@ gtk_password_entry_set_show_peek_icon (GtkPasswordEntry *entry,
}
/**
* gtk_password_entry_get_show_peek_icon:
* gtk_password_entry_get_show_peek_icon: (attributes org.gtk.Method.get_property=show-peek-icon)
* @entry: a `GtkPasswordEntry`
*
* Returns whether the entry is showing an icon to
@ -645,7 +645,7 @@ gtk_password_entry_get_show_peek_icon (GtkPasswordEntry *entry)
}
/**
* gtk_password_entry_set_extra_menu:
* gtk_password_entry_set_extra_menu: (attributes org.gtk.Method.set_property=extra-menu)
* @entry: a `GtkPasswordEntry`
* @model: (allow-none): a `GMenuModel`
*
@ -691,7 +691,7 @@ gtk_password_entry_set_extra_menu (GtkPasswordEntry *entry,
}
/**
* gtk_password_entry_get_extra_menu:
* gtk_password_entry_get_extra_menu: (attributes org.gtk.Method.get_property=extra-menu)
* @entry: a `GtkPasswordEntry`
*
* Gets the menu model set with gtk_password_entry_set_extra_menu().