Re: problematic gtk_clist_get_selection_info()



On Mon, Oct 12, 1998 at 01:15:57PM +0200, Tim Janik wrote:

> the current semantics of gtk_clist_get_selection_info() are not very nice,
> because it operates on anonymous relative coordinates.
[...]
> i'd therefore like to mark gtk_clist_get_selection_info() deprecated and
> provide something like:
> 
> gint
> gtk_clist_selection_info (GtkCList       *clist,
>                           GdkWindow      *window,
>                           gint            x,
>                           gint            y,
>                           gint           *row,
>                           gint           *column)
> {
>   g_return_val_if_fail (clist != NULL, FALSE);
>   g_return_val_if_fail (GTK_IS_CLIST (clist), FALSE);
> 
>   if (window && window == clist->clist_window)
>     return gtk_clist_get_selection_info (clist, x, y, row, column);
> 
>   return FALSE;
> }
> 
> objections/suggestions?

I agree in general, but I never liked the _selection_ function name.
How do you like gtk_clist_row_from_coordinate or something similar ?

bye,
  Lars



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]