i have a button that is connected to a function called
restartApp(GtkWidget *widget, Tabuleiro *tabuleiro) .

(Tabuleiro is a static cast of a drawing area).

When the button is clicked the restartApp is called
and executes the following line


the function paint() has the following content:
void Tabuleiro::paint(){
	gdk_draw_rectangle(this->window, this->style->white_gc, true, 0, 0,
100, 100);


when i click the button i get segmentation fault when it tries to do the
gdk_draw_rectangle. It gets in Tabuleiro::paint(), but it doesn't do the

Does anyone know what is the problem with this signal? i use
Tabuleiro::paint on other ocasions and it works...


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