diff options
Diffstat (limited to 'plugins/gtkui/ddbseekbar.c')
-rw-r--r-- | plugins/gtkui/ddbseekbar.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/plugins/gtkui/ddbseekbar.c b/plugins/gtkui/ddbseekbar.c index 6f0d01fe..635485c3 100644 --- a/plugins/gtkui/ddbseekbar.c +++ b/plugins/gtkui/ddbseekbar.c @@ -148,26 +148,6 @@ static gboolean ddb_seekbar_real_motion_notify_event (GtkWidget* base, GdkEventM _tmp0_ = *event; _tmp1_ = on_seekbar_motion_notify_event ((GtkWidget*) self, &_tmp0_); result = _tmp1_; - - DB_playItem_t *trk = deadbeef->streamer_get_playing_track (); - if (trk) { - GtkAllocation a; - gtk_widget_get_allocation (base, &a); - float time = (event->x - a.x) * deadbeef->pl_get_item_duration (trk) / (a.width); - if (time < 0) { - time = 0; - } - deadbeef->pl_item_unref (trk); - char s[1000]; - int hr = time/360; - int mn = (time-hr*360)/60; - int sc = time-hr*360-mn*60; - snprintf (s, sizeof (s), "%02d:%02d:%02d", hr, mn, sc); - - printf ("set tooltip text %s\n", s); - gtk_widget_set_tooltip_text (base, s); - gtk_widget_trigger_tooltip_query (base); - } return result; } |