[prev in list] [next in list] [prev in thread] [next in thread]
List: gtk-devel
Subject: Re: Rationalizing widget default styles
From: Owen Taylor <otaylor () redhat ! com>
Date: 2001-06-30 16:07:51
[Download RAW message or body]
Tim Janik <timj@gtk.org> writes:
> On 26 Jun 2001, Owen Taylor wrote:
>
> > * It removes:
> >
> > gtk_widget_set_default_style()
> > gtk_widget_push_style()
> > gtk_widget_pop_style()
>
> sounds good.
>
> > * It makes the canonical way to remove a style set with
> > gtk_widget_set_style (widget, style) -
> > gtk_widget_set_style (widget, NULL). I believe this is the
> > way of unsetting the style for a widget that would make
> > the most sense to someone familiar with the GTK+ API.
>
> agree.
>
> > * It makes the functions:
> >
> > gtk_widget_set_rc_style (widget)
> > gtk_widget_restore_default_style (widget)
> >
> > Deprecated aliases for gtk_widget_set_style (widget, NULL);
>
> i suppose the only valid way to actually style-harm ;) a widget then
> is gtk_widget_modify_style() right (except for, if you want to create
> a new style from scratch)?
> shouldn't we just nuke gtk_widget_set_rc_style() and
> gtk_widget_restore_default_style() aswell then?
I've left them as deprecated aliases because gtk_widget_set_style()
is being left (even if it is always better to use gtk_widget_modify_*),
and thus the operation that people used them for "nuke style
set by gtk_widget_set_style()" still makes sense.
Regards,
Owen
_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic