Updating a GTK+ combo box

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

 



Apologies for cross-posting, but I haven't had a response to my query on the
development list (perhaps the answer is too obvious :) )

I'm using GTK+ 1.2 and have a combo box displayed on the screen.

A given menu option must set the default text to appear in the entry section
of the combo box.

I can set the text by calling 
	gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(combo)->entry), "My String.")

If I then check the text by calling
	gtk_entry_get_text(GTK_ENTRY(GTK_COMBO(combo)->entry))
it has indeed been set to the above value.

However, the string cannot be seen on the screen.  I'm assuming that setting
the text of the entry widget doesn't automatically cause it to repaint.

If this is the case, how do I force the combo box to repaint?  Or is there
another reason for the text not being displayed.


Thanks in advance for any help, 


Will Luesley



********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux