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

Unified Diff: views/window/window_gtk.cc

Issue 197063: Implements WindowGtk::CloseAllSecondaryWindows. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « views/window/window.cc ('k') | views/window/window_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/window/window_gtk.cc
===================================================================
--- views/window/window_gtk.cc (revision 25660)
+++ views/window/window_gtk.cc (working copy)
@@ -90,7 +90,11 @@
// static
void Window::CloseAllSecondaryWindows() {
- NOTIMPLEMENTED();
+ for (GList* window = gtk_window_list_toplevels(); window;
+ window = g_list_next(window)) {
+ Window::CloseSecondaryWidget(
+ WidgetGtk::GetViewForNative(GTK_WIDGET(window->data)));
+ }
}
gfx::Rect WindowGtk::GetBounds() const {
« no previous file with comments | « views/window/window.cc ('k') | views/window/window_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698