Re: [gtk-list] Sunken Button Outline



Matthew Cordes wrote:
> 
> Hello all,
> Many Gtk applications seem to have the default button placed with a
> sunken box.  Is there a trick to accomplish this effect?  Is it simply a
> frame with a sunken shadow surrounding a padded button?  Or is this donw
> through some function.

It's part of the button's behaviour.

You need to make sure the GTK_CAN_DEFAULT flag is set (using
GTK_WIDGET_SET_FLAGS) for the buttons and then call
gtk_widget_grab_default() on the button that should be the default.

HTH

/Matt

-- 
Matt Goodall             |  Isotek Electronics Ltd
email: mgg@isotek.co.uk  |  Claro House, Servia Road
Tel: +44 113 2343202     |  Leeds, LS7 1NL
Fax: +44 113 2342918     |  England
begin:vcard 
n:Goodall;Matt
tel;fax:+44 113 234 2918
tel;work:+44 113 234 3202/3
x-mozilla-html:TRUE
org:Isotek Electronics Ltd
adr;quoted-printable:;;Claro House=0D=0AServia Road;Leeds;W.Yorks;LS7 1NL;England
adr:;;;;;;
version:2.1
email;internet:mgg@isotek.co.uk
x-mozilla-cpt:;-21184
fn:Matt Goodall
end:vcard


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