Re: Signal of a button dynamically created



Borja Mon Serrano wrote:
The point here is: how can I know what button was pressed in order to
remove a row?

You need to attach to the "clicked" signal on each button[1]. Each button could call a separate function or you can pass a pointer to different values to know which button is which.

[1] https://developer.gnome.org/gtkmm-tutorial/unstable/sec-connecting-signal-handlers.html.en

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