Re: GtkSourceCompletion



Hi Johannes!

I explain you some about the trigger events:

Actually GtkSourceCompletion have two default events:

.- User request event: When a user press control+return
.- Word completion event: When a user writes 4 consecutive characters

You can develop a lot of external events like a "c-completion-event"
that trigger an event when the user writes "->" or "." etc. This event
only have to detect the user entry ("->", "." etc) and then call
gtk_source_completion_popup_raise_event with the parameters and
GtkSourceCompletionPopup call to all providers registered to this event.

Other way to do this: Create a provider and register it with the "word
completion event" then detect if the user write a c symbol "->", "." etc
and show the data.


I don't know the new Tooltip API but I can study it. Can you give me an
URL or some documentation where I can learn it?

Regards,
	Chuchi

El dom, 22-07-2007 a las 17:20 +0200, Johannes Schmid escribi� Hi Perriman!
> 
> Looks good! Some questions:
> 
> What can trigger events? We usually want that an event occurs when the
> user types in a word, something like "->" or "." or "(", etc. Is this
> possible?
> 
> Another thing that would be nice is that we integrate tooltips into this
> API (using the new Tooltip API) because we already have all this code
> for the events.
> 
> Regards,
> Johannes
> 
> perriman schrieb:
> > I have changed some things:
> > 
> >  - Added a priority property to GtkSourceCompletionData
> >  - GtkSourceCompletionPopup sort all items by priority
> >  - I have removed gtk_source_completion_popup_add_event
> >  - I have changed gtk_source_completion_popup_register_provider. Now you
> > must 
> >    pass a parameter with the event name. When an event occurs, the popup
> > only call
> >    the providers registered for this event.
> > 
> > If you have some another change, make me know.
> > 
> > 
> > _______________________________________________
> > gnome-devtools mailing list
> > gnome-devtools gnome org
> > http://mail.gnome.org/mailman/listinfo/gnome-devtools
> > 
> 




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