Signal ::expose-event is invalid for GdkWindow and GdkX11Window
问题 I had this following code pull from one of the tutorials on line. When I use gtk+-2.0, the following code works fine. But when I try compile with gtk+-3.0, the code gives this error: signal 'expose-event' is invalid for instance of type 'GtkWindow' So I try to do the following, but still doesn't help. And it gives another error: signal 'expose-event' is invalid for instance of type 'GdkX11Window' gtk_widget_realize(window); GdkWindow *gdkwin = gtk_widget_get_window(Gwindow); int main(int argc