summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2018-04-23 21:48:52 +0200
committerPablo Barciela <[email protected]>2018-04-23 21:48:52 +0200
commita28da51ba62baded1ea23e6ae9f4c907d443b242 (patch)
tree54002b5d0033bdcb22e9bcc79cd6cf33de5bf433
parent7c692bd51aa1b5cf670625936c28fed187184c4c (diff)
downloadpluma-a28da51ba62baded1ea23e6ae9f4c907d443b242.tar.bz2
pluma-a28da51ba62baded1ea23e6ae9f4c907d443b242.tar.xz
pluma-view.c: Fix: GtkCheckMenuItem "Display line numbers" improved
-rw-r--r--pluma/pluma-view.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/pluma/pluma-view.c b/pluma/pluma-view.c
index 4ebc0936..5cc92512 100644
--- a/pluma/pluma-view.c
+++ b/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;