Send mouse button press event to widget??




Hi All,
Am a newbie to linux gtk programming.I want trying to send the mouse button
press event to my widget and so I tried this code:
Code:
###########################################
         guint signalid = g_signal_new("button_press_event",
                                 G_TYPE_FUNDAMENTAL(0),
                                 G_SIGNAL_RUN_FIRST,
                                 NULL,
                                 NULL,
                                 NULL,
                                 NULL,
                                 G_TYPE_NONE,0);
         g_signal_emit(GTK_OBJECT(gPage),signalid,0);
###########################################
Can someone tell me what is wrong out there?
Thanks in advance.
--eminemence.
-- 
View this message in context: 
http://www.nabble.com/Send-mouse-button-press-event-to-widget---tf4353330.html#a12404489
Sent from the Gtk+ - Apps Dev mailing list archive at Nabble.com.




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