[755] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] Re: Combo box widget

daemon@ATHENA.MIT.EDU (Kenneth Albanowski)
Sun Aug 17 19:22:30 1997

Date: Sun, 17 Aug 1997 19:19:14 -0400 (EDT)
From: Kenneth Albanowski <kjahds@kjahds.com>
To: gtk-list@redhat.com
In-Reply-To: <199708172245.SAA02984@cc1000916-a.avnl1.nj.home.com>
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com

On Sun, 17 Aug 1997, Arun Sharma wrote:

> Gtk gurus,
> 
> I am trying to write a combo box widget [1] and am through with deriving
> it from gtkentry and displaying the arrow etc.
> 
> Can someone advise me on which one of the following implementations is
> better for the list ?
> 
> (a) Implementing the list as a separate gtklist widget and managed by
>     gtkcombo.
> (b) Writing it from the first principles from a Gdkwindow and
>     duplicating code in gtklist.
> 
> Sorry if some of this sounds stupid -- never written a widget before.

I've never written a widget, but I can guarantee you that (a) is the smart
choice. Remember that the entry widget is always "there", but the list
widget is only there temporarily. That is a perfect reason for making the
list a has-a relationship, with the entry probably best being is-a for
simplicity.

-- 
Kenneth Albanowski (kjahds@kjahds.com, CIS: 70705,126)


--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post