Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6598)

Unified Diff: chrome/browser/gtk/task_manager_gtk.h

Issue 149363: Connect the ctrl-w accelerator to the task manager dialog, and close the wind... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/gtk/task_manager_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/task_manager_gtk.h
===================================================================
--- chrome/browser/gtk/task_manager_gtk.h (revision 20196)
+++ chrome/browser/gtk/task_manager_gtk.h (working copy)
@@ -33,6 +33,9 @@
// Initializes the task manager dialog.
void Init();
+ // Connects the ctrl-w accelerator to the dialog.
+ void ConnectAccelerators();
+
// Sets up the treeview widget.
void CreateTaskManagerTreeview();
@@ -71,6 +74,13 @@
static gboolean OnButtonReleaseEvent(GtkWidget* widget, GdkEventButton* event,
TaskManagerGtk* task_manager);
+ // Handles an accelerator being pressed.
+ static gboolean OnGtkAccelerator(GtkAccelGroup* accel_group,
+ GObject* acceleratable,
+ guint keyval,
+ GdkModifierType modifier,
+ TaskManagerGtk* task_manager);
+
// The task manager.
TaskManager* task_manager_;
« no previous file with comments | « no previous file | chrome/browser/gtk/task_manager_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698