Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:alphakok
chromium
chromium-fix-toolbar-icon-size.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File chromium-fix-toolbar-icon-size.patch of Package chromium
--- chromium/src/chrome/browser/gtk/browser_toolbar_gtk.cc +++ chromium/src/chrome/browser/gtk/browser_toolbar_gtk.cc @@ -60,7 +60,9 @@ const int kToolbarLeftAreaPadding = 4; // Height of the toolbar in pixels (not counting padding). -const int kToolbarHeight = 29; +const int kClassicToolbarHeight = 29; +const int kMeegoToolbarHeight = 37; +int kToolbarHeight = kMeegoToolbarHeight; // Padding within the toolbar above the buttons and location bar. const int kTopBottomPadding = 3; @@ -146,7 +148,12 @@ // Make the event box transparent so themes can use transparent toolbar // backgrounds. if (!theme_provider_->UseGtkTheme()) + { gtk_event_box_set_visible_window(GTK_EVENT_BOX(event_box_), FALSE); + kToolbarHeight = kClassicToolbarHeight; + } + else + kToolbarHeight = kMeegoToolbarHeight; toolbar_ = gtk_hbox_new(FALSE, 0); alignment_ = gtk_alignment_new(0.0, 0.0, 1.0, 1.0); @@ -366,8 +373,12 @@ NotifyPrefChanged(Details<std::string>(details).ptr()); } else if (type == NotificationType::BROWSER_THEME_CHANGED) { // Update the spacing around the menu buttons + kToolbarHeight = theme_provider_->UseGtkTheme() ? kMeegoToolbarHeight:kClassicToolbarHeight; + gtk_widget_set_size_request(toolbar_, -1, ShouldOnlyShowLocation() ? + kToolbarHeightLocationBarOnly : kToolbarHeight); + bool use_gtk = theme_provider_->UseGtkTheme(); - int border = use_gtk ? 0 : 2; + int border = 0; gtk_container_set_border_width( GTK_CONTAINER(wrench_menu_button_->widget()), border);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor