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

Unified Diff: chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.h

Issue 7312014: GTK: Hide the "Other Bookmarks" button when there are no bookmarks there. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 9 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/ui/gtk/bookmarks/bookmark_bar_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.h
diff --git a/chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.h b/chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.h
index 208a8ed553ef093719c26e6ce663fe5781a4baa7..8ae89bde2a978ea31c188741a92ba1f12b966238 100644
--- a/chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.h
+++ b/chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.h
@@ -130,6 +130,10 @@ class BookmarkBarGtk : public ui::AnimationDelegate,
// Sets the visibility of the overflow chevron.
void SetChevronState();
+ // Shows or hides the other bookmarks button depending on whether there are
+ // bookmarks in it.
+ void UpdateOtherBookmarksVisibility();
+
// Helper function which destroys all the bookmark buttons in the GtkToolbar.
void RemoveAllBookmarkButtons();
@@ -341,6 +345,10 @@ class BookmarkBarGtk : public ui::AnimationDelegate,
// bar.
GtkWidget* overflow_button_;
+ // A separator between the main bookmark bar area and
+ // |other_bookmarks_button_|.
+ GtkWidget* other_bookmarks_separator_;
+
// The other bookmarks button.
GtkWidget* other_bookmarks_button_;
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/bookmarks/bookmark_bar_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698