Skip to content

Commit

Permalink
gtkui: Remove hack that made the left mouse button behave like the mi…
Browse files Browse the repository at this point in the history
…ddle button as it breaks the intended behavior of GtkSlider in GTK+ 3.5.x. Closes: #138.
  • Loading branch information
jlindgren90 committed Jun 28, 2012
1 parent 32b9459 commit 1957913
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/gtkui/ui_gtk.c
Original file line number Diff line number Diff line change
Expand Up @@ -309,23 +309,12 @@ static gboolean ui_slider_change_value_cb(GtkRange * range, GtkScrollType scroll
static gboolean ui_slider_button_press_cb(GtkWidget * widget, GdkEventButton * event, gpointer user_data)
{
slider_is_moving = TRUE;

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

return FALSE;
}

static gboolean ui_slider_button_release_cb(GtkWidget * widget, GdkEventButton * event, gpointer user_data)
{
/* HACK: see ui_slider_button_press_cb */
if (event->button == 1)
event->button = 2;

slider_is_moving = FALSE;

return FALSE;
}

Expand Down

0 comments on commit 1957913

Please sign in to comment.