added GimpController::get_event_blurb() which returns the strings that
2004-06-16 Michael Natterer <mitch@gimp.org> * libgimpwidgets/gimpcontroller.[ch]: added GimpController::get_event_blurb() which returns the strings that were returned by get_event_name(). The latter returns untranslatable event identifiers now. * app/widgets/gimpcontrollerwheel.c * modules/controller_linux_input.c: changed accordingly. * app/widgets/gimpcontrollerinfo.c * app/widgets/gimpcontrollers.c: changed the event mapping from event-id -> action-name to event-name -> action-name. * etc/controllerrc: changed accordingly (finally readable now).
This commit is contained in:

committed by
Michael Natterer

parent
ba2e6c675f
commit
569af0ac93
@ -228,6 +228,19 @@ gimp_controller_get_event_name (GimpController *controller,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
const gchar *
|
||||
gimp_controller_get_event_blurb (GimpController *controller,
|
||||
gint event_id)
|
||||
{
|
||||
g_return_val_if_fail (GIMP_IS_CONTROLLER (controller), NULL);
|
||||
|
||||
if (GIMP_CONTROLLER_GET_CLASS (controller)->get_event_blurb)
|
||||
return GIMP_CONTROLLER_GET_CLASS (controller)->get_event_blurb (controller,
|
||||
event_id);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void
|
||||
gimp_controller_set_enabled (GimpController *controller,
|
||||
gboolean enabled)
|
||||
|
Reference in New Issue
Block a user