[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gtk-devel
Subject:    Re: Pluggable widget types and implementations
From:       Tim Janik <timj () imendio ! com>
Date:       2006-12-08 15:27:26
Message-ID: Pine.LNX.4.62.0612081625180.23657 () master ! birnet ! private
[Download RAW message or body]

On Fri, 8 Dec 2006, Tristan Van Berkom wrote:

> On Fri, 2006-12-08 at 14:36 +0000, Damon Chaplin wrote:

>> I don't have any specific examples. I just thought using a factory was a
>> more flexible approach - better than adding XXX_appoint_type() functions
>> for each widget.
>
> Would there be anything wrong with using the regular way of referring
> to stock types in the same way we refer to stock icons/stock images
> (and potentially stock cursors) ?
>
> i.e.
> gtk_stock_appoint_type ("file-chooser",
>                         MYLIB_TYPE_SEXY_FILECHOOSER);

this is simply not possible without introducing a seperate widget type
naming system which we aren't planning to do (e.g. because it'd be redundant
to the type names). it can also not be automated because type names are not
known before the first use of the corresponding _get_type function.

> Cheers,
>                   -Tristan

---
ciaoTJ
_______________________________________________
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