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 96000 - Toolbar ignores GtkToolbar::shadow_type gtkrc setting
Toolbar ignores GtkToolbar::shadow_type gtkrc setting
Status: RESOLVED DUPLICATE of bug 106361
Product: bonobo
Classification: Deprecated
Component: libbonoboui
unspecified
Other Linux
: Normal minor
: ---
Assigned To: Michael Meeks
Luis Villa
Depends on:
Blocks:
 
 
Reported: 2002-10-16 23:07 UTC by Alisdair McDiarmid
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.1/2.2



Description Alisdair McDiarmid 2002-10-16 23:07:47 UTC
Description of Problem:

(This is not just a gedit bug, but I don't know
whose bug this is: please reassign to the correct
component.)

gedit (and other GNOME 2.0 applications, including
file-roller and nautilus) ignore the
GtkToolbar::shadow_type setting. The only
application I can find which honours the setting
is yelp.

Steps to reproduce the problem:

1. Add the following line to your ~/.gtkrc-2.0:
style "default" { GtkToolbar::shadow_type =
GTK_SHADOW_NONE }
2. Load gedit
3. Load yelp

Actual Results:

The gedit toolbar looks raised, the yelp toolbar
looks flat.

Expected Results:

Both toolbars look flat (yay flat toolbars).

How often does this happen? 

Every time.

Additional Information:

I'm using the ThinIce theme engine.
Comment 1 Andrew Sobala 2002-10-16 23:19:46 UTC
-> gtk

Can't verify right now, my GNOME machine is off.

Not sure which module this is, since it's selective weirdness: Owen, 
any ideas?
Comment 2 Alisdair McDiarmid 2002-10-16 23:23:03 UTC
I forgot to mention: of the three program sources I checked, yelp was
the only one to directly use a GtkToolbar object. I don't know how the
other two worked, but they both used bonobo_activation in vague
relation to their toolbar display.
Comment 3 Owen Taylor 2002-10-16 23:38:53 UTC
Most gnome apps are using a toolbar widget in bonoboui rather
than GtkToolbar. The shadow-type setting works fine in
testgtk, so I think your problem is with the Bonobo widget.
Comment 4 Michael Meeks 2002-10-17 09:27:17 UTC
Since the Bonobo UI toolbar doesn't render a shadow at all; this is
probably down to the DockItem or somesuch;

While there is a 'shadow' property on the DockItem - there is no
widget_class_style property - we should perhaps add one - see
libbonoboui/bonobo/bonobo-dock-item.[ch] - hack there.

Is this useful Tiger ?
Comment 5 Rodney Dawes 2003-03-07 01:50:08 UTC
This is fixed in HEAD by virtue of my addition of the shadow_type
style property to BonoboUIToolbar. If you are using libbonoboui HEAD,
you can set the BonoboUIToolbar::shadow-type style property to match
the gtk+ style property for the toolbar. Since BonoboUIToolbar is not
a child of
GtkToolbar, this was how it had to be implemented. I am waiting for some
kind of comment from owen with bug 106336 to see what to do about the
default drawing of GtkToolbar. I will then change BonoboUIToolbar to
match it exactly. Either the first patch in that bug, or the modified
patch with shadow_type set to NONE by default seems best. Should this
be resolved as a dup of bug 106361?
Comment 6 Michael Meeks 2003-03-07 10:37:22 UTC
I'm leaving this entirely to you Dobey; go for it :-)
Comment 7 Kjartan Maraas 2003-10-04 22:06:26 UTC
Ok. Doing what dobey got permission to do :-)

*** This bug has been marked as a duplicate of 106361 ***