summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-03-01 14:25:23 +0300
committermonsta <[email protected]>2016-03-01 14:25:23 +0300
commitb7c2c34a6662ee043be997c54ff1c85318818c2d (patch)
tree7d1456a201e79f531cebf6a7ff12f9073c0fe0ab
parent8110ba34b9b447353e1e344ea8fa92c30fe9bd78 (diff)
downloadmate-system-monitor-b7c2c34a6662ee043be997c54ff1c85318818c2d.tar.bz2
mate-system-monitor-b7c2c34a6662ee043be997c54ff1c85318818c2d.tar.xz
process table: don't clear multiple rows selection on right click
from https://git.gnome.org/browse/gnome-system-monitor/commit/?id=70dd0dc7408f004bdeffbabaa0a874295ff9120f
-rw-r--r--src/callbacks.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/callbacks.cpp b/src/callbacks.cpp
index 87e6bdf..18a9823 100644
--- a/src/callbacks.cpp
+++ b/src/callbacks.cpp
@@ -356,8 +356,10 @@ cb_tree_button_pressed (GtkWidget *widget,
{
ProcData * const procdata = static_cast<ProcData*>(data);
- if (event->button == 3 && event->type == GDK_BUTTON_PRESS)
+ if (event->button == 3 && event->type == GDK_BUTTON_PRESS) {
do_popup_menu (procdata, event);
+ return TRUE;
+ }
return FALSE;
}