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

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

Issue 155672: Set window icon on options dialog, bookmark manager.... (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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/gtk/browser_window_gtk.h » ('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/bookmark_manager_gtk.h" 5 #include "chrome/browser/gtk/bookmark_manager_gtk.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "app/l10n_util.h" 9 #include "app/l10n_util.h"
10 #include "app/resource_bundle.h" 10 #include "app/resource_bundle.h"
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 295
296 BookmarkManagerGtk::BookmarkManagerGtk(Profile* profile) 296 BookmarkManagerGtk::BookmarkManagerGtk(Profile* profile)
297 : profile_(profile), 297 : profile_(profile),
298 model_(profile->GetBookmarkModel()), 298 model_(profile->GetBookmarkModel()),
299 organize_is_for_left_(true), 299 organize_is_for_left_(true),
300 search_factory_(this), 300 search_factory_(this),
301 select_file_dialog_(SelectFileDialog::Create(this)), 301 select_file_dialog_(SelectFileDialog::Create(this)),
302 delaying_mousedown_(false), 302 delaying_mousedown_(false),
303 sending_delayed_mousedown_(false) { 303 sending_delayed_mousedown_(false) {
304 InitWidgets(); 304 InitWidgets();
305 gtk_util::SetWindowIcon(GTK_WINDOW(window_));
305 g_signal_connect(window_, "destroy", 306 g_signal_connect(window_, "destroy",
306 G_CALLBACK(OnWindowDestroy), this); 307 G_CALLBACK(OnWindowDestroy), this);
307 308
308 model_->AddObserver(this); 309 model_->AddObserver(this);
309 if (model_->IsLoaded()) 310 if (model_->IsLoaded())
310 Loaded(model_); 311 Loaded(model_);
311 312
312 gtk_widget_show_all(window_); 313 gtk_widget_show_all(window_);
313 } 314 }
314 315
(...skipping 895 matching lines...) Expand 10 before | Expand all | Expand 10 after
1210 } else if (id == IDS_BOOKMARK_MANAGER_EXPORT_MENU) { 1211 } else if (id == IDS_BOOKMARK_MANAGER_EXPORT_MENU) {
1211 if (g_browser_process->io_thread()) { 1212 if (g_browser_process->io_thread()) {
1212 bookmark_html_writer::WriteBookmarks( 1213 bookmark_html_writer::WriteBookmarks(
1213 g_browser_process->io_thread()->message_loop(), model_, 1214 g_browser_process->io_thread()->message_loop(), model_,
1214 path.ToWStringHack()); 1215 path.ToWStringHack());
1215 } 1216 }
1216 } else { 1217 } else {
1217 NOTREACHED(); 1218 NOTREACHED();
1218 } 1219 }
1219 } 1220 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/gtk/browser_window_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698