[C/GTK] taille d'un GTK_ENTRY

taille d'un GTK_ENTRY [C/GTK] - C - Programmation

Marsh Posté le 23-02-2007 à 18:29:48    

   hello :)

 

je dosi faire un ti truc en C/GTK
j'ai créé un widget GtkEntry mais je n'arrive pas à réduire sa taille (il prend toute la largeur de la fenetre)

 

j'ai mis un gtk_entry_set_width_chars mais ça ne change rien... :-(

 

comment faire ça ?

 

merci !


---------------
Blog photo/récits activités en montagne http://planetcaravan.net
Reply

Marsh Posté le 23-02-2007 à 18:29:48   

Reply

Marsh Posté le 23-02-2007 à 20:13:57    

regarde les attribut de gtk_box_pack_(start|end).

Reply

Marsh Posté le 24-02-2007 à 14:55:26    

j'ai fais ça avec des gtkalignment packés dans une box


---------------
Blog photo/récits activités en montagne http://planetcaravan.net
Reply

Marsh Posté le 25-02-2007 à 00:38:49    

non. pas la peine d'alignement du tout. RTFM gtk_box_*.

Reply

Marsh Posté le 25-02-2007 à 10:44:58    

arf j'ai modifié, le width_chars marche quand c'est packé dans une box :)
merci


---------------
Blog photo/récits activités en montagne http://planetcaravan.net
Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed