mirror of https://github.com/GNOME/gimp.git
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:
parent
5180d547d0
commit
98e5e6939d
|
@ -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>
|
2004-06-18 Bill Skaggs <weskaggs@primate.ucdavis.edu>
|
||||||
|
|
||||||
* app/tools/gimpscaletool.c: changed algorithm for scaling when
|
* 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,
|
controller->name, GIMP_CONTROLLER_GET_CLASS (controller)->name,
|
||||||
event_name, event_blurb);
|
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)
|
if (! info->enabled)
|
||||||
{
|
{
|
||||||
g_print (" ignoring because controller is disabled\n");
|
g_print (" ignoring because controller is disabled\n");
|
||||||
|
|
Loading…
Reference in New Issue