[libhandy/wip/exalm/avatar] avatar: Use constant size request mode




commit 5df9c43112222aee16e4b46c90036296964691b2
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Mon Jan 17 19:08:23 2022 +0500

    avatar: Use constant size request mode
    
    That's what the measure code does, it shouldn't be height for width.

 src/hdy-avatar.c | 7 -------
 1 file changed, 7 deletions(-)
---
diff --git a/src/hdy-avatar.c b/src/hdy-avatar.c
index 3d58591b..3a022733 100644
--- a/src/hdy-avatar.c
+++ b/src/hdy-avatar.c
@@ -822,12 +822,6 @@ hdy_avatar_get_preferred_height_for_width (GtkWidget *widget,
                       minimum, natural, NULL, NULL);
 }
 
-static GtkSizeRequestMode
-hdy_avatar_get_request_mode (GtkWidget *widget)
-{
-  return GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH;
-}
-
 static void
 hdy_avatar_size_allocate (GtkWidget     *widget,
                           GtkAllocation *allocation)
@@ -860,7 +854,6 @@ hdy_avatar_class_init (HdyAvatarClass *klass)
   object_class->get_property = hdy_avatar_get_property;
 
   widget_class->draw = hdy_avatar_draw;
-  widget_class->get_request_mode = hdy_avatar_get_request_mode;
   widget_class->get_preferred_width = hdy_avatar_get_preferred_width;
   widget_class->get_preferred_height = hdy_avatar_get_preferred_height;
   widget_class->get_preferred_width_for_height = hdy_avatar_get_preferred_width_for_height;


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