GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Thu Aug 25, 2016 8:11 pm

All times are UTC

Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: GtkComboBox
PostPosted: Sat Jul 26, 2014 5:17 pm 
Familiar Face

Joined: Sun Jul 31, 2011 9:42 pm
Posts: 7
Location: Italy
I have a GtkComboBox widget created with gtk_combo_box_text_new_with_entry().
I handle the "changed" signal to catch an item selection.
But the callback function is called every time a single letter is typed into the entry control.
I need to type into the entry without activating anything.
Any idea to do that?

 Post subject: Re: GtkComboBox
PostPosted: Sun Jul 27, 2014 5:58 am 
Never Seen the Sunlight

Joined: Mon Apr 28, 2008 5:52 am
Posts: 1048
Location: UK

This is the correct operation for the GtkComboBox. This quote taken from the documentation for the signal.

The changed signal is emitted when the active item is changed. The can be due to the user selecting a different item from the list, or due to a call to gtk_combo_box_set_active_iter(). It will also be emitted while typing into the entry of a combo box with an entry.

There is no way that GTK can know when the user has stopped typing therefore you will need to handle the signal for every character entered and decide yourself when typing has finished.


Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group