GNOME Bugzilla – Bug 531274
gtk_widget_add_accelerator should work for actionsignals with parameters
Last modified: 2018-02-10 03:34:16 UTC
I'd like to add accelerators for GtkComboBox::move-active or GtkRange::move-slider Therefore I would need to specify extra parameters for the signal handler to gtk_widget_add_accelerator(). There docs right now don't tell that the mechanism works only for parameter-free signals (like GtkButton::clicked). The actual problem is the underlying AccelClosure implementation in GtkWidget. It wouldn need to copy the parameters in widget_new_accel_closure and in closure_accel_activate probably use g_signal_emit_valist instead g_signal_emit. It probably needs to be done as separate function (bah, gtk_widget_add_accelerator_full). At the same time the gtk_widget_set_accel_path() function should be revised as right now this imposes even harder limmitation - it only works for the activate signal.
We're moving to gitlab! As part of this move, we are closing bugs that haven't seen activity in more than 5 years. If this issue is still imporant to you and still relevant with GTK+ 3.22 or master, please consider creating a gitlab issue for it.