Closed pavel-krivanek closed 4 years ago
SpMenuButtonPresenter is not showing menus correctly with Gtk backend
app := SpApplication new. app useBackend: #Gtk. loremIpsumWords := String loremIpsum substrings. menuButton := (SpMenuButtonPresenter newApplication: app) menu: [ (SpMenuPresenter owner: menuButton) addGroup: [ :group | group addItem: [ :item | item name: '1: ', loremIpsumWords atRandom ]; addItem: [ :item | item name: '2: ', loremIpsumWords atRandom ]; addItem: [ :item | item name: '3: ', loremIpsumWords atRandom ] ]; yourself ]; yourself. menuButton openWithSpec
so it looks like handling of button-press-event (in GtkMenuButtonAdapter>>#addModelTo:) is preventing the menu popup happen
GtkMenuButtonAdapter>>#addModelTo:
SpMenuButtonPresenter is not showing menus correctly with Gtk backend