Commit dd6c9d18 authored by tfarina@chromium.org's avatar tfarina@chromium.org

gtk: Add keyboard accelerator to kill a process/plug-in in Task Manager.

BUG=7229
TEST=1- Launch Chrome Task Manager and select any process/puglin in the window.
     2- Hit Alt E(/e) to kill that process.

R=evan@chromium.org

Review URL: http://codereview.chromium.org/7582025

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95751 0039d316-1c4b-4281-b951-d872f2087c98
parent 54661a51
......@@ -3547,7 +3547,7 @@ are declared in build/common.gypi.
<!-- Task Manager Window -->
<message name="IDS_TASK_MANAGER_KILL" desc="The caption of the Task Manager kill button">
End process
&amp;End process
</message>
<message name="IDS_TASK_MANAGER_PURGE_MEMORY" desc="The caption of the Task Manager purge memory button">
Purge memory
......
......@@ -366,8 +366,8 @@ void TaskManagerGtk::OnItemsChanged(int start, int length) {
SetRowDataFromModel(i, &iter);
if (i != start + length - 1) {
if (!gtk_tree_model_iter_next(GTK_TREE_MODEL(process_list_), &iter)) {
NOTREACHED() << "Can't get next GtkTreeIter object from process_list_ \
iterator at position " << i;
NOTREACHED() << "Can't get next GtkTreeIter object from process_list_ "
"iterator at position " << i;
}
}
}
......@@ -476,7 +476,8 @@ void TaskManagerGtk::Init() {
}
gtk_dialog_add_button(GTK_DIALOG(dialog_),
l10n_util::GetStringUTF8(IDS_TASK_MANAGER_KILL).c_str(),
gfx::ConvertAcceleratorsFromWindowsStyle(
l10n_util::GetStringUTF8(IDS_TASK_MANAGER_KILL)).c_str(),
kTaskManagerResponseKill);
// The response button should not be sensitive when the dialog is first opened
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment