Re: GtkCombo, insert entry



On Mon, 18 Nov 2002, Arno Dark wrote:

Hello,

I would like to insert in the GtkCombo list, an entry. So I do :

      gtk_entry_set_text(GTK_ENTRY (GTK_COMBO (combo)->entry), filtre);
      list = GTK_LIST (GTK_COMBO (combo)->list);
      items = g_list_append(NULL, filtre);

you are trying to add an element to NULL. The first parameter must be a 
*GList. 

      gtk_list_insert_items(list, items, 1);
      g_free(filtre);

But I have a segmentation fault. Could you help me ?

Also, I would like that when I insert a word in the entry of the
gtkcombo and when I press enter, it execute a function.

use the "activate" signal of the entry of your combo

regards

Vincent TORRI


Thk 
Arno


__________________________________________________
Modem offert : 150,92 euros remboursés sur le Pack eXtense de Wanadoo ! 
Haut débit à partir de 30 euros/mois : http://www.ifrance.com/_reloc/w

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


-- 
TORRI Vincent
Mathematiques Appliquees Bordeaux                                                
Institut de Mathematiques                                                       
Universite Bordeaux 1                                                           
351 cours de la liberation                                                      
33 405 Talence cedex - France                                                   
                                                                                
Tel : 33 (0)5 57 96 21 42                                                       
Fax : 33 (0)5 56 84 26 26                                                       
--




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