summaryrefslogtreecommitdiff
path: root/editresP.h
diff options
context:
space:
mode:
Diffstat (limited to 'editresP.h')
-rw-r--r--editresP.h48
1 files changed, 26 insertions, 22 deletions
diff --git a/editresP.h b/editresP.h
index 0719511..755de65 100644
--- a/editresP.h
+++ b/editresP.h
@@ -315,25 +315,33 @@ typedef union _Event {
/*
* Global variables.
*/
+extern int global_effective_protocol_version;
+extern char* global_effective_toolkit;
+extern int global_error_code;
+extern unsigned long global_serial_num;
+extern int (*global_old_error_handler)(Display *, XErrorEvent *);
+extern Boolean global_resource_box_up;
+
+extern TreeInfo *global_tree_info;
+extern CurrentClient global_client;
+extern ScreenData global_screen_data;
+extern Widget global_tree_parent;
+extern Widget global_paned; /* named after toolkit */
+extern Widget global_toplevel;
+extern AppResources global_resources;
+
+extern String res_labels[NUM_RES_LABELS];
+
+extern Boolean do_get_values;
+extern Atom wm_delete_window;
-#ifndef THIS_IS_MAIN
- extern int global_effective_protocol_version;
- extern char* global_effective_toolkit;
- extern int global_error_code;
- extern unsigned long global_serial_num;
- extern int (*global_old_error_handler)(Display *, XErrorEvent *);
- extern Boolean global_resource_box_up;
-
- extern TreeInfo *global_tree_info;
- extern CurrentClient global_client;
- extern ScreenData global_screen_data;
- extern Widget global_tree_parent;
- extern Widget global_paned; /* named after toolkit */
- extern Widget global_toplevel;
- extern AppResources global_resources;
-
- extern String res_labels[NUM_RES_LABELS];
-#endif
+/* number of entries in the command menu */
+#define NUM_CM_ENTRIES 8
+extern Widget CM_entries[NUM_CM_ENTRIES];
+
+/* number of entries in the tree menu */
+#define NUM_TM_ENTRIES 16
+extern Widget TM_entries[NUM_TM_ENTRIES];
/*
* Macros.
@@ -341,14 +349,10 @@ typedef union _Event {
#define streq(a, b) ( strcmp((a), (b)) == 0 )
-/* number of entries in the command menu */
-#define NUM_CM_ENTRIES 8
/* offset into CM entries for setting insensitive */
#define CM_OFFSET 1
/* number of CM entries to make insensitive */
#define CM_NUM 5
-/* number of entries in the tree menu */
-#define NUM_TM_ENTRIES 16
#define TM_OFFSET 0
#define TM_NUM 16