infobar: Add property annotations

Connect properties, getters, and setters with annotations.
This commit is contained in:
Matthias Clasen 2021-02-24 21:57:15 -05:00 committed by Emmanuele Bassi
parent 0c56522de1
commit 723d979be2

View File

@ -346,7 +346,7 @@ gtk_info_bar_class_init (GtkInfoBarClass *klass)
klass->close = gtk_info_bar_close;
/**
* GtkInfoBar:message-type:
* GtkInfoBar:message-type: (attributes org.gtk.Property.get=gtk_info_bar_get_message_type org.gtk.Property.set=gtk_info_bar_set_message_type)
*
* The type of the message.
*
@ -361,7 +361,7 @@ gtk_info_bar_class_init (GtkInfoBarClass *klass)
GTK_PARAM_READWRITE|G_PARAM_CONSTRUCT|G_PARAM_EXPLICIT_NOTIFY);
/**
* GtkInfoBar:show-close-button:
* GtkInfoBar:show-close-button: (attributes org.gtk.Property.get=gtk_info_bar_get_show_close_button org.gtk.Property.set=gtk_info_bar_set_show_close_button)
*
* Whether to include a standard close button.
*/
@ -373,7 +373,7 @@ gtk_info_bar_class_init (GtkInfoBarClass *klass)
GTK_PARAM_READWRITE|G_PARAM_CONSTRUCT|G_PARAM_EXPLICIT_NOTIFY);
/**
* GtkInfoBar:revealed:
* GtkInfoBar:revealed: (attributes org.gtk.Property.get=gtk_info_bar_get_revealed org.gtk.Property.set=gtk_info_bar_set_revealed)
*
* Whether the info bar shows its contents.
*/
@ -1070,7 +1070,7 @@ gtk_info_bar_buildable_add_child (GtkBuildable *buildable,
}
/**
* gtk_info_bar_set_message_type:
* gtk_info_bar_set_message_type: (attributes org.gtk.Method.set_property=message-type)
* @info_bar: a `GtkInfoBar`
* @message_type: a #GtkMessageType
*
@ -1109,7 +1109,7 @@ gtk_info_bar_set_message_type (GtkInfoBar *info_bar,
}
/**
* gtk_info_bar_get_message_type:
* gtk_info_bar_get_message_type: (attributes org.gtk.Method.get_property=message-type)
* @info_bar: a `GtkInfoBar`
*
* Returns the message type of the message area.
@ -1126,7 +1126,7 @@ gtk_info_bar_get_message_type (GtkInfoBar *info_bar)
/**
* gtk_info_bar_set_show_close_button:
* gtk_info_bar_set_show_close_button: (attributes org.gtk.Method.set_property=show-close-button)
* @info_bar: a `GtkInfoBar`
* @setting: %TRUE to include a close button
*
@ -1148,7 +1148,7 @@ gtk_info_bar_set_show_close_button (GtkInfoBar *info_bar,
}
/**
* gtk_info_bar_get_show_close_button:
* gtk_info_bar_get_show_close_button: (attributes org.gtk.Method.get_property=show-close-button)
* @info_bar: a `GtkInfoBar`
*
* Returns whether the widget will display a standard close button.
@ -1164,7 +1164,7 @@ gtk_info_bar_get_show_close_button (GtkInfoBar *info_bar)
}
/**
* gtk_info_bar_set_revealed:
* gtk_info_bar_set_revealed: (attributes org.gtk.Method.set_property=revealed)
* @info_bar: a `GtkInfoBar`
* @revealed: The new value of the property
*
@ -1191,7 +1191,7 @@ gtk_info_bar_set_revealed (GtkInfoBar *info_bar,
}
/**
* gtk_info_bar_get_revealed:
* gtk_info_bar_get_revealed: (attributes org.gtk.Method.get_property=revealed)
* @info_bar: a `GtkInfoBar`
*
* Returns whether the info bar is currently revealed.