Re: gtk_builder_connect_signals and user_data parameter

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

 



Ok, I resolved it - I had wrong callback signature - so callback was called but can't access arguments properly.

was:
static void some_cb(some_data *data)

should be:
static void some_cb(GtkButton *button, some_data *data)

Mariusz

On Fri, Aug 4, 2017 at 12:34 PM, Mariusz W <mawasak@xxxxxxxxx> wrote:
Hi,
I am trying to pass data (pointer to struct) to handler but it doesn't work - handler don't have access to this struct. To configure handler I use gtk_builder_add_callback_symbol and it work (handler is called). What I have to check to make it work?

Regards,
Mariusz

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

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux