Re: Why aren't all simple structs Boxed Types?
- From: James Henstridge <james daa com au>
- To: murrayc usa net
- Cc: Havoc Pennington <hp redhat com>, gtk-devel-list <gtk-devel-list gnome org>
- Subject: Re: Why aren't all simple structs Boxed Types?
- Date: Tue, 23 Oct 2001 10:38:29 +1000
Murray Cumming wrote:
On Mon, 2001-10-22 at 17:58, Havoc Pennington wrote:
murrayc t-online de (Murray Cumming) writes:
So why are some structs (for instance, GtkTextIter) not Boxed Types,
even though they seem to have a similar set of new/copy/free functions?
TextIter is a boxed type, look at gtk-boxed.defs.
But I can't find a gtk_text_iter_get_type(), or any use of
g_boxed_type_register_static() with TextIter.
There is a GTK_TYPE_TEXT_ITER global variable. Generally you should be
using the XXX_TYPE_* macros/global variables rather than the get_type()
functions. This way you won't care if you are doing a function call or
looking at a constant/variable.
James.
--
Email: james daa com au
WWW: http://www.daa.com.au/~james/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]