On Fri, 11 Mar 2011, [windows-1252] Jaroslav ^Jm�d wrote: > From GTK documentation: > > --- > A GtkTargetList structure is a reference counted list of GtkTargetPair. > It is used to represent the same information as a table of > GtkTargetEntry, but in an efficient form. This structure should be > treated as opaque. > --- > > Important to read is "This structure should be treated as opaque". > You shouldn't access members of this structure directly. In GTK2, > structure definition was available in GTK headers, in GTK3, it is not. > > Info: > http://library.gnome.org/devel/gtk3/stable/gtk3-Selections.html#GtkTargetList-struct
You're right, but this seems odd. In the GTK3 version of the documentation the basic structures GtkTargetEntry and GtkTargetPair are still exposed in the API, and although GtkTargetList is said to be opaque (a) it's unclear why this should be so (it seems to be a trivial composite) and (b) the functionality that was previously available via the struct itself is not replicated via accessor functions. For example, there's no gtk_target_list_get_n_targets() to replace the original poster's GTK2 idiom: int nTargetCnt = g_list_length (list->list); Allin Cottrell
_______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list