Hi everybody, i have a drawing area in my application and conncted following signals "realize", "unrealize", "configure_event" and "expose_event". And it works...
The code: Widgets_MainWindow.drawingarea1 = gtk_drawing_area_new (); GTK_WIDGET_SET_FLAGS (GTK_WIDGET (Widgets_MainWindow.drawingarea1), GTK_CAN_FOCUS); gtk_widget_show (Widgets_MainWindow.drawingarea1); gtk_widget_add_events (Widgets_MainWindow.drawingarea1, GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_BUTTON_MOTION_MASK); gtk_table_attach (GTK_TABLE(Widgets_MainWindow.table1),Widgets_MainWindow.drawingarea1, 1, 2, 1, 2,(GtkAttachOptions)(GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 5,5); The events are properly connected, that works for sure. I thought the "realize" event is the first event raised, but it isn't. The first one is "configure_event". And it doesn't matter in which order the code is. I want to ini a class in the "realize" event. I just tried gtk_widget_realize (Widgets_MainWindow.drawingarea1); before the gtk_widget_show (Widgets_MainWindow.drawingarea1); but then no "realize" event occurs. Why is that?? And which event is really the first one? Any help is much appreciated Alex _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list