Is there any callback function, so that when I click a button the window maximizes. By the way I'm using GTK 3.0 and C++ (Not gtkmm). I wrote a function which is called during the button click event and put this line
int maximise(){
gtk_window_fullscreen(GTK_WINDOW(window));
}
It gets compiled, but while I click the button the program terminates showing segmentation fault. (This function is inside the class)