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

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

Issue 165220: Add ctrl+w accelerator to close bookmark manager for linux (Closed)
Patch Set: fix ident Created 11 years, 4 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/bookmark_manager_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/bookmark_manager_gtk.h
diff --git a/chrome/browser/gtk/bookmark_manager_gtk.h b/chrome/browser/gtk/bookmark_manager_gtk.h
index 261a05cfc0d343ad0d4107f570acbac2dd7a90cd..51745c6a6abc30317031556cc1d612a8c46bef27 100644
--- a/chrome/browser/gtk/bookmark_manager_gtk.h
+++ b/chrome/browser/gtk/bookmark_manager_gtk.h
@@ -79,6 +79,9 @@ class BookmarkManagerGtk : public BookmarkModelObserver,
// Set |window_|'s initial size, using its previous size if that was saved.
void SetInitialWindowSize();
+ // Connects the ctrl-w accelerator to the window.
+ void ConnectAccelerators();
+
// If |left|, then make the organize menu refer to that which is selected in
// the left pane, otherwise use the right pane selection.
void ResetOrganizeMenu(bool left);
@@ -275,6 +278,13 @@ class BookmarkManagerGtk : public BookmarkModelObserver,
}
gboolean OnWindowConfigured(GtkWidget* window, GdkEventConfigure* event);
+ // Handles an accelerator being pressed.
+ static gboolean OnGtkAccelerator(GtkAccelGroup* accel_group,
+ GObject* acceleratable,
+ guint keyval,
+ GdkModifierType modifier,
+ BookmarkManagerGtk* bookmark_manager);
+
GtkWidget* window_;
GtkWidget* search_entry_;
Profile* profile_;
« no previous file with comments | « no previous file | chrome/browser/gtk/bookmark_manager_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698