[gimp] app: Improve readability of macros in dialogs/dialogs.c
- From: Martin Nordholts <martinn src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp] app: Improve readability of macros in dialogs/dialogs.c
- Date: Sat, 19 Dec 2009 09:35:26 +0000 (UTC)
commit 5f03cf20d7fd0b701a36692f42f2371ba58b8576
Author: Martin Nordholts <martinn src gnome org>
Date: Sat Dec 19 10:36:05 2009 +0100
app: Improve readability of macros in dialogs/dialogs.c
As a workaround for not using C99, specify struct member names with
comments instead.
app/dialogs/dialogs.c | 28 ++++++++++++++++++++++++----
1 files changed, 24 insertions(+), 4 deletions(-)
---
diff --git a/app/dialogs/dialogs.c b/app/dialogs/dialogs.c
index 99320ee..86b55e7 100644
--- a/app/dialogs/dialogs.c
+++ b/app/dialogs/dialogs.c
@@ -49,12 +49,32 @@ GimpContainer *global_recent_docks = NULL;
#define FOREIGN(id, singleton, remember_size) \
- { id, NULL, NULL, NULL, NULL, \
- NULL, 0, singleton, TRUE, remember_size, FALSE, FALSE }
+ { id /* identifier */, \
+ NULL /* name */, \
+ NULL /* blurb */, \
+ NULL /* stock_id */, \
+ NULL /* help_id */, \
+ NULL /* new_func */, \
+ 0 /* view_size */, \
+ singleton /* singleton */, \
+ TRUE /* session_managed */, \
+ remember_size /* remember_size */, \
+ FALSE /* remember_if_open */, \
+ FALSE /* dockable */ }
#define TOPLEVEL(id, new_func, singleton, session_managed, remember_size) \
- { id, NULL, NULL, NULL, NULL, \
- new_func, 0, singleton, session_managed, remember_size, FALSE, FALSE }
+ { id /* identifier */, \
+ NULL /* name */, \
+ NULL /* blurb */, \
+ NULL /* stock_id */, \
+ NULL /* help_id */, \
+ new_func /* new_func */, \
+ 0 /* view_size */, \
+ singleton /* singleton */, \
+ session_managed /* session_managed */, \
+ remember_size /* remember_size */, \
+ FALSE /* remember_if_open */, \
+ FALSE /* dockable */ }
static const GimpDialogFactoryEntry toplevel_entries[] =
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]