Re: marks API



Havoc Pennington <hp@redhat.com> writes: 
> > > 
> > > gboolean   gtk_text_mark_deleted (GtkTextMark *mark);
> > 
> > this simply returns whether a mark got deleted meanwhile?
> > could i get "delete notification" of such an event occouring?
> >
> 
> This could also be called gtk_text_mark_not_in_buffer()
> or gtk_text_buffer_mark_in_buffer(). There's a signal on the buffer
> you could use to get notification.
>   

I should clarify that the purpose of this function is basically for
g_return_if_fail() statements; you should know when you delete a mark,
and there are no valid operations on a mark once you delete it.

Havoc




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