Skip to content
Permalink
Browse files

pluma-view.c: Fix: GtkCheckMenuItem "Display line numbers" improved

  • Loading branch information...
sc0w committed Apr 23, 2018
1 parent 7c692bd commit a28da51ba62baded1ea23e6ae9f4c907d443b242
Showing with 11 additions and 11 deletions.
  1. +11 −11 pluma/pluma-view.c
@@ -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)))
@@ -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;

0 comments on commit a28da51

Please sign in to comment.
You can’t perform that action at this time.