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 153971 - focus line width and padding issues in gnome-applets
focus line width and padding issues in gnome-applets
Status: RESOLVED FIXED
Product: gnome-utils
Classification: Deprecated
Component: gdict
trunk
Other All
: Normal normal
: ---
Assigned To: gnome-utils Maintainers
John Fleck
Depends on:
Blocks: 327338
 
 
Reported: 2004-09-28 15:46 UTC by Vincent Noel
Modified: 2006-10-02 10:13 UTC
See Also:
GNOME target: ---
GNOME version: 2.7/2.8


Attachments
patch for charpick applet (2.48 KB, patch)
2004-09-28 15:47 UTC, Vincent Noel
none Details | Review
patch for the dictionary applet (2.03 KB, patch)
2004-09-28 15:58 UTC, Vincent Noel
none Details | Review
shot showing before and after the patch (11.26 KB, image/png)
2004-09-28 16:12 UTC, Vincent Noel
  Details

Description Vincent Noel 2004-09-28 15:46:03 UTC
Please describe the problem:
When the panel size is <= 24 pixels, labels in some applets are cropped.
This is due to the applet reserving space for the focus line. This bug was first
reported against the panel clock applet in bug 147999, however some other applet
from gnome-applets are also affected (see screenshot attachment 30409 [details] in bug
147999).
I will attach patches for these applets (the dictionary and charpick applets) soon

Steps to reproduce:


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Vincent Noel 2004-09-28 15:47:26 UTC
Created attachment 32023 [details] [review]
patch for charpick applet

This patch makes the charpick applet draw the focus line over the buttons, so
the applet looks good even on small panels (no more crop).
Comment 2 Vincent Noel 2004-09-28 15:58:47 UTC
Created attachment 32024 [details] [review]
patch for the dictionary applet

This patch is for the dictionary applet. This applet is actually in
gnome-utils, so maybe I should have opened a new bug...
Comment 3 Vincent Noel 2004-09-28 16:12:42 UTC
Created attachment 32025 [details]
shot showing before and after the patch 

This shot shows how the applets look is improved by the patch. Ok to commit ?
:)
Comment 4 Danielle Madeley 2004-09-28 16:22:13 UTC
Is this really the fix? Random bits of rc code in the C file doesn't seem right
to me. I defer to anyone else on the matter however.
Comment 5 Danielle Madeley 2004-09-28 16:29:08 UTC
Quick discussion with markmc went something like this:
<markmc> Riff, hehe
<markmc> yeah
<markmc> blame alex
<Riff> markmc: is there a better way?
<markmc> he did it in libwnck first
<markmc> or maybe it was hp
<markmc> Riff, not really, we really don't want to care about focus padding on
the panel
<markmc> Riff, and there's no easier way to override it

I guess this means commit it while I look the other way. You'd better make sure
Owen and co. are looking the other way too. Add a FIXME or something... it
really is quite evil.
Comment 6 Vincent Noel 2004-09-28 16:31:00 UTC
I definitely agree that it's weird and looks hackish (and Mark states it
explicitely in the original bug)... but I don't see any other way of fixing this
in the actual state of things (maybe there's a way to change the focus padding
in gtk+ ?)
Anyway I'd welcome a more elegant solution anytime ;-)
Comment 7 Danielle Madeley 2004-09-28 16:34:13 UTC
Agreed, put it in. You'll obviously have to bug the gnome-utils guys for the
dictionary applet, but that shouldn't be an issue.

I think:
/* FIXME
 * Find a more elegant solution
 */

should just about cut it as a comment.
Comment 8 Vincent Noel 2004-09-28 16:53:28 UTC
Ok, I committed the charpick part.
Can I just re-assign the bug to gnome-utils now that the bug is fixed in
gnome-applets ?
Comment 9 Danielle Madeley 2004-09-28 16:57:26 UTC
I have CCed myself for interests sake. Assign away.
Comment 10 Vincent Noel 2004-10-13 17:01:47 UTC
Ping : can I apply this patch ?
Comment 11 Vincent Noel 2004-10-19 16:39:28 UTC
Committed. Closing the bug.