Re-enable -composer and -edit flags (they were disabled under MOZ_MAIL_NEWS).

Also clean up a couple of warnings.
This commit is contained in:
akkana 1998-05-27 20:26:01 +00:00
Родитель a59ea3839e
Коммит 843eda083d
3 изменённых файлов: 28 добавлений и 17 удалений

Просмотреть файл

@ -139,7 +139,7 @@ extern int XFE_RESOURCES_NOT_INSTALLED_CORRECTLY;
extern int XFE_USAGE_MSG1;
extern int XFE_USAGE_MSG2;
extern int XFE_USAGE_MSG3;
#if defined(MOZ_MAIL_NEWS) && defined(EDITOR) && defined(MOZ_TASKBAR)
#if defined(MOZ_MAIL_NEWS) || defined(EDITOR) || defined(MOZ_TASKBAR)
extern int XFE_USAGE_MSG4;
#endif
extern int XFE_USAGE_MSG5;
@ -334,11 +334,13 @@ static XrmOptionDescRec options [] = {
/* Startup component flags */
{ "-component-bar", ".componentBar", XrmoptionNoArg, "True" },
#endif
#ifdef MOZ_MAIL_NEWS
#ifdef EDITOR
{ "-composer", ".composer", XrmoptionNoArg, "True" },
{ "-edit", ".composer", XrmoptionNoArg, "True" },
#endif
#ifdef MOZ_MAIL_NEWS
{ "-messenger", ".mail", XrmoptionNoArg, "True" },
{ "-mail", ".mail", XrmoptionNoArg, "True" },
@ -726,11 +728,14 @@ XtResource fe_GlobalResources [] =
XtOffset (fe_GlobalData *, startup_component_bar), XtRImmediate,
(XtPointer) False },
#endif
#ifdef MOZ_MAIL_NEWS
#ifdef EDITOR
{ "composer", XtCBoolean, XtRBoolean, sizeof(Boolean),
XtOffset (fe_GlobalData *, startup_composer), XtRImmediate,
(XtPointer) False },
#endif
#ifdef MOZ_MAIL_NEWS
{ "mail", XtCBoolean, XtRBoolean, sizeof(Boolean),
XtOffset (fe_GlobalData *, startup_mail), XtRImmediate,
(XtPointer) False },
@ -830,7 +835,7 @@ usage (void)
fprintf (stderr, XP_GetString( XFE_USAGE_MSG3 ) );
#if defined(MOZ_MAIL_NEWS) && defined(MOZ_TASKBAR) && defined(EDITOR)
#if defined(MOZ_MAIL_NEWS) || defined(MOZ_TASKBAR) || defined(EDITOR)
fprintf (stderr, XP_GetString( XFE_USAGE_MSG4 ) );
#endif
@ -1111,7 +1116,7 @@ fe_EventLoop ()
#ifdef QUANTIFY
quantify_start_recording_data();
#endif /* QUANTIFY */
NET_ProcessNet (-1, NET_EVERYTIME_TYPE);
NET_ProcessNet (0, NET_EVERYTIME_TYPE);
#ifdef QUANTIFY
quantify_stop_recording_data();
#endif /* QUANTIFY */
@ -1307,7 +1312,7 @@ plonk (MWContext *context)
#ifdef QUANTIFY
quantify_start_recording_data();
#endif /* QUANTIFY */
NET_ProcessNet (-1, NET_EVERYTIME_TYPE);
NET_ProcessNet (0, NET_EVERYTIME_TYPE);
#ifdef QUANTIFY
quantify_stop_recording_data();
#endif /* QUANTIFY */
@ -2969,13 +2974,13 @@ main
plonkp = True;
#endif
#ifdef MOZ_MAIL_NEWS
#ifdef EDITOR
if (fe_globalData.startup_composer)
{
type = MWContextEditor;
}
else
#endif
#endif /* EDITOR */
{
type = MWContextBrowser;
}
@ -2998,13 +3003,13 @@ main
{
MWContextType type;
#ifdef MOZ_MAIL_NEWS
#ifdef EDITOR
if (fe_globalData.startup_composer)
{
type = MWContextEditor;
}
else
#endif
#endif /* EDITOR */
{
type = MWContextBrowser;
}
@ -3027,13 +3032,13 @@ main
fe_globalData.startup_iconic = TRUE;
}
#endif
#ifdef MOZ_MAIL_NEWS
#ifdef EDITOR
if (fe_globalData.startup_composer)
{
type = MWContextEditor;
}
else
#endif
#endif /* EDITOR */
{
type = MWContextBrowser;
}
@ -3133,8 +3138,10 @@ main
#ifdef MOZ_TASKBAR
fe_globalData.startup_component_bar ||
#endif
#ifdef MOZ_MAIL_NEWS
#ifdef EDITOR
fe_globalData.startup_composer ||
#endif
#ifdef MOZ_MAIL_NEWS
fe_globalData.startup_mail ||
fe_globalData.startup_news ||
#endif
@ -3171,13 +3178,15 @@ main
else
#endif
{
#ifdef MOZ_MAIL_NEWS
#ifdef EDITOR
/* -composer: show the composer */
if (fe_globalData.startup_composer)
{
fe_MakeWindow(toplevel, 0, NULL, NULL,MWContextEditor,FALSE);
}
#endif /* EDITOR */
#ifdef MOZ_MAIL_NEWS
/* -mail: show inbox */
if (fe_globalData.startup_mail)
{

Просмотреть файл

@ -27,6 +27,8 @@
#include "fonts.h"
#include "felocale.h"
#include "intl_csi.h"
#include "selection.h"
#include "rdf.h"
#ifdef NSPR20
#include "private/prpriv.h" /* for PR_GetMonitorEntryCount */
#endif /* NSPR20 */
@ -1352,12 +1354,12 @@ fe_MakeNewWindow(Widget toplevel, MWContext *context_to_copy,
/* Fix type */
if (url && (type != MWContextSaveToDisk) && (type != MWContextBookmarks) &&
(type != MWContextAddressBook) && (type != MWContextDialog)) {
(type != MWContextAddressBook) && (type != MWContextDialog) &&
(type != MWContextEditor)) {
#ifdef MOZ_MAIL_NEWS
if (MSG_RequiresMailWindow (url->address) || MSG_RequiresNewsWindow(url->address))
type = MWContextMail;
else if (MSG_RequiresBrowserWindow (url->address)) {
if (type != MWContextEditor)
#else
{
#endif

Просмотреть файл

@ -1366,8 +1366,8 @@ typedef struct
#ifdef MOZ_TASKBAR
Boolean startup_component_bar;
#endif
#ifdef MOZ_MAIL_NEWS
Boolean startup_composer;
#ifdef MOZ_MAIL_NEWS
Boolean startup_mail;
Boolean startup_news;
#endif