Re: Shared Buttons causing seg fault?



Brooklyn Linux Solutions wrote:

What is this declaration?
This did not create the button?

of course not! you only declared button as a POINTER to a gtk_button.
this is not C++ where you would normally do only:

GtkButton button();

or:

GtkButton *button = new GtkButton();

and all necessery memory allocation would get done in the constructor.

in GTK+ you must also make a call to gtk_button_new() ...

regards ...
clemens

--
                 This signature is under construction ...




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