Re: Proposed GtkTreeViewColumn API change
- From: Detlef Reichl <detlef reichl arcormail de>
- To: Jonathan Blandford <jrb redhat com>
- Cc: GTK-devel <gtk-devel-list gnome org>
- Subject: Re: Proposed GtkTreeViewColumn API change
- Date: 18 Nov 2001 15:49:36 +0100
Am Son, 2001-11-18 um 09.16 schrieb Jonathan Blandford:
> While this is a little late, I'd like to make a small API change to
> GtkTreeViewColumn. It effects a very few people who currently
> explicitly set their mode to be RESIZABLE. Currently, it has a
> GtkTreeViewColumnSizing enum to determine how sizing is done. This is
> defines as:
>
> typedef enum
> {
> GTK_TREE_VIEW_COLUMN_GROW_ONLY,
> GTK_TREE_VIEW_COLUMN_RESIZABLE,
> GTK_TREE_VIEW_COLUMN_AUTOSIZE,
> GTK_TREE_VIEW_COLUMN_FIXED
> } GtkTreeViewColumnSizing;
>
> It was pointed out that RESIZABLE is identical to GROW_ONLY in
> functionality, with the exception that it's user resizable, and that
> FIXED could also be user resizable. Rather than add FIXED_RESIZABLE to
> the enum, I'd rather make resizable a property, and remove it from the
> enum. Additionally, if I add another sizing mode for 2.2, I would have
> to add 2 variants (one for resizing).
>
> So, which should I do:
>
> 1) Add GTK_TREE_VIEW_COLUMN_FIXED_RESIZABLE
> 2) Remove GTK_TREE_VIEW_COLUMN_RESIZABLE and add a "::resizable"
> property[*]
> 3) Nothing
> 4) Some other solution I haven't considered
>
> I'm currently leaning towards option 2. Anyone else have comments?
> Thanks,
> -Jonathan
hi jonathan
i'm happy to see, that you thought another time about this :)
i think the best will be, to remove the RESIZABLE from the enums and
make it a simple flag, that have its own set/get functions. from my
humble point of view, properties are expensive and only necessary if the
new state have to be propagated. thats not the case for this.
have a nice day
detlef
>
> [*] The property would not work, of course, for GTK_TREE_VIEW_COLUMN_AUTOSIZE
>
> > LocalWords: AUTOSIZE
> _______________________________________________
> gtk-devel-list mailing list
> gtk-devel-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]