After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 309629 - picture is small, off-center
picture is small, off-center
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: [obsolete] about-me
2.11.x
Other Linux
: Normal trivial
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
: 531330 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-07-06 19:43 UTC by Luis Villa
Modified: 2008-05-08 19:02 UTC
See Also:
GNOME target: ---
GNOME version: 2.11/2.12


Attachments
Proposed patch (4.49 KB, patch)
2008-05-07 20:01 UTC, Ben LeMasurier
committed Details | Review
Screenshot of previous patch (36.44 KB, image/png)
2008-05-07 20:02 UTC, Ben LeMasurier
  Details

Description Luis Villa 2005-07-06 19:43:16 UTC
Why is my picture small and off-center in this huge button? It should fill the
whole thing. Minor, but ugly.
Comment 1 Diego González 2005-07-13 20:17:48 UTC
I just commited a change that makes the image to be center horizontally, to
center it vertically and have the visual indication when using DnD is more
difficult due to the GtkFrame that the widget is using.
Comment 2 Jaap A. Haitsma 2005-07-30 21:35:02 UTC
Diego, it's still far smaller then the button. I think the right way to do this
would be to specifiy the image size for e-image-chooser 
Comment 3 Daniel Holbach 2006-02-20 17:01:57 UTC
The issue was discussed at https://launchpad.net/distros/ubuntu/+source/control-center/+bug/31884 as well. There with control-center 2.13.91.
Comment 4 Darren Hinderer 2006-09-11 19:23:59 UTC
I'm using gnome-control-center 1:2.16.0-0ubuntu1 and have a similar problem, but it doesn't sound like it is the same as ubuntu bug 31884. 

Instead of trying to explain the problem, you should look at the screenshots.
https://launchpad.net/distros/ubuntu/+source/control-center/+bug/59236

Screenshots:
http://librarian.launchpad.net/4158030/Screenshot-About%20Darren%20Hinderer.png
http://librarian.launchpad.net/4158082/shouldlooklikethis.png
Comment 5 Jens Granseuer 2008-05-04 10:37:15 UTC
*** Bug 531330 has been marked as a duplicate of this bug. ***
Comment 6 Ben LeMasurier 2008-05-07 15:42:31 UTC
I'd like to take a stab at this if anyone can point me in the right direction.
Comment 7 Jens Granseuer 2008-05-07 17:58:08 UTC
I'd start looking in e-image-chooser.c. That file was apparently copied from evolution (or e-d-s?) once upon a time, so comparing the about-me version with the original might already give you a few hints.
Comment 8 Ben LeMasurier 2008-05-07 20:01:35 UTC
Created attachment 110541 [details] [review]
Proposed patch
Comment 9 Ben LeMasurier 2008-05-07 20:02:41 UTC
Created attachment 110542 [details]
Screenshot of previous patch
Comment 10 Jens Granseuer 2008-05-08 19:02:42 UTC
Looks good apart from a few stylistic issues. Thanks!

2008-05-08  Jens Granseuer  <jensgr@gmx.net>

        Patch by: Ben LeMasurier <ben.lemasurier@gmail.com>

        * e-image-chooser.c: (e_image_chooser_init), (set_image_from_data),
        (image_drag_motion_cb), (image_drag_drop_cb): fix scaling the image
        on the user photo button (bug #309629)