From: mips Date: 2001-10-31T03:55:03+09:00 Subject: [ruby-talk:23861] problem with Gtk::Menu I got a problem with a popup display. With a textbox i try to catch right button event and to open a context menu when it happens. The only thing i can see is a small dot :-/ Here is the source : @text = Gtk::Text.new @text.set_editable(true) @scrolled_window.add(@text) @text.grab_focus @text.show @text.signal_connect('button_press_event') { |w, e| b = e.button t = e.time x = e.x y = e.y printf("button %s : %s,%s\n", b, x, y) if b == 3 popup_file_menu = Gtk::Menu.new popup_file_menu.append(save_item = Gtk::MenuItem.new('Save')) popup_file_menu.append(close_item = Gtk::MenuItem.new('Close')) # popup_file_menu.show <= this does not change anything popup_file_menu.popup(nil, nil, nil, b, t) end } @textwin.show_all All working code example is welcome ;) mips