diff options
author | Yaakov Selkowitz <yselkowitz@users.sourceforge.net> | 2011-08-26 01:46:57 -0500 |
---|---|---|
committer | Yaakov Selkowitz <yselkowitz@users.sourceforge.net> | 2011-08-26 17:31:58 -0500 |
commit | fe2d2e640bf7a196fd1fe1f2efb7d4ba6382ce4f (patch) | |
tree | cb4061961e4785ce16720d360233a9ed24c34ab5 /src/SimpleMenu.c | |
parent | 42123013118c42f40873b1b8785c7e5ce2734965 (diff) |
Fix ambiguous 'else' warnings
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/SimpleMenu.c')
-rw-r--r-- | src/SimpleMenu.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/SimpleMenu.c b/src/SimpleMenu.c index 7104126..64fe3af 100644 --- a/src/SimpleMenu.c +++ b/src/SimpleMenu.c @@ -543,7 +543,7 @@ Cardinal *num_args; XDefineCursor(XtDisplay(new), XtWindow(new), smw_new->simple_menu.cursor); - if (smw_old->simple_menu.label_string !=smw_new->simple_menu.label_string) + if (smw_old->simple_menu.label_string !=smw_new->simple_menu.label_string) { if (smw_new->simple_menu.label_string == NULL) /* Destroy. */ XtDestroyWidget((Widget) smw_old->simple_menu.label); else if (smw_old->simple_menu.label_string == NULL) /* Create. */ @@ -554,6 +554,7 @@ Cardinal *num_args; XtSetArg(arglist[0], XtNlabel, smw_new->simple_menu.label_string); XtSetValues((Widget) smw_new->simple_menu.label, arglist, ONE); } + } if (smw_old->simple_menu.label_class != smw_new->simple_menu.label_class) XtAppWarning(XtWidgetToApplicationContext(new), |