[Gtk-sharp-list] EntryCompletion events

P.-A. chez.pa at gmail.com
Wed Jan 11 08:50:47 EST 2006


Hi everyone,

I'm pretty new in Gtk# development and I'm trying to use a
Gtk.EntryCompletion with the following code :

        public class TypeEntryCompletion:Gtk.EntryCompletion {

                public TypeEntryCompletion():base() {

                        Init();
                        InitEvents();
                }

                private void Init() {
                        MinimumKeyLength = 3;
                }

                private void InitEvents() {
                        MatchSelected += new
MatchSelectedHandler(OnMatchSelected);
                        ActionActivated += OnActionActivated;
                }

                private void OnActionActivated(object o,
ActionActivatedArgs args) {
                        Logger.Debug("action");
                }

                private void OnMatchSelected(object o, MatchSelectedArgs args) {
                        Logger.Debug("match selected");
                }
        }



Neither MatchSelected or ActionActivated seems to be fired. Am I wrong
somewhere? Or do you have an example of events handling with
EntryCompletion?

Thanks you.


More information about the Gtk-sharp-list mailing list