On Mon, Oct 28, 2013 at 04:22:38PM +0100, Borja Mon Serrano wrote:
> The point here is: how can I know what button was pressed in order to
> remove a row?

(a) by passing something that identifies the button within user_data
    when you do g_signal_connect...

(b) using something along the lines of g_object_set_data(button, "id", ...)
    to give each button an identifier and retrieving it in the signal
    handler

(c) by keeping the buttons in some data structure (list, hash table,...)
    and identifying them by the object address in the signal handler

There are other methods, but these are probably typical.

Yeti

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

Reply via email to