GNOME Bugzilla – Bug 707927
avatar-chooser: allow setting the pixel-size of the button's image
Last modified: 2013-09-12 16:03:00 UTC
I have been playing with the Chat designs [1] and want to use TpawAvatarChooser to show the user's own avatar at the left bottom corner. However the avatar chooser shows the image at a hard coded size of 64, whereas we need something slightly smaller for this. Being able to set the size of the image would help. [1] https://wiki.gnome.org/Design/Apps/Chat
Created attachment 254720 [details] [review] avatar-chooser: allow setting the pixel-size of button's image
I would prefer if you used a property and I'm not sure that “pixel size“ is a great name. Maybe “image size”?
Created attachment 254764 [details] [review] avatar-chooser: allow setting the pixel-size of button's image
(In reply to comment #2) > I would prefer if you used a property Good idea. I turned it into a CONSTRUCT_ONLY property. > and I'm not sure that “pixel size“ is a > great name. Maybe “image size”? I was trying to use the same nomenclature as GtkImage. So, pixel-size is the size in pixels and then in future we can have icon-size which would be a GtkIconSize.
Review of attachment 254764 [details] [review]: It looks good to me.
Comment on attachment 254764 [details] [review] avatar-chooser: allow setting the pixel-size of button's image Thanks for the review, Marco!