Re: Keyboard accelators & user signals
- From: Havoc Pennington <hp redhat com>
- To: Kilobug <le-mig_g epita fr>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Keyboard accelators & user signals
- Date: 23 Apr 2001 16:13:35 -0400
Kilobug <le-mig_g epita fr> writes:
I'm trying to add a keyboard accelerator to a signal I've created and I get
the following error message:
Gtk-WARNING **: gtk_accel_group_add(): signal "left_arrow" in the `GtkDrawingArea' class ancestrycannot be
used as accelerator signal
The code is:
gtk_object_class_user_signal_new(gtk_type_class (GTK_TYPE_WIDGET),
"left_arrow",
GTK_RUN_LAST | GTK_RUN_ACTION,
gtk_marshal_NONE__POINTER,
GTK_TYPE_NONE, 1,
GTK_TYPE_POINTER);
The problem is that the user signal has arguments; there's nowhere to
get the argument when the user presses the accel key.
Warning message kind of sucks, not very helpful was it.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]