Project

General

Profile

audacious-3.2.4-scroll_with_left_mouse_button.patch

Artem S. Tashkinov, October 04, 2012 17:12

View differences:

audacious-plugins-3.2.4-sane/src/gtkui/ui_gtk.c 2012-10-04 15:03:44.324883734 +0000
297 297
static gboolean ui_slider_button_press_cb(GtkWidget * widget, GdkEventButton * event, gpointer user_data)
298 298
{
299 299
    slider_is_moving = TRUE;
300

  
301
    /* HACK: clicking with the left mouse button moves the slider
302
       to the location of the click. */
303
    if (event->button == 1)
304
        event->button = 2;
305

  
300 306
    return FALSE;
301 307
}
302 308

  
303 309
static gboolean ui_slider_button_release_cb(GtkWidget * widget, GdkEventButton * event, gpointer user_data)
304 310
{
311
    /* HACK: see ui_slider_button_press_cb */
312
    if (event->button == 1)
313
        event->button = 2;
314

  
305 315
    slider_is_moving = FALSE;
316

  
306 317
    return FALSE;
307 318
}
308 319

  
......
652 663
static void ui_hooks_associate(void)
653 664
{
654 665
    hook_associate ("title change", (HookFunction) title_change_cb, NULL);
666
    hook_associate ("playback seek", (HookFunction) time_counter_cb, NULL);
655 667
    hook_associate ("playback begin", (HookFunction) ui_playback_begin, NULL);
656 668
    hook_associate ("playback ready", (HookFunction) ui_playback_ready, NULL);
657 669
    hook_associate ("playback pause", (HookFunction) pause_cb, NULL);
......
669 681
static void ui_hooks_disassociate(void)
670 682
{
671 683
    hook_dissociate ("title change", (HookFunction) title_change_cb);
684
    hook_dissociate ("playback seek", (HookFunction) time_counter_cb);
672 685
    hook_dissociate ("playback begin", (HookFunction) ui_playback_begin);
673 686
    hook_dissociate ("playback ready", (HookFunction) ui_playback_ready);
674 687
    hook_dissociate ("playback pause", (HookFunction) pause_cb);