Re: mouse click on labels
- From: iain <iain prettypeople org>
- To: razvaneduard xnet ro
- Cc: Emmanuel Saracco <esaracco noos fr>, gtk-app-devel-list gnome org
- Subject: Re: mouse click on labels
- Date: 21 Nov 2002 14:25:15 +0000
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]