aboutsummaryrefslogtreecommitdiff
path: root/src/play-button.c
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-08-02 19:13:58 +0100
committerConor Curran <conor.curran@canonical.com>2010-08-02 19:13:58 +0100
commit9f7e55264deaaad68280ae33daad95fca604df8b (patch)
tree60a7fbb7bb9eee411eb0ce60a72a191376cc8108 /src/play-button.c
parent496ac14d4e3b4e5b9284083cf4ce277cfe5ef343 (diff)
downloadayatana-indicator-sound-9f7e55264deaaad68280ae33daad95fca604df8b.tar.gz
ayatana-indicator-sound-9f7e55264deaaad68280ae33daad95fca604df8b.tar.bz2
ayatana-indicator-sound-9f7e55264deaaad68280ae33daad95fca604df8b.zip
replaced now needs tweaking
Diffstat (limited to 'src/play-button.c')
-rw-r--r--src/play-button.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/play-button.c b/src/play-button.c
index e4382c1..94e6f98 100644
--- a/src/play-button.c
+++ b/src/play-button.c
@@ -454,29 +454,8 @@ void
play_button_toggle_play_pause(GtkWidget* button, PlayButtonState update)
{
PlayButtonPrivate* priv = PLAY_BUTTON_GET_PRIVATE(button);
- gboolean changed = priv->current_state != update;
priv->current_state = update;
g_debug("PlayButton::toggle play state : %i", priv->current_state);
-
- if(changed == TRUE){
- g_debug("Toggle play pause - changed of state detected - redraw button");
- cairo_t *cr;
-
- cr = gdk_cairo_create (button->window);
-
- GList* list = g_hash_table_lookup(priv->command_coordinates,
- GINT_TO_POINTER(TRANSPORT_PLAY_PAUSE));
-
- cairo_rectangle(cr,
- GPOINTER_TO_INT(g_list_nth_data(list, 0)),
- GPOINTER_TO_INT(g_list_nth_data(list, 1)),
- GPOINTER_TO_INT(g_list_nth_data(list, 2)),
- GPOINTER_TO_INT(g_list_nth_data(list, 3)));
-
- cairo_clip(cr);
- draw (button, cr);
- cairo_destroy (cr);
- }
}