Hallo, I am a newbie to gtk
I have got a DrawingArea and I want to receive key events and mouse click events. Therefore I set mask by gtk_widget_set_events( widget,GDK_KEY_PRESS_MASK|GDK_BUTTON_PRESS_MASK); I additionally set a callback with gtk_signal_connect ( GTK_OBJECT (widget), "key_press_event",GTK_SIGNAL_FUNC (key_pressed_cb), NULL); gtk_signal_connect ( GTK_OBJECT (widget), "button_press_event",GTK_SIGNAL_FUNC (button_pressed_cb), NULL); I set the mask on the drawingarea widget immediately after creating. so its not displayed as stated in the documentation. Mouse PRess events work properly, but key events won't and I dont have an idea why can anybody help me ? Maybe anybody can also answer me these quiestions by heard. How can I determine the actual/current dimensions x/y of my drawing area ? I have found the function gdk_draw_line to draw a black line. How can I draw a filled colored triangle ? rds Guenther _______________________________________________ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list