diff options
author | Andrea Cimitan <andrea.cimitan@canonical.com> | 2010-11-17 12:11:56 +0100 |
---|---|---|
committer | Andrea Cimitan <andrea.cimitan@canonical.com> | 2010-11-17 12:11:56 +0100 |
commit | 7889e51f4346844c63aa8c11d127134d4ce292e9 (patch) | |
tree | e6c21ed6d810a3fddeef83ee69f09480fa76167d | |
parent | ca946b13d56c7df56d30c8824baf8e943b07dd3e (diff) | |
download | ayatana-indicator-sound-7889e51f4346844c63aa8c11d127134d4ce292e9.tar.gz ayatana-indicator-sound-7889e51f4346844c63aa8c11d127134d4ce292e9.tar.bz2 ayatana-indicator-sound-7889e51f4346844c63aa8c11d127134d4ce292e9.zip |
Added printf for debugging
-rw-r--r-- | src/transport-widget.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/transport-widget.c b/src/transport-widget.c index 8b42bd0..f8aca57 100644 --- a/src/transport-widget.c +++ b/src/transport-widget.c @@ -329,7 +329,7 @@ transport_widget_react_to_key_press_event ( TransportWidget* transport, TransportWidgetPrivate * priv = TRANSPORT_WIDGET_GET_PRIVATE ( transport ); priv->current_command = transport_event; priv->key_event = transport_event; - + printf("transport_widget_react_to_key_press_event: before drawing\n"); cairo_t *cr; cr = gdk_cairo_create ( GTK_WIDGET(transport)->window ); draw ( GTK_WIDGET(transport), cr ); @@ -352,7 +352,7 @@ transport_widget_react_to_key_release_event ( TransportWidget* transport, &value, 0 ); } - + printf("transport_widget_react_to_key_release_event: before transport_widget_react_to_key_release_event\n"); transport_widget_react_to_button_release ( transport, transport_event ); } @@ -397,14 +397,16 @@ transport_widget_react_to_button_release ( TransportWidget* button, TransportWidgetPrivate* priv = TRANSPORT_WIDGET_GET_PRIVATE(button); if(priv->current_command == TRANSPORT_NADA){ //g_debug("returning from the playbutton release because my previous command was nada"); - + printf("transport_widget_react_to_button_release: inside if(priv->current_command == TRANSPORT_NADA)\n"); /* Update the drawing in any case, should not hurt :) */ // return; } else if(priv->current_command != TRANSPORT_NADA && command != TRANSPORT_NADA){ priv->current_command = command; + printf("transport_widget_react_to_button_release: inside if(priv->current_command != TRANSPORT_NADA && command != TRANSPORT_NADA)\n"); } + printf("transport_widget_react_to_button_release: before drawing\n"); cairo_t *cr; cr = gdk_cairo_create ( GTK_WIDGET(button)->window ); |