diff options
author | Gerald Combs <gerald@wireshark.org> | 2012-03-08 01:24:31 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2012-03-08 01:24:31 +0000 |
commit | 52deb5a3094bc6abde5bd3f122ef6db9bd97eb5d (patch) | |
tree | 266d613a81ea2a053423c7f45193237efa41c968 /ui/gtk/dlg_utils.h | |
parent | 5b120f36d8c2eff8c2482f54a332e62fdadc50ab (diff) |
Create some standard definitions for dialog control spacing. Use them in
the comment dialog.
svn path=/trunk/; revision=41412
Diffstat (limited to 'ui/gtk/dlg_utils.h')
-rw-r--r-- | ui/gtk/dlg_utils.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/ui/gtk/dlg_utils.h b/ui/gtk/dlg_utils.h index 78e538895d..720501d1f6 100644 --- a/ui/gtk/dlg_utils.h +++ b/ui/gtk/dlg_utils.h @@ -69,6 +69,28 @@ #ifndef __DLG_UTILS_H__ #define __DLG_UTILS_H__ +#if defined(_WIN32) +/* + * We should calculate these values dynamically using MapDialogRect(). + * Unfortunately that requires passing a valid dialog HWND, which we + * don't have in many cases. + * http://msdn.microsoft.com/en-us/library/windows/desktop/aa511279.aspx#sizingspacing + */ + +#define DLG_OUTER_MARGIN 11 +#define DLG_BUTTON_SPACING 7 +#define DLG_UNRELATED_SPACING 11 + +/* elif defined (__APPLE__) */ +#else /* Use the GNOME HIG */ + +/* http://developer.gnome.org/hig-book/3.2/design-window.html.en */ + +#define DLG_OUTER_MARGIN 12 +#define DLG_BUTTON_SPACING 6 +#define DLG_UNRELATED_SPACING 12 + +#endif /** Create a dialog box window that belongs to Wireshark's main window. * If you want to create a window, use window_new() instead. |