[libadwaita/wip/exalm/avatar-paintable: 9/12] avatar: Move the size property to the bottom




commit 74eadcd54273741d52e3bf4fe6910afd93c64c9a
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Mon Apr 26 14:35:45 2021 +0500

    avatar: Move the size property to the bottom
    
    Match the order elsewhere.

 src/adw-avatar.c | 28 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)
---
diff --git a/src/adw-avatar.c b/src/adw-avatar.c
index d1b7adee..2352048a 100644
--- a/src/adw-avatar.c
+++ b/src/adw-avatar.c
@@ -350,20 +350,6 @@ adw_avatar_class_init (AdwAvatarClass *klass)
   object_class->set_property = adw_avatar_set_property;
   object_class->get_property = adw_avatar_get_property;
 
-  /**
-   * AdwAvatar:size: (attributes org.gtk.Property.get=adw_avatar_get_size 
org.gtk.Property.set=adw_avatar_set_size)
-   *
-   * The size of the avatar.
-   *
-   * Since: 1.0
-   */
-  props[PROP_SIZE] =
-    g_param_spec_int ("size",
-                      "Size",
-                      "The size of the avatar",
-                      -1, INT_MAX, -1,
-                      G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
-
   /**
    * AdwAvatar:icon-name: (attributes org.gtk.Property.get=adw_avatar_get_icon_name 
org.gtk.Property.set=adw_avatar_set_icon_name)
    *
@@ -413,6 +399,20 @@ adw_avatar_class_init (AdwAvatarClass *klass)
                           FALSE,
                           G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
 
+  /**
+   * AdwAvatar:size: (attributes org.gtk.Property.get=adw_avatar_get_size 
org.gtk.Property.set=adw_avatar_set_size)
+   *
+   * The size of the avatar.
+   *
+   * Since: 1.0
+   */
+  props[PROP_SIZE] =
+    g_param_spec_int ("size",
+                      "Size",
+                      "The size of the avatar",
+                      -1, INT_MAX, -1,
+                      G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
+
   g_object_class_install_properties (object_class, PROP_LAST_PROP, props);
 
   gtk_widget_class_set_layout_manager_type (widget_class, GTK_TYPE_BIN_LAYOUT);


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