more debugging output.

2004-06-19  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcontrollerinfo.c (gimp_controller_info_event):
	more debugging output.
This commit is contained in:
Michael Natterer 2004-06-19 00:05:48 +00:00 committed by Michael Natterer
parent 5180d547d0
commit 98e5e6939d
2 changed files with 23 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2004-06-19 Michael Natterer <mitch@gimp.org>
* app/widgets/gimpcontrollerinfo.c (gimp_controller_info_event):
more debugging output.
2004-06-18 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/tools/gimpscaletool.c: changed algorithm for scaling when

View File

@ -428,6 +428,24 @@ gimp_controller_info_event (GimpController *controller,
controller->name, GIMP_CONTROLLER_GET_CLASS (controller)->name,
event_name, event_blurb);
switch (event->any.type)
{
case GIMP_CONTROLLER_EVENT_TRIGGER:
g_print (" (trigger event)\n");
break;
case GIMP_CONTROLLER_EVENT_VALUE:
{
if (G_VALUE_HOLDS_DOUBLE (&event->value.value))
g_print (" (value event, value = %f)\n",
g_value_get_double (&event->value.value));
else
g_print (" (value event, unhandled type '%s')\n",
g_type_name (event->value.value.g_type));
}
break;
}
if (! info->enabled)
{
g_print (" ignoring because controller is disabled\n");