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 148154 - Upgrade to GTK+ 2.4.4 cut buttons on Industrial-Engine
Upgrade to GTK+ 2.4.4 cut buttons on Industrial-Engine
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: .General
2.4.x
Other Linux
: Normal trivial
: Small fix
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2004-07-22 09:08 UTC by Paulo Oliveira Filho
Modified: 2009-06-04 21:19 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Paulo Oliveira Filho 2004-07-22 09:08:50 UTC
Friends,

I've updated my GTK+ (and GLIB) version from 2.4.1 to 2.4.4.

My favourite GTK+ engine is industrial (from Ximian), but some problems appear
after the upgrade of the libraries.

Some buttons in some specific programs appear "cutted"... (i.e.: the button
height apparently is less that normal).

I've tested various applications (Gimp 2.0.1, Firefox 0.9.1, Evolution 1.4.6,
etc) but i've noticed the problem only in two kinds of applications:

-> Java software that uses GTK+ (i.e.: Eclipse)
-> Applications written in wxWidgets framework (i.e.: wxDesigner, wxVLC and any
written by me)

I've noticed the problem with Eclipse v2.1.3 / v3.0.0 and wxDesigner 2.10a.

With Java/GTK+ programs, ALL the buttons (without exception) in the applications
(Eclipse v2 ou v3) represent the problem.

With wxWidgets programs, only SOME buttons in dialogs exhibit this issue.

I cant to find a solution: i tried to update to a more recent version of
Industrial-Engine (0.2.36-2) and re-compile wxWidgets, but didn't work. The
issue remains.

I've uplodaded some pics demonstring the problem to my server. See it!

- http://www.tisc.com.br/screenshots/shot1.png
- http://www.tisc.com.br/screenshots/shot2.png
- http://www.tisc.com.br/screenshots/shot3.png
- http://www.tisc.com.br/screenshots/shot4.png
- http://www.tisc.com.br/screenshots/shot5.png
- http://www.tisc.com.br/screenshots/shot6.png

Sincerely,

Paulo Oliveira Filho
mailto:paulo.oliveira@tisc.com.br
Comment 1 Matthias Clasen 2004-07-23 14:49:32 UTC
I have made a quick test with the industrial theme, and "normal" gtk apps seem
to have no problems, so there must be something special done by eclipse and
wxWidgets. Does this only show up with industrial, or also with the default theme ?
Comment 2 Paulo Oliveira Filho 2004-07-23 17:01:25 UTC
Hi Matthias,

I've bluecurve, cleanice, 
Comment 3 Paulo Oliveira Filho 2004-07-23 17:02:21 UTC
Hi Matthias,

I've bluecurve, cleanice, lighthouseblue, metal, misc, pixmap, redmond and
anothers... This happen only with industrial! =/

Thanks...

Paulo
Comment 4 Matthias Clasen 2004-07-23 17:12:19 UTC
I have no idea how a theme can influence the button size in this way. Does this
happen with "normal" gtk apps as well ?
Comment 5 Paulo Oliveira Filho 2004-07-27 02:03:08 UTC
Matthias,

Hi... Sorry by delay... I was out last weekend...
 
Answering your question: No!!! With pure GTK apps this issue doesn't happen!
 
Look at new screenshots that i take now:
 
- http://www.tisc.com.br/screenshots/shot7.png
- http://www.tisc.com.br/screenshots/shot8.png
- http://www.tisc.com.br/screenshots/shot9.png
- http://www.tisc.com.br/screenshots/shot10.png
 
1. The 1st pic demonstrates that GTK apps are ok! My Firefox 0.9.1 (compiled
against gtk2+xft) show buttons with industrial-engine correctly!
2. The 2nd and 3rd pics shows two windows side-by-side in wxWidgets-apps
affected by issue with industrial-theme versus Mist and Glossy P (pixmap engine)
themes.
 
A theme might not influence the button size, but a ENGINE may influence, maybe not?
 
I see too that "dialog boxes" which contains buttons with icons (even in
wxWidgets applications) doesnt show the issue with the buttons (see the shot10).
Comment 6 Akos Ladanyi 2004-12-02 16:34:30 UTC
Maybe this is related to this bug:

http://bugs.ximian.com/show_bug.cgi?id=58350
Comment 7 Billy Biggs 2004-12-02 16:47:57 UTC
This bug is caused by a change added in GTK+ 2.4.2 to stop the children of
buttons from overwriting the focus rectangle in the button.  It affects Eclipse
because we were setting button height based on font size plus padding values
which were not large enough to account for the space required by the focus
rectangle plus the large border around the outside of the button.

Our button height code was based on the Windows human interface guidelines and
could have been broken in other ways by themes which add large amounts of
padding (smooth engine based themes in particular).  It may be that wxWidgets
applications are doing something similar.  We have fixed this issue in the 3.1
branch of Eclipse by simply not setting the height on our buttons.  See
http://vektor.ca/eclipse/gtk-button-size.html for references to the Eclipse bugs
on this issue.

A possible change in GTK+ that would help work around this for users of Eclipse
3.0 and earlier (at least for some themes) would be to let button contents draw
on top of the focus rectangle padding if the button is sized smaller than its
minimum size.
Comment 8 Giacomo Perale 2004-12-25 11:30:47 UTC
I noticed this problem too. There are many glitches with wxwidgets 2.5.3, for
examples radio buttons don't work at all, but there are problems with gtk apps
too. Here are some screenshots:

radio buttons:
http://ghepeu.altervista.org/immagini/industrial/radio-button-industrial.jpg
http://ghepeu.altervista.org/immagini/industrial/radio-button-cleanice.jpg

add button (in file chooser):
http://ghepeu.altervista.org/immagini/industrial/add-button-industrial.jpg
http://ghepeu.altervista.org/immagini/industrial/add-button-cleanice.jpg


this happens in both gnome 2.x and xfce4.x, at the moment I've got gtk+ 2.4.13
and glib 2.4.8, but I noticed these glitches several months ago.
Comment 9 Matthias Clasen 2004-12-26 06:33:22 UTC
Vektor, you promised a patch for the overdraw-if-too-small approach...
Comment 10 Giacomo Perale 2005-03-01 10:29:44 UTC
radiobox buttons problem seems to be fixed in current wxWidgets CVS.
Comment 11 André Klapper 2008-11-15 17:44:23 UTC
Is this still an issue in gtk 2.12?
Comment 12 Tobias Mueller 2009-06-04 21:19:35 UTC
I assume it's not. If it is, please reopen.