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

Unified Diff: chrome/common/gtk_util.h

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
« no previous file with comments | « chrome/browser/gtk/options/url_picker_dialog_gtk.cc ('k') | chrome/common/gtk_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/gtk_util.h
===================================================================
--- chrome/common/gtk_util.h (revision 36381)
+++ chrome/common/gtk_util.h (working copy)
@@ -82,12 +82,14 @@
void GetWidgetSizeFromCharacters(GtkWidget* widget, double width_chars,
double height_lines, int* width, int* height);
-// As above, but a convenience method for configuring dialog width.
+// As above, but a convenience method for configuring dialog size.
+// |width_id| and |height_id| are resource IDs for the size. If either of these
+// are set to -1, the respective size will be set to the widget default.
// |resizable| also controls whether the dialog will be resizable
// (this info is also necessary for getting the width-setting code
// right).
-void SetWindowWidthFromResources(GtkWindow* window, int resource_id,
- bool resizable);
+void SetWindowSizeFromResources(GtkWindow* window,
+ int width_id, int height_id, bool resizable);
// Remove all children from this container.
void RemoveAllChildren(GtkWidget* container);
« no previous file with comments | « chrome/browser/gtk/options/url_picker_dialog_gtk.cc ('k') | chrome/common/gtk_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698