Keyboard accelators & user signals
- From: Kilobug <le-mig_g epita fr>
- To: gtk-app-devel-list gnome org
- Subject: Keyboard accelators & user signals
- Date: Mon, 23 Apr 2001 15:56:45 GMT
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);
gtk_signal_connect(GTK_OBJECT(conf->main), "left_arrow",
(GtkSignalFunc) gamearea_left_arrow, conf);
gtk_widget_add_accelerator(conf->main, "left_arrow", accel_group,
GDK_Left, 0,
GTK_ACCEL_VISIBLE);
--
** Gael Le Mignot, Ing2 EPITA, Coder of The Kilobug Team **
Home Mail : kilobug freesurf fr Work Mail : le-mig_g epita fr
GSM : 06.71.47.18.22 (in France) ICQ UIN : 7299959
"Software is like sex: it's better when it's free.", Linus Torvalds
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]