NeoMutt  2025-12-11-694-ga89709
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
module.c File Reference

Definition of the Gui Module. More...

#include "config.h"
#include <stdbool.h>
#include <stddef.h>
#include "mutt/lib.h"
#include "config/lib.h"
#include "core/lib.h"
#include "module_data.h"
+ Include dependency graph for module.c:

Go to the source code of this file.

Functions

static bool gui_init (struct NeoMutt *n)
 Initialise a Module - Implements Module::init()
 
static bool gui_config_define_variables (struct NeoMutt *n, struct ConfigSet *cs)
 Define the Config Variables - Implements Module::config_define_variables()
 
static bool gui_cleanup (struct NeoMutt *n)
 Clean up a Module - Implements Module::cleanup()
 

Variables

struct ConfigDef GuiVars []
 Config definitions for the Gui library.
 
const struct Module ModuleGui
 Module for the Gui library.
 

Detailed Description

Definition of the Gui Module.

Authors
  • Richard Russon

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Definition in file module.c.

Function Documentation

◆ gui_init()

static bool gui_init ( struct NeoMutt * n)
static

Initialise a Module - Implements Module::init()

Definition at line 42 of file module.c.

43{
44 // struct GuiModuleData *md = MUTT_MEM_CALLOC(1, struct GuiModuleData);
45 // neomutt_set_module_data(n, MODULE_ID_GUI, md);
46
47 return true;
48}

◆ gui_config_define_variables()

static bool gui_config_define_variables ( struct NeoMutt * n,
struct ConfigSet * cs )
static

Define the Config Variables - Implements Module::config_define_variables()

Definition at line 53 of file module.c.

54{
56}
bool cs_register_variables(const struct ConfigSet *cs, struct ConfigDef vars[])
Register a set of config items.
Definition set.c:290
struct ConfigDef GuiVars[]
Config definitions for the Gui library.
Definition config.c:37
+ Here is the call graph for this function:

◆ gui_cleanup()

static bool gui_cleanup ( struct NeoMutt * n)
static

Clean up a Module - Implements Module::cleanup()

Definition at line 61 of file module.c.

62{
63 // struct GuiModuleData *md = neomutt_get_module_data(n, MODULE_ID_GUI);
64 // ASSERT(md);
65
66 // FREE(&md);
67 return true;
68}

Variable Documentation

◆ GuiVars

struct ConfigDef GuiVars[]
extern

Config definitions for the Gui library.

Definition at line 37 of file config.c.

37 {
38 // clang-format off
39 { "beep", DT_BOOL, true, 0, NULL,
40 "Make a noise when an error occurs"
41 },
42 { "collapse_flagged", DT_BOOL, true, 0, NULL,
43 "Prevent the collapse of threads with flagged emails"
44 },
45 { "collapse_unread", DT_BOOL, true, 0, NULL,
46 "Prevent the collapse of threads with unread emails"
47 },
48 { "duplicate_threads", DT_BOOL, true, 0, NULL,
49 "Highlight messages with duplicated message IDs"
50 },
51 { "hide_limited", DT_BOOL, false, 0, NULL,
52 "Don't indicate hidden messages, in the thread tree"
53 },
54 { "hide_missing", DT_BOOL, true, 0, NULL,
55 "Don't indicate missing messages, in the thread tree"
56 },
57 { "hide_thread_subject", DT_BOOL, true, 0, NULL,
58 "Hide subjects that are similar to that of the parent message"
59 },
60 { "hide_top_limited", DT_BOOL, false, 0, NULL,
61 "Don't indicate hidden top message, in the thread tree"
62 },
63 { "hide_top_missing", DT_BOOL, true, 0, NULL,
64 "Don't indicate missing top message, in the thread tree"
65 },
66 { "narrow_tree", DT_BOOL, false, 0, NULL,
67 "Draw a narrower thread tree in the index"
68 },
69 { "sort_re", DT_BOOL, true, 0, NULL,
70 "Whether $reply_regex must be matched when not $strict_threads"
71 },
72 { "strict_threads", DT_BOOL, false, 0, NULL,
73 "Thread messages using 'In-Reply-To' and 'References' headers"
74 },
75 { "thread_received", DT_BOOL, false, 0, NULL,
76 "Sort threaded messages by their received date"
77 },
78
79 { NULL },
80 // clang-format on
81};
@ DT_BOOL
boolean option
Definition types.h:32

◆ ModuleGui

const struct Module ModuleGui
Initial value:
= {
"gui",
NULL,
NULL,
NULL,
NULL,
}
static bool gui_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
Define the Config Variables - Implements Module::config_define_variables()
Definition module.c:53
static bool gui_cleanup(struct NeoMutt *n)
Clean up a Module - Implements Module::cleanup()
Definition module.c:61
static bool gui_init(struct NeoMutt *n)
Initialise a Module - Implements Module::init()
Definition module.c:42
@ MODULE_ID_GUI
ModuleGui, Graphical code
Definition module_api.h:45

Module for the Gui library.

Definition at line 73 of file module.c.

73 {
75 "gui",
77 NULL, // config_define_types
79 NULL, // commands_register
80 NULL, // gui_init
81 NULL, // gui_cleanup
83};