Re: i18n and Combo widget?



Perhaps you should add actual GtkListItem objects to the combo box instead 
of strings.  Then, for each item, you can do

gtk_object_set_data (GTK_OBJECT (the_item), "hash_code", 
  (gpointer)the_hash_code) ;

Then, at each "changed" event, you compare the text in the text box to the 
text representation of each item (translated or otherwise), and 
gtk_object_get_data the hash code from the item you found.




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