Re: shadow_type style property problem in GtkMenuBar



Jeff Franks <jcf tpg com au> writes:

> Hi,
> 
> Now that the 'shadow_type' member in GtkMenuBar has been replaced by a
> 'shadow_type' property the default shadow drawn is no longer
> GTK_SHADOW_OUT. It's the ugly GTK_SHADOW_NONE. 

Errr, I don't see this in any of the tests.

> In
> 'gtk_menu_bar_class_init' the "shadow_type" property is installed as
> GTK_SHADOW_OUT and G_PARAM_READABLE and 'gtk_menu_bar_paint' calls
> 'get_shadow_type' to retrieve the shadow_type' for painting.
> 
> Is something wrong with the painting of GTK_SHADOW_OUT is it me? I
> tried setting the 'shadow_type' with 'g_object_set' but that didn't
> work either.

Look carefully, it's not a object property, it's a style eproperty.

You can chnage it with something like;

 style "menubar-style" {
   GtkMenuBar::shadow_type = etched-in
 }

 class "GtkMenuBar" style "menubar-style"

Regards,
                                        Owen




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]