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

Side by Side Diff: chrome/browser/gtk/menu_bar_helper.cc

Issue 197055: Include fixes for gcc >= 4.3 (Closed)
Patch Set: Created 11 years, 3 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 unified diff | Download patch
« no previous file with comments | « no previous file | net/base/dns_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/gtk/menu_bar_helper.h" 5 #include "chrome/browser/gtk/menu_bar_helper.h"
6 6
7 #include <algorithm>
8
7 #include "base/logging.h" 9 #include "base/logging.h"
8 #include "chrome/common/gtk_util.h" 10 #include "chrome/common/gtk_util.h"
9 11
10 namespace { 12 namespace {
11 13
12 // Recursively find all the GtkMenus that are attached to menu item |child| 14 // Recursively find all the GtkMenus that are attached to menu item |child|
13 // and add them to |data|, which is a vector of GtkWidgets. 15 // and add them to |data|, which is a vector of GtkWidgets.
14 void PopulateSubmenus(GtkWidget* child, gpointer data) { 16 void PopulateSubmenus(GtkWidget* child, gpointer data) {
15 std::vector<GtkWidget*>* submenus = 17 std::vector<GtkWidget*>* submenus =
16 static_cast<std::vector<GtkWidget*>*>(data); 18 static_cast<std::vector<GtkWidget*>*>(data);
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 break; 174 break;
173 } 175 }
174 default: 176 default:
175 return; 177 return;
176 } 178 }
177 179
178 // This signal doesn't have a return value; we have to manually stop its 180 // This signal doesn't have a return value; we have to manually stop its
179 // propagation. 181 // propagation.
180 g_signal_stop_emission_by_name(menu, "move-current"); 182 g_signal_stop_emission_by_name(menu, "move-current");
181 } 183 }
OLDNEW
« no previous file with comments | « no previous file | net/base/dns_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698