[gtk/ebassi/gidocgen] fontbutton: Add property annotations



commit 07066e351d31bc8218c5056fd45b5904625d4997
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Feb 25 18:21:38 2021 -0500

    fontbutton: Add property annotations
    
    Connect properties, getters, and setters with annotations

 gtk/gtkfontbutton.c | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/gtk/gtkfontbutton.c b/gtk/gtkfontbutton.c
index 55d1861ad9..4dd63c107c 100644
--- a/gtk/gtkfontbutton.c
+++ b/gtk/gtkfontbutton.c
@@ -474,7 +474,7 @@ gtk_font_button_class_init (GtkFontButtonClass *klass)
   _gtk_font_chooser_install_properties (gobject_class);
 
   /**
-   * GtkFontButton:title:
+   * GtkFontButton:title: (attributes org.gtk.Property.get=gtk_font_button_get_title 
org.gtk.Property.set=gtk_font_button_set_title)
    *
    * The title of the font chooser dialog.
    */
@@ -487,7 +487,7 @@ gtk_font_button_class_init (GtkFontButtonClass *klass)
                                                         GTK_PARAM_READWRITE));
 
   /**
-   * GtkFontButton:use-font:
+   * GtkFontButton:use-font: (attributes org.gtk.Property.get=gtk_font_button_get_use_font 
org.gtk.Property.set=gtk_font_button_set_use_font)
    *
    * Whether the buttons label will be drawn in the selected font.
    */
@@ -500,7 +500,7 @@ gtk_font_button_class_init (GtkFontButtonClass *klass)
                                                          GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
 
   /**
-   * GtkFontButton:use-size:
+   * GtkFontButton:use-size: (attributes org.gtk.Property.get=gtk_font_button_get_use_size 
org.gtk.Property.set=gtk_font_button_set_use_size)
    *
    * Whether the buttons label will use the selected font size.
    */
@@ -513,7 +513,7 @@ gtk_font_button_class_init (GtkFontButtonClass *klass)
                                                          GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
 
   /**
-   * GtkFontButton:modal:
+   * GtkFontButton:modal: (attributes org.gtk.Property.get=gtk_font_button_get_modal 
org.gtk.Property.set=gtk_font_button_set_modal)
    *
    * Whether the font chooser dialog should be modal.
    */
@@ -738,7 +738,7 @@ gtk_font_button_new_with_font (const char *fontname)
 } 
 
 /**
- * gtk_font_button_set_title:
+ * gtk_font_button_set_title: (attributes org.gtk.Method.set_property=title)
  * @font_button: a `GtkFontButton`
  * @title: a string containing the font chooser dialog title
  *
@@ -762,7 +762,7 @@ gtk_font_button_set_title (GtkFontButton *font_button,
 }
 
 /**
- * gtk_font_button_get_title:
+ * gtk_font_button_get_title: (attributes org.gtk.Method.get_property=title)
  * @font_button: a `GtkFontButton`
  *
  * Retrieves the title of the font chooser dialog.
@@ -779,7 +779,7 @@ gtk_font_button_get_title (GtkFontButton *font_button)
 } 
 
 /**
- * gtk_font_button_set_modal:
+ * gtk_font_button_set_modal: (attributes org.gtk.Method.set_property=modal)
  * @font_button: a `GtkFontButton`
  * @modal: %TRUE to make the dialog modal
  *
@@ -803,7 +803,7 @@ gtk_font_button_set_modal (GtkFontButton *font_button,
 }
 
 /**
- * gtk_font_button_get_modal:
+ * gtk_font_button_get_modal: (attributes org.gtk.Method.get_property=modal)
  * @font_button: a `GtkFontButton`
  *
  * Gets whether the dialog is modal.
@@ -819,7 +819,7 @@ gtk_font_button_get_modal (GtkFontButton *font_button)
 }
 
 /**
- * gtk_font_button_get_use_font:
+ * gtk_font_button_get_use_font: (attributes org.gtk.Method.get_property=use-font)
  * @font_button: a `GtkFontButton`
  *
  * Returns whether the selected font is used in the label.
@@ -835,7 +835,7 @@ gtk_font_button_get_use_font (GtkFontButton *font_button)
 } 
 
 /**
- * gtk_font_button_set_use_font:
+ * gtk_font_button_set_use_font: (attributes org.gtk.Method.set_property=use-font)
  * @font_button: a `GtkFontButton`
  * @use_font: If %TRUE, font name will be written using font chosen.
  *
@@ -862,7 +862,7 @@ gtk_font_button_set_use_font (GtkFontButton *font_button,
 
 
 /**
- * gtk_font_button_get_use_size:
+ * gtk_font_button_get_use_size: (attributes org.gtk.Method.get_property=use-size)
  * @font_button: a `GtkFontButton`
  *
  * Returns whether the selected size is used in the label.
@@ -878,7 +878,7 @@ gtk_font_button_get_use_size (GtkFontButton *font_button)
 } 
 
 /**
- * gtk_font_button_set_use_size:
+ * gtk_font_button_set_use_size: (attributes org.gtk.Method.set_property=use-size)
  * @font_button: a `GtkFontButton`
  * @use_size: If %TRUE, font name will be written using the
  *   selected size.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]