This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 123185 - Debug toolbar sized incorrectly on Solaris 11, JDK 6u3, Nimbus theme
Summary: Debug toolbar sized incorrectly on Solaris 11, JDK 6u3, Nimbus theme
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 6.x
Hardware: All Solaris
: P3 blocker (vote)
Assignee: mslama
URL:
Keywords: GTK
Depends on:
Blocks:
 
Reported: 2007-11-30 19:48 UTC by Alexander Pepin
Modified: 2008-12-22 11:42 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Pepin 2007-11-30 19:48:09 UTC
While testing NB6.0 in Solaris Express Developers Edition (build snv_77) with java 1.6.0_03 several GTK+ compatibility
issues were encountered.
The first one is error messages in console while running IDE:
(<unknown>:19201): Gtk-WARNING **: Attempting to add a widget with type
GtkButton to a GtkComboBoxEntry (need an instance of GtkEntry or of a
subclass)

(<unknown>:19201): Gtk-CRITICAL **: file gtkwidget.c: line 3236:
assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed

(<unknown>:19201): Gtk-CRITICAL **: file gtkstyle.c: line 5879:
assertion `style->depth == gdk_drawable_get_depth (window)' failed

(<unknown>:19201): Gtk-CRITICAL **: file gtkstyle.c: line 5879:
assertion `style->depth == gdk_drawable_get_depth (window)' failed

The second is a corrupted debugger toolbar after performing the following scenario:
- Run NB with a fresh user dir
- create a java application
- Push 'Run|Step Into' menu item
- Press Finish button on toolbar
- Click on toolbar and call context menu. Select 'Small Toolbar Icons' menu item
- Push 'Run|Step Into' menu item again
==> 'Debug' toolbar appears, but It's twice as big as 'Build' toolbar
- Press Finish button on toolbar
- Click on toolbar and call context menu. Deselect 'Small Toolbar Icons' menu item
- Push 'Run|Step Into' menu item again
==> 'Debug' toolbar appears, but It's once again twice as big as 'Build' toolbar


All these do not happen if you start NB with java 1.5 or using option "--laf javax.swing.plaf.metal.MetalLookAndFeel"
Comment 1 David Simonek 2007-12-04 15:27:09 UTC
- first issue is JDK/gtk support issue, we can't do anything with it. ccing Marek which had some info about this I remember
- as for second issue - is it reproducible only on Solaris? It seems I can't reproduce myself...
Comment 2 Alexander Pepin 2007-12-04 16:47:31 UTC
Please notice that these are solaris 11 (Solaris Express) issues. To reproduce them you need to have snv_77 solaris
build or later.
Comment 3 mslama 2007-12-05 09:32:31 UTC
First issue is known and already filed against JDK. It happens also on last Ubuntu Gutsy. Issue is
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6624717. I will check second issue.
Comment 4 mslama 2008-01-11 13:05:03 UTC
I reproduced toolbar issue on Solaris 11, b80 and JDK 6u4 FCS ie. b12, 6u10 b10 (actually nightly build ie. not
promoted). It works better on JDK 7 b24 - it creates 2 toolbar rows but at least debug toolbar height stays correct..
(We do not support GTK LnF with JDK 5.0 so I did not test with it.) It is enough to just show (enable) Debug toolbar
from toolbar popup menu. Seems like problem with layout manager. I will try to find out what happens.
Comment 5 mslama 2008-01-11 14:47:17 UTC
It happens only on Nimbus L&F. It looks like some icons from debug toolbar report greater height. Workaround is to set
greater preferred height for toolbar on GTK LnF. I increased height by 2 both for small 16x16 and big 24x24 icon size.

Modified:
/cvs/openide/loaders/src/org/openide/awt/Toolbar.java
new revision: 1.54; previous revision: 1.53
Comment 6 mslama 2008-01-11 14:50:12 UTC
Correction: I meant Nimbus desktop theme on Solaris 11 NOT Nimbus LnF. So it is Nimbus theme on GTK LnF.
Comment 7 ivan 2008-03-25 20:54:12 UTC
I'm seeing the same (second) problem now in Solaris9 with Motif!
This is in 6.1 and 6.0 code.

Except it's the Build toolbar not the Debug toolbar.

I'm also wary of the "fix"
Why would icons report a bigger size? Which icons?
Isn't that a bug in the icon? 
Why is toolbar accomodating a "bad icon"?
Comment 8 mslama 2008-03-26 16:06:26 UTC
It was only on Nimbus theme. I assume if there would be problem with icon it would happen on more themes. I suspect it
was some problem with painting icons or their preferred size on Nimbus theme. I did small adjustment of toolbar
preferred height and it solved problem so I did not investigate it further. (Even if I would I only checked icons from
Debug toolbar and did not find any difference in their size. We do not support Motif L&F. We support only Metal and GTK.
We are working on new Nimbus L&F but it will n ot get into NB 6.1. I will check anyway what happens on Motif.