Re: Combo box event question



Nice approach, indeed :)

But generally I wouldn't be interested in what's the text from the combo,
I needed more to know the index of the selected item from the list.  For
this, I found no other solution than to attach to each item a value, with
gtk_object_set_data... and use the list object to catch the signals, not
the entry.

On 03 Aug 2001 13:36:34 PDT
"Tara M" <learfox furry ao net> wrote:


On Thu, 2 Aug 2001 15:48:04 +0930, bjohns44 csc com au said:

I did a quick search through the archives and could find nothing on
[combo*
 and event] so I was hoping that someone on the list may know.
 The question:
      Is there an event for the combo box that gets fired when a
selection
 has been made?


I usually attach a signal handler to the combo box's entry widget
for the "insert_text" signal.

Because when you select a new item from the list, the entry
widget's contents get removed then a new string of text is added
and yer signal handler will be called.

-- 
--
Sincerely,                ,"-_                         \|/
-Capt. Taura M.           ,   O=__                    --X--
.__                        ,_JNMNNEO=_                 /|\
OMNOUMmnne.                {OMMNNNEEEEOO=_
UOOOBIOOOEOMMn.             'LONMMMMNNEEEOOO=.__..,,..
UUOOEUUOOOOOOOObe            '"=OMMMMWNEEEOOOOO,"=OEEEOO=,._
OOUUUIEEIOONNOIUbe.              "7OMMMMNNNNNWWEEEEOOOOOO"   "'.
EEBNNMMMNWNWWEEIMMNe.           __  7EMMMNNNNNWWWEEEEEEEOO.     " .
NNMMMMWWWMMMWEINMMMNn          "=BBEEEEMMMMMMMMNNNWWWEEOOOOO=._     .
                http://furry.ao.net/~learfox/



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


-- 

  ... and on the seventh day, He exited from append mode.




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