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

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

Issue 551034: Simplify the gtk AutoFill dialog and bring it more in line with the mocks.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 11 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
Index: chrome/browser/gtk/bookmark_manager_gtk.cc
===================================================================
--- chrome/browser/gtk/bookmark_manager_gtk.cc (revision 36381)
+++ chrome/browser/gtk/bookmark_manager_gtk.cc (working copy)
@@ -607,13 +607,11 @@
// Otherwise, just set a default size (GTK will override this if it's not
// large enough to hold the window's contents).
gtk_widget_realize(window_);
- int width = 1, height = 1;
- gtk_util::GetWidgetSizeFromResources(
- window_,
+ gtk_util::SetWindowSizeFromResources(
+ GTK_WINDOW(window_),
IDS_BOOKMARK_MANAGER_DIALOG_WIDTH_CHARS,
IDS_BOOKMARK_MANAGER_DIALOG_HEIGHT_LINES,
- &width, &height);
- gtk_window_set_default_size(GTK_WINDOW(window_), width, height);
+ true);
}
void BookmarkManagerGtk::ResetOrganizeMenu(bool left) {
« no previous file with comments | « chrome/browser/autofill/autofill_dialog_gtk.cc ('k') | chrome/browser/gtk/clear_browsing_data_dialog_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698