Re: button_release_event



On Fri, 6 Dec 2002, Chris Garrett wrote:


Hi,

I am having a problem with the "button_release_event".  I connect the 
signals used in my program in the folowing way, but the button_release_event 
callback function is never called.  Any ideas why this is the case?  The 3 
other events are working OK.

Hello,

  in my case, i have to add the events 
GDK_POINTER_MOTION_MASK, GDK_BUTTON_PRESS_MASK and 
GDK_BUTTON_RELEASE_MASK to catch the last three signals. Perhaps you 
forget the last one.

regards

Vincent TORRI


Best regards,

Chris

PS. The code snippet:

gtk_signal_connect(GTK_OBJECT(darea), "expose-event",
    GTK_SIGNAL_FUNC(on_darea_expose), NULL);

gtk_signal_connect(GTK_OBJECT(darea), "motion_notify_event",
    GTK_SIGNAL_FUNC(motion_notify_event), NULL);

gtk_signal_connect(GTK_OBJECT(darea), "button_press_event",
    GTK_SIGNAL_FUNC(button_press_event), NULL);

gtk_signal_connect(GTK_OBJECT(darea), "button_release_event",
    GTK_SIGNAL_FUNC(button_release_event), NULL);

_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


-- 
TORRI Vincent
Mathematiques Appliquees Bordeaux                                                
Institut de Mathematiques                                                       
Universite Bordeaux 1                                                           
351 cours de la liberation                                                      
33 405 Talence cedex - France                                                   
                                                                                
Tel : 33 (0)5 57 96 21 42                                                       
Fax : 33 (0)5 56 84 26 26                                                       
--




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