diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-17 21:31:01 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-17 21:31:01 +0000 |
commit | 2a8e81f9aae35d3727e95f2230ad317ff79dd463 (patch) | |
tree | 09d943e9b32858b7cb956f2b649acdce42156705 /chrome/browser/gtk/task_manager_gtk.cc | |
parent | 31d9ec81fd3e22b55568276b89447a1330494533 (diff) | |
download | chromium_src-2a8e81f9aae35d3727e95f2230ad317ff79dd463.zip chromium_src-2a8e81f9aae35d3727e95f2230ad317ff79dd463.tar.gz chromium_src-2a8e81f9aae35d3727e95f2230ad317ff79dd463.tar.bz2 |
Do not block all task manager tree view mouse release events.
BUG=16974
TEST=you can resize rows of the task manager
Review URL: http://codereview.chromium.org/155670
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21006 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/task_manager_gtk.cc')
-rw-r--r-- | chrome/browser/gtk/task_manager_gtk.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/chrome/browser/gtk/task_manager_gtk.cc b/chrome/browser/gtk/task_manager_gtk.cc index 863611f..6ae41af 100644 --- a/chrome/browser/gtk/task_manager_gtk.cc +++ b/chrome/browser/gtk/task_manager_gtk.cc @@ -342,8 +342,6 @@ void TaskManagerGtk::Init() { GTK_TREE_VIEW_GRID_LINES_HORIZONTAL); g_signal_connect(G_OBJECT(treeview_), "button-press-event", G_CALLBACK(OnButtonPressEvent), this); - g_signal_connect(G_OBJECT(treeview_), "button-release-event", - G_CALLBACK(OnButtonReleaseEvent), this); gtk_widget_add_events(treeview_, GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK); @@ -555,8 +553,8 @@ gboolean TaskManagerGtk::OnButtonReleaseEvent(GtkWidget* widget, GdkEventButton* event, TaskManagerGtk* task_manager) { // We don't want to open the context menu in the treeview. - if (widget == task_manager->treeview_) - return TRUE; + if (gtk_util::WidgetContainsCursor(task_manager->treeview_)) + return FALSE; if (event->button == 3) task_manager->ShowContextMenu(); |