| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/gtk/task_manager_gtk.h" | 5 #include "chrome/browser/gtk/task_manager_gtk.h" |
| 6 | 6 |
| 7 #include <gdk/gdkkeysyms.h> | 7 #include <gdk/gdkkeysyms.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <set> | 10 #include <set> |
| 11 #include <utility> | 11 #include <utility> |
| (...skipping 938 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 950 guint keyval, | 950 guint keyval, |
| 951 GdkModifierType modifier) { | 951 GdkModifierType modifier) { |
| 952 if (keyval == GDK_w && modifier == GDK_CONTROL_MASK) { | 952 if (keyval == GDK_w && modifier == GDK_CONTROL_MASK) { |
| 953 // The GTK_RESPONSE_DELETE_EVENT response must be sent before the widget | 953 // The GTK_RESPONSE_DELETE_EVENT response must be sent before the widget |
| 954 // is destroyed. The deleted object will receive gtk signals otherwise. | 954 // is destroyed. The deleted object will receive gtk signals otherwise. |
| 955 gtk_dialog_response(GTK_DIALOG(dialog_), GTK_RESPONSE_DELETE_EVENT); | 955 gtk_dialog_response(GTK_DIALOG(dialog_), GTK_RESPONSE_DELETE_EVENT); |
| 956 } | 956 } |
| 957 | 957 |
| 958 return TRUE; | 958 return TRUE; |
| 959 } | 959 } |
| OLD | NEW |