Re: Thoughts on GTK+ and CSS
- From: Alberto Ruiz <aruiz gnome org>
- To: Christian Dywan <christian lanedo com>
- Cc: gtk-devel-list gnome org
- Subject: Re: Thoughts on GTK+ and CSS
- Date: Thu, 30 Jul 2009 18:31:00 +0100
2009/7/30 Christian Dywan <christian lanedo com>:
> Am Tue, 28 Jul 2009 08:45:26 +0200
> schrieb Robert Staudinger <robert staudinger gmail com>:
>
>> On Tue, Jul 28, 2009 at 3:40 AM, Keith Rarick<kr xph us> wrote:
>>
>> [...]
>> >> The "margin" property in gtk is not implemented like you assume
>> >> above. Also does GtkContainer not expose information about child
>> >> widget positions like you suggest using ":first-child" and
>> >> friends. Work on those limitations would break the way for more a
>> >> more comprehensive mapping of css onto gtk.
>> >
>> > Okay. I only meant that example to suggest what a theme could do in
>> > principle, even if it uses features that don't exist yet.
>> >
>> > Would you accept a patch with work toward those things, such as
>> > margin or first-child?
>> If there way a way to get the position of a child in a GtkContainer
>> (thus allowing for :first-child and other positional pseudo classes to
>> be implemented) that would make quite a difference in what you can do
>> with the css engine. I'm not in the position to make the call on gtk
>> patches though.
>
> You are probably aware that gtk_container_get_children () does give yo
> the positions of children. Assuming that the lack of guarantees about
> order of widgets in a container is the actual problem, maybe this can be
> reconsidered. There was a bug I can't find right now suggesting a
> policy for this containers would be recommended to follow.
That sort of works for a widget instance, but doesn't work generically
when you're painting a "pseudoelement", for example, a notebook tab.
I'm all ears if someone suggests a sane fix for this.
> Regards,
> Christian
> _______________________________________________
> gtk-devel-list mailing list
> gtk-devel-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-devel-list
>
--
Un saludo,
Alberto Ruiz
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]