colorbutton: Add property annotations

Connect properties, getters, and setters with annotations
This commit is contained in:
Matthias Clasen
2021-02-25 18:22:09 -05:00
committed by Emmanuele Bassi
parent 947ebee7d4
commit e353cf38ec

View File

@@ -160,7 +160,7 @@ gtk_color_button_class_init (GtkColorButtonClass *klass)
g_object_class_override_property (gobject_class, PROP_USE_ALPHA, "use-alpha");
/**
* GtkColorButton:title:
* GtkColorButton:title: (attributes org.gtk.Property.get=gtk_color_button_get_title org.gtk.Property.set=gtk_color_button_set_title)
*
* The title of the color chooser dialog
*/
@@ -211,7 +211,7 @@ gtk_color_button_class_init (GtkColorButtonClass *klass)
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
/**
* GtkColorButton:modal:
* GtkColorButton:modal: (attributes org.gtk.Property.get=gtk_color_button_get_modal org.gtk.Property.set=gtk_color_button_set_modal)
*
* Whether the color chooser dialog should be modal.
*/
@@ -528,7 +528,7 @@ set_use_alpha (GtkColorButton *button,
}
/**
* gtk_color_button_set_title:
* gtk_color_button_set_title: (attributes org.gtk.Method.set_property=title)
* @button: a `GtkColorButton`
* @title: String containing new window title
*
@@ -553,7 +553,7 @@ gtk_color_button_set_title (GtkColorButton *button,
}
/**
* gtk_color_button_get_title:
* gtk_color_button_get_title: (attributes org.gtk.Method.get_property=title)
* @button: a `GtkColorButton`
*
* Gets the title of the color chooser dialog.
@@ -569,7 +569,7 @@ gtk_color_button_get_title (GtkColorButton *button)
}
/**
* gtk_color_button_set_modal:
* gtk_color_button_set_modal: (attributes org.gtk.Method.set_property=modal)
* @button: a `GtkColorButton`
* @modal: %TRUE to make the dialog modal
*
@@ -593,7 +593,7 @@ gtk_color_button_set_modal (GtkColorButton *button,
}
/**
* gtk_color_button_get_modal:
* gtk_color_button_get_modal: (attributes org.gtk.Method.get_property=modal)
* @button: a `GtkColorButton`
*
* Gets whether the dialog is modal.