diff options
author | mdm@chromium.org <mdm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-02 18:59:04 +0000 |
---|---|---|
committer | mdm@chromium.org <mdm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-02 18:59:04 +0000 |
commit | 2a8ae3d8d34d9848688fa13dcf14e3c0325614a1 (patch) | |
tree | a44e48e0dc373471ca591d304f4ed4b8869f5c59 /chrome/common/gtk_util.h | |
parent | 27ac03eefb96c503b417a1a3e545eb3499b1f9e5 (diff) | |
download | chromium_src-2a8ae3d8d34d9848688fa13dcf14e3c0325614a1.zip chromium_src-2a8ae3d8d34d9848688fa13dcf14e3c0325614a1.tar.gz chromium_src-2a8ae3d8d34d9848688fa13dcf14e3c0325614a1.tar.bz2 |
Set the initial sizes of several dialogs based on font information.
BUG=19622
TEST=none
Review URL: http://codereview.chromium.org/180031
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25214 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/gtk_util.h')
-rw-r--r-- | chrome/common/gtk_util.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/common/gtk_util.h b/chrome/common/gtk_util.h index 3811d74..c12fe98 100644 --- a/chrome/common/gtk_util.h +++ b/chrome/common/gtk_util.h @@ -71,7 +71,9 @@ GtkWidget* CreateGtkBorderBin(GtkWidget* child, const GdkColor* color, // Calculates the size of given widget based on the size specified in // number of characters/lines (in locale specific resource file) and // font metrics. -bool GetWidgetSizeFromResources(GtkWidget* widget, int width_chars, +// NOTE: Make sure to realize |widget| before using this method, or a +// default font size will be used instead of the actual font size. +void GetWidgetSizeFromResources(GtkWidget* widget, int width_chars, int height_lines, int* width, int* height); // Remove all children from this container. |