[Glade-users] libglade, GtkDrawingArea, GdkEvents ?

goth goth wrote:

I realise a simple application using libglade 2, Gtk
2.2 : a GtkDrawingArea in a GtkWindow.

window : signal destroy connect to gtk_main_quit
drawingarea : signals button_release_event and
motion_notify_event on two function who g_print event.

drawingarea use the string "00000000001000000100" to
the GdkEvent (activate GDK_MOTION_NOTIFY_MASK and

Events are not send : no error message but no action
What is the problem ?

 From the docs:

   To receive mouse events on a drawing area, you will
   need to enable them with gtk_widget_add_events().

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