diff options
author | Pablo Barciela <[email protected]> | 2018-05-31 12:13:51 +0200 |
---|---|---|
committer | Pablo Barciela <[email protected]> | 2018-06-01 09:38:04 +0200 |
commit | 79f71d7a252d3652f1682273e39363128fd3e3e1 (patch) | |
tree | dc094a297022c03b0fd9b6a51671fd84223d67a4 | |
parent | ea60fd353d546c8796b2325c610fe2f1272dd43d (diff) | |
download | pluma-79f71d7a252d3652f1682273e39363128fd3e3e1.tar.bz2 pluma-79f71d7a252d3652f1682273e39363128fd3e3e1.tar.xz |
pluma-notebook: avoid new file with double click in vertical scrollbar
Fixes https://github.com/mate-desktop/pluma/issues/333
-rw-r--r-- | pluma/pluma-notebook.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pluma/pluma-notebook.c b/pluma/pluma-notebook.c index 0efca995..6e16adbd 100644 --- a/pluma/pluma-notebook.c +++ b/pluma/pluma-notebook.c @@ -624,8 +624,6 @@ button_press_cb (PlumaNotebook *notebook, (event->type == GDK_BUTTON_PRESS) && (tab_clicked >= 0)) { - leftdown = TRUE; - notebook->priv->x_start = event->x_root; notebook->priv->y_start = event->y_root; @@ -674,11 +672,13 @@ button_press_cb (PlumaNotebook *notebook, else if (event->type == GDK_2BUTTON_PRESS) { if ((tab1click != gtk_notebook_get_current_page (GTK_NOTEBOOK (notebook))) || - (tab_clicked >= 0) || ((tab_clicked == -1) && (!newfile))) + (tab_clicked >= 0) || ((tab_clicked == -1) && (!newfile)) || (!leftdown)) return TRUE; newfile = FALSE; } + + leftdown = TRUE; } return FALSE; |