Re: mouse click on labels



On Thu, 2002-11-21 at 13:35, Razvan wrote:
in docs at GtkWidget it is "button-press-event" with minus not with
underscore

which way is corect?

Both - and _ are interchangable in signal names.

The problem is that you need to put the GtkLabel inside a GtkEventBox
then do gtk_widget_add_events (GTK_WIDGET (eventbox),
GDK_BUTTON_PRESS_MASK);

then you can connect to the button-press-event on the eventbox.

iain
-- 
"Oh gooodie! Another slashdot boycott! I bet this one will be just as
effective as all the previous ones."




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