SMIMEAUX_TARGET="smime_keys"
fi
-AC_ARG_ENABLE(sidebar, AC_HELP_STRING([--enable-sidebar], [Enable Sidebar support]),
-[ if test x$enableval = xyes ; then
- AC_DEFINE(USE_SIDEBAR, 1, [Define if you want support for the sidebar.])
- OPS="$OPS \$(srcdir)/OPS.SIDEBAR"
- MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS sidebar.o"
- fi
+AC_ARG_ENABLE(sidebar, AC_HELP_STRING([--enable-sidebar], [Enable Sidebar support]), enable_sidebar=$enableval, enable_sidebar=no)
+AS_IF([test x$enable_sidebar = "xyes"], [
+ AC_DEFINE(USE_SIDEBAR, 1, [Define if you want support for the sidebar.])
+ OPS="$OPS \$(srcdir)/OPS.SIDEBAR"
+ MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS sidebar.o"
])
AC_ARG_WITH(mixmaster, AS_HELP_STRING([--with-mixmaster@<:@=PATH@:>@],[Include Mixmaster support]),
WHERE short ScoreThresholdFlag;
#ifdef USE_SIDEBAR
-WHERE short SidebarWidth;
+WHERE short SidebarWidth INITVAL(0);
WHERE LIST *SidebarWhitelist INITVAL(0);
WHERE int SidebarNeedsRedraw INITVAL (0);
#endif
/* try to figure out what type of mailbox ``path'' is
*
* return values:
- * M_* mailbox type
+ * MUTT_* mailbox type
* 0 not a mailbox
* -1 error
*/
* @buflen: Buffer length
* @width: Desired width in screen cells
* @box: Mailbox name
- * @b: Mailbox object
+ * @sbe: Mailbox object
*
* Take all the relevant mailbox data and the desired screen width and then get
* mutt_FormatString to do the actual work. mutt_FormatString will callback to
int i;
for (i = 0; i < num_rows; i++)
{
- mutt_window_move (MuttSidebarWindow, i, SidebarWidth - delim_len); //RAR 0 for rhs
+ mutt_window_move (MuttSidebarWindow, i, SidebarWidth - delim_len);
addstr (NONULL(SidebarDividerChar));
}
int r;
for (r = 0; r < num_rows; r++)
{
- mutt_window_move (MuttSidebarWindow, first_row + r, 0); //RAR rhs
+ mutt_window_move (MuttSidebarWindow, first_row + r, 0);
int i;
for (i = 0; i < width; i++)
addch (' ');
if (!option (OPTSIDEBAR))
return;
+#ifdef USE_SLANG_CURSES
+ int x = SLsmg_get_column();
+ int y = SLsmg_get_row();
+#else
+ int x = getcurx (stdscr);
+ int y = getcury (stdscr);
+#endif
+
int num_rows = MuttSidebarWindow->rows;
int num_cols = MuttSidebarWindow->cols;
return;
draw_sidebar (num_rows, num_cols, div_width);
+ move (y, x);
}
/**