Commit 98e5e693 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer
Browse files

more debugging output.

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

	* app/widgets/gimpcontrollerinfo.c (gimp_controller_info_event):
	more debugging output.
parent 5180d547
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
......
......@@ -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");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment