Skip to content

Commit

Permalink
pluma-view.c: Fix: GtkCheckMenuItem "Display line numbers" improved
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0w committed May 3, 2018
1 parent 2aa9598 commit d7a6b50
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions pluma/pluma-view.c
Expand Up @@ -1997,17 +1997,6 @@ show_line_numbers_menu (GtkWidget *view,
static gboolean
pluma_view_button_press_event (GtkWidget *widget, GdkEventButton *event)
{
if ((event->button == 2) || (event->button == 3))
{
if (middle_or_right_down)
{
middle_or_right_down = FALSE;
return TRUE;
}
else
middle_or_right_down = TRUE;
}

if ((event->type == GDK_BUTTON_PRESS) &&
(event->window == gtk_text_view_get_window (GTK_TEXT_VIEW (widget),
GTK_TEXT_WINDOW_LEFT)))
Expand All @@ -2021,6 +2010,17 @@ pluma_view_button_press_event (GtkWidget *widget, GdkEventButton *event)
return TRUE;
}

if ((event->button == 2) || (event->button == 3))
{
if (middle_or_right_down)
{
middle_or_right_down = FALSE;
return TRUE;
}
else
middle_or_right_down = TRUE;
}

if ((event->type == GDK_2BUTTON_PRESS) && (event->button == 1) &&
(event->window == gtk_text_view_get_window (GTK_TEXT_VIEW (widget), GTK_TEXT_WINDOW_TEXT)))
return TRUE;
Expand Down

0 comments on commit d7a6b50

Please sign in to comment.