Keyboard accelators & user signals

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),
                                   GTK_RUN_LAST | GTK_RUN_ACTION,
                                   GTK_TYPE_NONE, 1,
  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,

 ** Gael Le Mignot, Ing2 EPITA, Coder of The Kilobug Team **
Home Mail : kilobug freesurf fr              Work Mail : le-mig_g epita fr
GSM       : (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]