summaryrefslogtreecommitdiffstats
path: root/chrome/common/gtk_util.h
diff options
context:
space:
mode:
authormattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-11 00:21:57 +0000
committermattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-11 00:21:57 +0000
commit54211c3efb9d4a9b47f3369bdc9f95827e39465e (patch)
tree1dc9c9f18e3b7a369651ab082c2fee9b323621d9 /chrome/common/gtk_util.h
parentb2b462c79bd4365c76ec90dd74f15ea4e8252638 (diff)
downloadchromium_src-54211c3efb9d4a9b47f3369bdc9f95827e39465e.zip
chromium_src-54211c3efb9d4a9b47f3369bdc9f95827e39465e.tar.gz
chromium_src-54211c3efb9d4a9b47f3369bdc9f95827e39465e.tar.bz2
Add helper for creating table of labeled controls.
BUG=none Review URL: http://codereview.chromium.org/118489 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18120 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/gtk_util.h')
-rw-r--r--chrome/common/gtk_util.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/common/gtk_util.h b/chrome/common/gtk_util.h
index 52629d3..92ea54e 100644
--- a/chrome/common/gtk_util.h
+++ b/chrome/common/gtk_util.h
@@ -44,6 +44,14 @@ const int kContentAreaBorder = 12;
// Spacing between groups of controls.
const int kContentAreaSpacing = 18;
+// Create a table of labeled controls, using proper spacing and alignment.
+// Arguments should be pairs of const char*, GtkWidget*, concluding with a NULL.
+// For example:
+// controls = CreateLabeledControlsGroup("Name:", title_entry_,
+// "Folder:", folder_combobox_,
+// NULL);
+GtkWidget* CreateLabeledControlsGroup(const char* text, ...);
+
// Create a GtkBin with |child| as its child widget. This bin will paint a
// border of color |color| with the sizes specified in pixels.
GtkWidget* CreateGtkBorderBin(GtkWidget* child, const GdkColor* color,