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

Unified Diff: chrome/browser/gtk/gtk_chrome_button.cc

Issue 149355: Make bookmark bar folder buttons look active so long as the menu is open.... (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 | « chrome/browser/gtk/bookmark_menu_controller_gtk.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/gtk_chrome_button.cc
===================================================================
--- chrome/browser/gtk/gtk_chrome_button.cc (revision 20108)
+++ chrome/browser/gtk/gtk_chrome_button.cc (working copy)
@@ -39,6 +39,13 @@
GdkEventExpose* event);
static void gtk_chrome_button_class_init(GtkChromeButtonClass* button_class) {
+ gtk_rc_parse_string(
+ "style \"chrome-button\" {"
+ " GtkButton::child-displacement-x = 0"
+ " GtkButton::child-displacement-y = 0"
+ "}"
+ "widget \"*chrome-button\" style \"chrome-button\"");
+
GObjectClass* gobject_class = G_OBJECT_CLASS(button_class);
GtkWidgetClass* widget_class = reinterpret_cast<GtkWidgetClass*>(button_class);
widget_class->expose_event = gtk_chrome_button_expose;
@@ -73,6 +80,7 @@
priv->paint_state = -1;
priv->use_gtk_rendering = FALSE;
+ gtk_widget_set_name(GTK_WIDGET(button), "chrome-button");
gtk_widget_set_app_paintable(GTK_WIDGET(button), TRUE);
GTK_WIDGET_UNSET_FLAGS(button, GTK_CAN_FOCUS);
« no previous file with comments | « chrome/browser/gtk/bookmark_menu_controller_gtk.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698