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:
Michael Natterer
2004-06-16 11:53:37 +00:00
committed by Michael Natterer
parent ba2e6c675f
commit 569af0ac93
8 changed files with 176 additions and 84 deletions

View File

@ -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)