> >> i need a event handler for a gtkEntry which have the form "OnChange" > or/ > >> and "OnPressEnter" and a method to call a function which handle the > >> gtkEntry input! > > > >the "activate" signal (when you stroke the enter key) : > > > >http://developer.gnome.org/doc/API/2.0/gtk/GtkEntry.html#GtkEntry-activ > ate > > Are there some code examples? Thanks! Learning by looking to program > code! void callback_activate (GtkWidget *w, gpointer data) { g_print ("The enter key has been pressed\n"); } void my_function () { GtkWidget *my_entry; my_entry = gtk_entry_new (); g_signal_connect (G_OBJECT (my_entry), "activate", G_CALLBACK (callback_activate), NULL); } regards Vincent TORRI _______________________________________________ gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list