NeoMutt  2020-06-26-250-g349c94
Teaching an old dog new tricks
common.c File Reference

Shared debug code. More...

#include "config.h"
#include "mutt/lib.h"
#include "gui/lib.h"
#include "lib.h"
+ Include dependency graph for common.c:

Go to the source code of this file.


const char * win_name (const struct MuttWindow *win)

Detailed Description

Shared debug code.

  • 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

Definition in file common.c.

Function Documentation

◆ win_name()

const char* win_name ( const struct MuttWindow win)

Definition at line 34 of file common.c.

35 {
36  if (!win)
37  return "UNKNOWN";
39  switch (win->type)
40  {
41  case WT_ALL_DIALOGS:
42  return "All Dialogs";
43  case WT_CONTAINER:
44  return "Container";
45  case WT_CUSTOM:
46  return "Custom";
47  case WT_DLG_ALIAS:
48  return "Alias Dialog";
49  case WT_DLG_ATTACH:
50  return "Attach Dialog";
52  return "Autocrypt Dialog";
53  case WT_DLG_BROWSER:
54  return "Browser Dialog";
56  return "Certificate Dialog";
57  case WT_DLG_COMPOSE:
58  return "Compose Dialog";
60  return "Crypt-GPGME Dialog";
61  case WT_DLG_DO_PAGER:
62  return "Pager Dialog";
63  case WT_DLG_HISTORY:
64  return "History Dialog";
65  case WT_DLG_INDEX:
66  return "Index Dialog";
67  case WT_DLG_PGP:
68  return "Pgp Dialog";
70  return "Postpone Dialog";
71  case WT_DLG_QUERY:
72  return "Query Dialog";
74  return "Remailer Dialog";
75  case WT_DLG_SMIME:
76  return "Smime Dialog";
77  case WT_HELP_BAR:
78  return "Help Bar";
79  case WT_INDEX:
80  return "Index";
81  case WT_INDEX_BAR:
82  return "Index Bar";
83  case WT_MESSAGE:
84  return "Message";
85  case WT_PAGER:
86  return "Pager";
87  case WT_PAGER_BAR:
88  return "Pager Bar";
89  case WT_ROOT:
90  return "Root Dialog";
91  case WT_SIDEBAR:
92  return "Sidebar";
93  default:
94  return "UNKNOWN";
95  }
96 }
History Dialog, history_menu()
Definition: mutt_window.h:82
Pager Bar containing status info about the Pager.
Definition: mutt_window.h:98
Crypt-GPGME Dialog, crypt_select_key()
Definition: mutt_window.h:80
Window for messages/errors and command entry.
Definition: mutt_window.h:96
Attach Dialog, mutt_view_attachments()
Definition: mutt_window.h:75
Pgp Dialog, pgp_select_key()
Definition: mutt_window.h:85
Query Dialog, query_menu()
Definition: mutt_window.h:87
Invisible shaping container Window.
Definition: mutt_window.h:70
Parent of All Windows.
Definition: mutt_window.h:69
An Index Window containing a selection list.
Definition: mutt_window.h:94
Window with a custom drawing function.
Definition: mutt_window.h:92
Browser Dialog, mutt_buffer_select_file()
Definition: mutt_window.h:77
Autocrypt Dialog, mutt_autocrypt_account_menu()
Definition: mutt_window.h:76
Side panel containing Accounts or groups of data.
Definition: mutt_window.h:99
Help Bar containing list of useful key bindings.
Definition: mutt_window.h:93
Pager Dialog, mutt_do_pager()
Definition: mutt_window.h:81
Container for All Dialogs (nested Windows)
Definition: mutt_window.h:71
Window containing paged free-form text.
Definition: mutt_window.h:97
Smime Dialog, smime_select_key()
Definition: mutt_window.h:89
Compose Dialog, mutt_compose_menu()
Definition: mutt_window.h:79
Postpone Dialog, select_msg()
Definition: mutt_window.h:86
Index Dialog, index_pager_init()
Definition: mutt_window.h:83
Certificate Dialog, dlg_verify_cert()
Definition: mutt_window.h:78
Index Bar containing status info about the Index.
Definition: mutt_window.h:95
enum WindowType type
Window type, e.g. WT_SIDEBAR.
Definition: mutt_window.h:137
Alias Dialog, alias_menu()
Definition: mutt_window.h:74
Remailer Dialog, mix_make_chain()
Definition: mutt_window.h:88
+ Here is the caller graph for this function: