Gtk::ComboBox and enable drop down via button click

Hello,

First, thanks for answering some of my questions before.
I was able to send commands to a VTE terminal using:

vte_terminal.feed_child("ls\n")

Now, to a new question, to Gtk::ComboBox.

Is there a way to open the dropdown box without
clicking on the arrow?
Specifically, I would like to open the dropdown box
whenever the combo_box is clicked:

combo_box.signal_connect(“event”) do |widget, event|
case event.event_type
when Gdk::Event::BUTTON_PRESS
# now open the dropdown menu as if the user
# would have clicked the arrow
end
end

However the wiki docu at
http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3AComboBox
does not seem to hint at doing this.

Regards,
“shev”


Get your free email from http://www.linuxmail.org

Powered by Outblaze


Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

Hi,

2006/10/26, Roebe XXX [email protected]:

Now, to a new question, to Gtk::ComboBox.

Is there a way to open the dropdown box without
clicking on the arrow?

Use Gtk::ComboBox#popup.

Specifically, I would like to open the dropdown box
whenever the combo_box is clicked:

I think this is a default behavior.

Thanks,

kou


Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs