parent
a39948076c
commit
e7f01c2d6f
|
@ -1 +1 @@
|
|||
-i3 -bl -bad -nbap -sob -ncdb -di20 -nbc -lp -nce -npcs -sc -ncs -l80
|
||||
-i3 -bl -bad -nbap -sob -ncdb -di20 -nbc -lp -nce -npcs -sc -ncs -brs -l80
|
||||
|
|
|
@ -66,8 +66,7 @@
|
|||
|
||||
typedef struct _efont Efont;
|
||||
|
||||
typedef struct _root
|
||||
{
|
||||
typedef struct _root {
|
||||
Window win;
|
||||
Visual *vis;
|
||||
unsigned int depth;
|
||||
|
@ -76,8 +75,7 @@ typedef struct _root
|
|||
unsigned int w, h;
|
||||
} Root;
|
||||
|
||||
typedef struct _textstate
|
||||
{
|
||||
typedef struct _textstate {
|
||||
char *fontname;
|
||||
XColor fg_col;
|
||||
XColor bg_col;
|
||||
|
@ -91,8 +89,7 @@ typedef struct _textstate
|
|||
int height;
|
||||
} TextState;
|
||||
|
||||
typedef struct _link
|
||||
{
|
||||
typedef struct _link {
|
||||
char *name;
|
||||
int x, y, w, h;
|
||||
struct _link *next;
|
||||
|
|
|
@ -118,8 +118,7 @@ word_mb(char *s, int num, char *wd, int *spaceflag)
|
|||
char *start, *finish, *ss, *w;
|
||||
|
||||
int wcflg, mbflg;
|
||||
struct char_class
|
||||
{
|
||||
struct char_class {
|
||||
const char *name;
|
||||
wctype_t wt;
|
||||
} *cc, char_class_tbl[] =
|
||||
|
|
18
dox/format.c
18
dox/format.c
|
@ -27,8 +27,7 @@
|
|||
#define DEFAULT_LINKCOLOR_G 50
|
||||
#define DEFAULT_LINKCOLOR_B 160
|
||||
|
||||
typedef enum _type
|
||||
{
|
||||
typedef enum _type {
|
||||
IMG,
|
||||
BR,
|
||||
FONT,
|
||||
|
@ -37,8 +36,7 @@ typedef enum _type
|
|||
PAGE
|
||||
} Type;
|
||||
|
||||
typedef struct _img
|
||||
{
|
||||
typedef struct _img {
|
||||
char *src;
|
||||
char *src2;
|
||||
char *src3;
|
||||
|
@ -47,25 +45,21 @@ typedef struct _img
|
|||
int w, h;
|
||||
} Img_;
|
||||
|
||||
typedef struct _font
|
||||
{
|
||||
typedef struct _font {
|
||||
char *face;
|
||||
int r, g, b;
|
||||
} Font_;
|
||||
|
||||
typedef struct _p
|
||||
{
|
||||
typedef struct _p {
|
||||
float align;
|
||||
} P_;
|
||||
|
||||
typedef struct _object
|
||||
{
|
||||
typedef struct _object {
|
||||
Type type;
|
||||
void *object;
|
||||
} Object;
|
||||
|
||||
typedef struct _page
|
||||
{
|
||||
typedef struct _page {
|
||||
char *name;
|
||||
int count;
|
||||
Object *obj;
|
||||
|
|
|
@ -22,8 +22,7 @@
|
|||
*/
|
||||
#include "dox.h"
|
||||
|
||||
struct _efont
|
||||
{
|
||||
struct _efont {
|
||||
Imlib_Font face;
|
||||
};
|
||||
|
||||
|
|
3
eesh/E.h
3
eesh/E.h
|
@ -37,8 +37,7 @@
|
|||
#define USE_LIBC_STRDUP 1 /* Use libc strdup if present */
|
||||
#endif
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
Window win;
|
||||
char *msg;
|
||||
} Client;
|
||||
|
|
|
@ -41,8 +41,7 @@
|
|||
#include <string.h>
|
||||
|
||||
/* This is used for communicating lists of keywords with cccp.c. */
|
||||
struct arglist
|
||||
{
|
||||
struct arglist {
|
||||
struct arglist *next;
|
||||
unsigned char *name;
|
||||
int length;
|
||||
|
@ -124,8 +123,7 @@ struct arglist
|
|||
#define SKIP_OPERAND 8
|
||||
/*#define UNSIGNEDP 16 */
|
||||
|
||||
struct operation
|
||||
{
|
||||
struct operation {
|
||||
short op;
|
||||
char rprio; /* Priority of op (relative to it right operand). */
|
||||
char flags;
|
||||
|
@ -242,8 +240,7 @@ parse_number(struct operation *op, cpp_reader * pfile, const char *start,
|
|||
op->op = INT;
|
||||
}
|
||||
|
||||
struct token
|
||||
{
|
||||
struct token {
|
||||
const char *oper;
|
||||
int token;
|
||||
};
|
||||
|
|
|
@ -2,15 +2,13 @@ enum node_type;
|
|||
|
||||
/* different kinds of things that can appear in the value field
|
||||
of a hash node. Actually, this may be useless now. */
|
||||
union hashval
|
||||
{
|
||||
union hashval {
|
||||
int ival;
|
||||
char *cpval;
|
||||
DEFINITION *defn;
|
||||
};
|
||||
|
||||
struct hashnode
|
||||
{
|
||||
struct hashnode {
|
||||
struct hashnode *next; /* double links for easy deletion */
|
||||
struct hashnode *prev;
|
||||
struct hashnode **bucket_hdr; /* also, a back pointer to this node's hash
|
||||
|
|
39
epp/cpplib.c
39
epp/cpplib.c
|
@ -163,8 +163,7 @@ static const char *predefs = "";
|
|||
#define REGISTER_PREFIX ""
|
||||
#endif
|
||||
|
||||
struct directive
|
||||
{
|
||||
struct directive {
|
||||
int length;
|
||||
int (*func) (cpp_reader * pfile, struct directive * keyword,
|
||||
unsigned char *buf, unsigned char *limit);
|
||||
|
@ -180,14 +179,12 @@ struct directive
|
|||
* Each value is itself a list of "tokens".
|
||||
* These are strings that are compared by name. */
|
||||
|
||||
struct tokenlist_list
|
||||
{
|
||||
struct tokenlist_list {
|
||||
struct tokenlist_list *next;
|
||||
struct arglist *tokens;
|
||||
};
|
||||
|
||||
struct assertion_hashnode
|
||||
{
|
||||
struct assertion_hashnode {
|
||||
struct assertion_hashnode *next; /* double links for easy deletion */
|
||||
struct assertion_hashnode *prev;
|
||||
/* also, a back pointer to this node's hash
|
||||
|
@ -230,16 +227,14 @@ struct assertion_hashnode
|
|||
|
||||
char *progname;
|
||||
|
||||
struct cpp_pending
|
||||
{
|
||||
struct cpp_pending {
|
||||
struct cpp_pending *next;
|
||||
const char *cmd;
|
||||
const char *arg;
|
||||
};
|
||||
|
||||
/* Structure returned by create_definition */
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
struct definition *defn;
|
||||
char *symnam;
|
||||
int symlen;
|
||||
|
@ -303,8 +298,7 @@ static cpp_buffer *cpp_push_buffer(cpp_reader * pfile, unsigned char *buffer,
|
|||
static cpp_buffer *cpp_pop_buffer(cpp_reader * pfile);
|
||||
|
||||
/* Last arg to output_line_command. */
|
||||
enum file_change_code
|
||||
{
|
||||
enum file_change_code {
|
||||
same_file, enter_file, leave_file
|
||||
};
|
||||
|
||||
|
@ -369,8 +363,7 @@ static void parse_goto_mark(struct parse_marker *pmark,
|
|||
static void parse_move_mark(struct parse_marker *pmark,
|
||||
cpp_reader * pfile);
|
||||
|
||||
struct file_name_list
|
||||
{
|
||||
struct file_name_list {
|
||||
struct file_name_list *next;
|
||||
char *fname;
|
||||
/* If the following is nonzero, it is a macro name.
|
||||
|
@ -393,15 +386,13 @@ struct file_name_list
|
|||
/* #include <file> just looks in the stack. */
|
||||
/* -I directories are added to the end, then the defaults are added. */
|
||||
/* The */
|
||||
static struct default_include
|
||||
{
|
||||
static struct default_include {
|
||||
const char *fname; /* The name of the directory. */
|
||||
int cplusplus; /* Only look here if we're compiling C++. */
|
||||
int cxx_aware; /* Includes in this directory don't need to
|
||||
* be wrapped in extern "C" when compiling
|
||||
* C++. */
|
||||
}
|
||||
include_defaults_array[]
|
||||
} include_defaults_array[]
|
||||
#ifdef INCLUDE_DEFAULTS
|
||||
= INCLUDE_DEFAULTS;
|
||||
|
||||
|
@ -1184,8 +1175,7 @@ pass_thru_directive(char *buf, char *limit, cpp_reader * pfile,
|
|||
* the current #define has been processed and entered into the
|
||||
* hash table. */
|
||||
|
||||
struct arglist
|
||||
{
|
||||
struct arglist {
|
||||
struct arglist *next;
|
||||
char *name;
|
||||
int length;
|
||||
|
@ -1934,8 +1924,7 @@ do_define(cpp_reader * pfile, struct directive *keyword,
|
|||
/* raw and expanded are relative to ARG_BASE */
|
||||
#define ARG_BASE ((pfile)->token_buffer)
|
||||
|
||||
struct argdata
|
||||
{
|
||||
struct argdata {
|
||||
/* Strings relative to pfile->token_buffer */
|
||||
long raw, expanded, stringified;
|
||||
int raw_length, expand_length;
|
||||
|
@ -5369,8 +5358,7 @@ add_import(cpp_reader * pfile, int fd, char *fname)
|
|||
* of lines with two tokens on each line. The first token is the name
|
||||
* to map, and the second token is the actual name to use. */
|
||||
|
||||
struct file_name_map
|
||||
{
|
||||
struct file_name_map {
|
||||
struct file_name_map *map_next;
|
||||
char *map_from;
|
||||
char *map_to;
|
||||
|
@ -5411,8 +5399,7 @@ read_filename_string(int ch, FILE * f)
|
|||
}
|
||||
|
||||
/* This structure holds a linked list of file name maps, one per directory. */
|
||||
struct file_name_map_list
|
||||
{
|
||||
struct file_name_map_list {
|
||||
struct file_name_map_list *map_list_next;
|
||||
char *map_list_name;
|
||||
struct file_name_map *map_list_map;
|
||||
|
|
39
epp/cpplib.h
39
epp/cpplib.h
|
@ -43,8 +43,7 @@ typedef struct cpp_reader cpp_reader;
|
|||
typedef struct cpp_buffer cpp_buffer;
|
||||
typedef struct cpp_options cpp_options;
|
||||
|
||||
enum cpp_token
|
||||
{
|
||||
enum cpp_token {
|
||||
CPP_EOF = -1,
|
||||
CPP_OTHER = 0,
|
||||
CPP_COMMENT = 1,
|
||||
|
@ -72,8 +71,7 @@ typedef int (*parse_cleanup_t) (cpp_buffer *, cpp_reader *);
|
|||
/* A parse_marker indicates a previous position,
|
||||
which we can backtrack to. */
|
||||
|
||||
struct parse_marker
|
||||
{
|
||||
struct parse_marker {
|
||||
cpp_buffer *buf;
|
||||
struct parse_marker *next;
|
||||
int position;
|
||||
|
@ -87,8 +85,7 @@ extern void cpp_skip_hspace(cpp_reader * pfile);
|
|||
|
||||
#define IMPORT_HASH_SIZE 31
|
||||
|
||||
struct import_file
|
||||
{
|
||||
struct import_file {
|
||||
char *name;
|
||||
ino_t inode;
|
||||
dev_t dev;
|
||||
|
@ -98,13 +95,11 @@ struct import_file
|
|||
/* If we have a huge buffer, may need to cache more recent counts */
|
||||
#define CPP_LINE_BASE(BUF) ((BUF)->buf + (BUF)->line_base)
|
||||
|
||||
enum dump_type
|
||||
{
|
||||
enum dump_type {
|
||||
dump_none = 0, dump_only, dump_names, dump_definitions
|
||||
};
|
||||
|
||||
struct cpp_buffer
|
||||
{
|
||||
struct cpp_buffer {
|
||||
unsigned char *buf;
|
||||
unsigned char *cur;
|
||||
unsigned char *rlimit; /* end of valid data */
|
||||
|
@ -160,8 +155,7 @@ typedef struct assertion_hashnode ASSERTION_HASHNODE;
|
|||
#define CPP_STACK_MAX 200
|
||||
#endif
|
||||
|
||||
struct cpp_reader
|
||||
{
|
||||
struct cpp_reader {
|
||||
unsigned char *limit;
|
||||
parse_underflow_t get_token;
|
||||
cpp_buffer *buffer;
|
||||
|
@ -294,8 +288,7 @@ struct cpp_reader
|
|||
#endif
|
||||
|
||||
/* Pointed to by parse_file::data. */
|
||||
struct cpp_options
|
||||
{
|
||||
struct cpp_options {
|
||||
const char *in_fname;
|
||||
|
||||
/* Name of output file, for error messages. */
|
||||
|
@ -496,8 +489,7 @@ extern char *progname;
|
|||
by a separate piece of code. */
|
||||
|
||||
/* different flavors of hash nodes --- also used in keyword table */
|
||||
enum node_type
|
||||
{
|
||||
enum node_type {
|
||||
T_DEFINE = 1, /* the `#define' keyword */
|
||||
T_INCLUDE, /* the `#include' keyword */
|
||||
T_INCLUDE_NEXT, /* the `#include_next' keyword */
|
||||
|
@ -558,8 +550,7 @@ enum node_type
|
|||
{ (0, 1), (1, 1), (1, 1), ..., (1, 1), NULL }
|
||||
where (x, y) means (nchars, argno). */
|
||||
|
||||
struct reflist
|
||||
{
|
||||
struct reflist {
|
||||
struct reflist *next;
|
||||
char stringify; /* nonzero if this arg was preceded by a
|
||||
* # operator. */
|
||||
|
@ -572,8 +563,7 @@ struct reflist
|
|||
};
|
||||
|
||||
typedef struct definition DEFINITION;
|
||||
struct definition
|
||||
{
|
||||
struct definition {
|
||||
int nargs;
|
||||
int length; /* length of expansion string */
|
||||
int predefined; /* True if the macro was builtin or */
|
||||
|
@ -583,15 +573,13 @@ struct definition
|
|||
const char *file; /* File of definition */
|
||||
char rest_args; /* Nonzero if last arg. absorbs the rest */
|
||||
struct reflist *pattern;
|
||||
union
|
||||
{
|
||||
union {
|
||||
/* Names of macro args, concatenated in reverse order
|
||||
* with comma-space between them.
|
||||
* The only use of this is that we warn on redefinition
|
||||
* if this differs between the old and new definitions. */
|
||||
unsigned char *argnames;
|
||||
}
|
||||
args;
|
||||
} args;
|
||||
};
|
||||
|
||||
extern unsigned char is_idchar[256];
|
||||
|
@ -599,8 +587,7 @@ extern unsigned char is_idchar[256];
|
|||
/* Stack of conditionals currently in progress
|
||||
(including both successful and failing conditionals). */
|
||||
|
||||
struct if_stack
|
||||
{
|
||||
struct if_stack {
|
||||
struct if_stack *next; /* for chaining to the next stack frame */
|
||||
const char *fname; /* copied from input when frame is made */
|
||||
int lineno; /* similarly */
|
||||
|
|
138
src/E.h
138
src/E.h
|
@ -210,14 +210,11 @@
|
|||
*/
|
||||
#include "etypes.h"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
int min, max;
|
||||
}
|
||||
Constraints;
|
||||
} Constraints;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
Window xwin;
|
||||
Win win;
|
||||
Visual *vis;
|
||||
|
@ -225,11 +222,9 @@ typedef struct
|
|||
Colormap cmap;
|
||||
int scr;
|
||||
int w, h;
|
||||
}
|
||||
RealRoot;
|
||||
} RealRoot;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
Window xwin;
|
||||
Win win;
|
||||
Visual *vis;
|
||||
|
@ -238,33 +233,26 @@ typedef struct
|
|||
int scr;
|
||||
int w, h;
|
||||
Pixmap pmap; /* Compositing buffer */
|
||||
}
|
||||
VirtRoot;
|
||||
} VirtRoot;
|
||||
|
||||
/* Configuration parameters */
|
||||
typedef struct
|
||||
{
|
||||
struct
|
||||
{
|
||||
typedef struct {
|
||||
struct {
|
||||
unsigned int step; /* Animation time step, ms */
|
||||
} animation;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
char enable;
|
||||
int delay; /* milliseconds */
|
||||
} autoraise;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
char hiquality;
|
||||
char user;
|
||||
int timeout;
|
||||
} backgrounds;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
int move_resistance;
|
||||
} buttons;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
unsigned int num;
|
||||
int dragdir;
|
||||
int dragbar_width;
|
||||
|
@ -279,21 +267,18 @@ typedef struct
|
|||
int edge_flip_mode;
|
||||
int edge_flip_resistance;
|
||||
} desks;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
char headers;
|
||||
char button_image;
|
||||
} dialogs;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
char enable; /* wmdockapp only */
|
||||
char sticky; /* Make dockapps sticky by default */
|
||||
int dirmode;
|
||||
int startx;
|
||||
int starty;
|
||||
} dock;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
int mode;
|
||||
char clickraises;
|
||||
char transientsfollowleader;
|
||||
|
@ -305,24 +290,20 @@ typedef struct
|
|||
char warp_on_next;
|
||||
char warp_always;
|
||||
} focus;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
char set_xroot_info_on_root_window;
|
||||
} hints;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
char animate;
|
||||
char onscreen;
|
||||
char warp;
|
||||
char show_icons;
|
||||
int icon_size;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
KeySym left, right, up, down, escape, ret;
|
||||
} key;
|
||||
} menus;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
int mode_move;
|
||||
int mode_resize;
|
||||
int mode_info;
|
||||
|
@ -332,16 +313,14 @@ typedef struct
|
|||
char update_while_moving;
|
||||
char enable_sync_request;
|
||||
} movres;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
int movres;
|
||||
int menus;
|
||||
int tooltips;
|
||||
int focused;
|
||||
int unfocused;
|
||||
} opacity;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
char manual;
|
||||
char manual_mouse_pointer;
|
||||
char center_if_desk_full;
|
||||
|
@ -356,8 +335,7 @@ typedef struct
|
|||
char extra_head; /* Not used */
|
||||
#endif
|
||||
} place;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
char enable_script;
|
||||
char *script;
|
||||
char enable_logout_dialog;
|
||||
|
@ -365,24 +343,20 @@ typedef struct
|
|||
char *cmd_reboot;
|
||||
char *cmd_halt;
|
||||
} session;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
char animate;
|
||||
int speed;
|
||||
} shading;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
char enable;
|
||||
int edge_snap_dist;
|
||||
int screen_snap_dist;
|
||||
} snap;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
char firsttime;
|
||||
char animate;
|
||||
} startup;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
char localise;
|
||||
char use_alt_font_cfg;
|
||||
char *name;
|
||||
|
@ -391,8 +365,7 @@ typedef struct
|
|||
char *font_cfg;
|
||||
} theme;
|
||||
#ifdef ENABLE_THEME_TRANSPARENCY
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
int alpha;
|
||||
int border;
|
||||
int widget;
|
||||
|
@ -406,8 +379,7 @@ typedef struct
|
|||
int warplist;
|
||||
} trans;
|
||||
#endif
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
char enable;
|
||||
char showsticky;
|
||||
char showshaded;
|
||||
|
@ -419,8 +391,7 @@ typedef struct
|
|||
int icon_mode;
|
||||
} warplist;
|
||||
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
char argb_internal_objects;
|
||||
char argb_internal_clients;
|
||||
char argb_clients;
|
||||
|
@ -436,23 +407,18 @@ typedef struct
|
|||
char memory_paranoia;
|
||||
char save_under;
|
||||
char difftime;
|
||||
}
|
||||
EConf;
|
||||
} EConf;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
struct
|
||||
{
|
||||
typedef struct {
|
||||
struct {
|
||||
unsigned int startup_id;
|
||||
} apps;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
char *name;
|
||||
char *dir;
|
||||
char *cache_dir;
|
||||
} conf;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
char *name;
|
||||
int screens;
|
||||
#ifdef HAVE_XINERAMA
|
||||
|
@ -462,8 +428,7 @@ typedef struct
|
|||
XID server_time;
|
||||
#endif
|
||||
} display;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
Time time;
|
||||
int cx, cy; /* Any detected pointer movement */
|
||||
int mx, my; /* Motion event */
|
||||
|
@ -480,55 +445,45 @@ typedef struct
|
|||
unsigned int damage_count;
|
||||
#endif
|
||||
} events;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
int server_grabbed;
|
||||
char pointer_grab_active;
|
||||
Window pointer_grab_window;
|
||||
} grabs;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
const char *lang;
|
||||
char utf8_int; /* Use UTF-8 internally */
|
||||
char utf8_loc; /* Locale is UTF-8 */
|
||||
} locale;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
unsigned int mod_key_mask;
|
||||
unsigned int mod_combos[8];
|
||||
} masks;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
char check; /* Avoid losing windows offscreen */
|
||||
char swap;
|
||||
int swapcoord_x, swapcoord_y;
|
||||
} move;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
signed char enable_features;
|
||||
char doing_manual;
|
||||
char doing_slide;
|
||||
} place;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
int w_old;
|
||||
int h_old;
|
||||
} screen;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
unsigned int extensions;
|
||||
} server;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
Pixmap ext_pmap;
|
||||
char ext_pmap_valid;
|
||||
} root;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
char *path;
|
||||
} theme;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
char *exec_name; /* argv[0] */
|
||||
char master; /* We are the master E */
|
||||
char single; /* No slaves */
|
||||
|
@ -563,8 +518,7 @@ typedef struct
|
|||
char showing_desktop;
|
||||
Window button_proxy_win;
|
||||
char firsttime;
|
||||
}
|
||||
EMode;
|
||||
} EMode;
|
||||
|
||||
/*
|
||||
* Function prototypes
|
||||
|
|
12
src/aclass.c
12
src/aclass.c
|
@ -32,15 +32,12 @@
|
|||
#include "grabs.h"
|
||||
#include <ctype.h>
|
||||
|
||||
typedef struct _actiontype
|
||||
{
|
||||
typedef struct _actiontype {
|
||||
char *params;
|
||||
struct _actiontype *next;
|
||||
}
|
||||
ActionType;
|
||||
} ActionType;
|
||||
|
||||
struct _action
|
||||
{
|
||||
struct _action {
|
||||
char event;
|
||||
char anymodifier;
|
||||
int modifiers;
|
||||
|
@ -53,8 +50,7 @@ struct _action
|
|||
ActionType *action;
|
||||
};
|
||||
|
||||
struct _actionclass
|
||||
{
|
||||
struct _actionclass {
|
||||
char *name;
|
||||
int num;
|
||||
Action **list;
|
||||
|
|
|
@ -29,15 +29,13 @@
|
|||
|
||||
#define DEBUG_ARRANGE 0
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
void *data;
|
||||
int x, y, w, h;
|
||||
int p;
|
||||
} RectBox;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
int x, y;
|
||||
int p, q;
|
||||
} RectInfo;
|
||||
|
|
|
@ -36,8 +36,7 @@
|
|||
#include "timers.h"
|
||||
#include "xwin.h"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
char *file;
|
||||
char *real_file;
|
||||
EImage *im;
|
||||
|
@ -46,8 +45,7 @@ typedef struct
|
|||
int xperc, yperc;
|
||||
} BgPart;
|
||||
|
||||
struct _background
|
||||
{
|
||||
struct _background {
|
||||
char *name;
|
||||
Pixmap pmap;
|
||||
time_t last_viewed;
|
||||
|
|
|
@ -27,27 +27,20 @@
|
|||
#include "eimage.h"
|
||||
#include "etypes.h"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
int originbox;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
int percent;
|
||||
int absolute;
|
||||
}
|
||||
x , y;
|
||||
}
|
||||
WinPoint;
|
||||
} x , y;
|
||||
} WinPoint;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
Constraints width, height;
|
||||
WinPoint topleft, bottomright;
|
||||
}
|
||||
Geometry;
|
||||
} Geometry;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
Geometry geom;
|
||||
ImageClass *iclass;
|
||||
ActionClass *aclass;
|
||||
|
@ -56,11 +49,9 @@ typedef struct
|
|||
signed char ontop;
|
||||
int flags;
|
||||
char keep_for_shade;
|
||||
}
|
||||
WinPart;
|
||||
} WinPart;
|
||||
|
||||
struct _border
|
||||
{
|
||||
struct _border {
|
||||
char *name;
|
||||
char *group_border_name;
|
||||
EImageBorder border;
|
||||
|
@ -73,8 +64,7 @@ struct _border
|
|||
ActionClass *aclass;
|
||||
};
|
||||
|
||||
struct _ewinbit
|
||||
{
|
||||
struct _ewinbit {
|
||||
EWin *ewin; /* Belongs to */
|
||||
Win win;
|
||||
int x, y, w, h;
|
||||
|
|
|
@ -41,8 +41,7 @@
|
|||
ButtonPressMask | ButtonReleaseMask | EnterWindowMask | LeaveWindowMask | \
|
||||
PointerMotionMask)
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
Constraints width, height;
|
||||
int xorigin, yorigin;
|
||||
int xabs, xrel;
|
||||
|
@ -50,11 +49,9 @@ typedef struct
|
|||
int xsizerel, xsizeabs;
|
||||
int ysizerel, ysizeabs;
|
||||
char size_from_image;
|
||||
}
|
||||
BGeometry;
|
||||
} BGeometry;
|
||||
|
||||
struct _button
|
||||
{
|
||||
struct _button {
|
||||
EObj o;
|
||||
BGeometry geom;
|
||||
ImageClass *iclass;
|
||||
|
@ -77,8 +74,7 @@ struct _button
|
|||
|
||||
static Ecore_List *button_list = NULL;
|
||||
|
||||
static struct
|
||||
{
|
||||
static struct {
|
||||
Button *button;
|
||||
char loading_user;
|
||||
char move_pending;
|
||||
|
@ -925,8 +921,7 @@ ButtonsSighan(int sig, void *prm __UNUSED__)
|
|||
}
|
||||
}
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
int id;
|
||||
int match;
|
||||
const char *regex;
|
||||
|
|
|
@ -29,8 +29,7 @@
|
|||
#include "e16-ecore_list.h"
|
||||
#include "xwin.h"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
char *name;
|
||||
Window xwin;
|
||||
char *msg;
|
||||
|
|
|
@ -28,21 +28,18 @@
|
|||
|
||||
typedef struct _container Container;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
unsigned int anim_time; /* Animation run time (ms) */
|
||||
} ContainerCfg;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
void *obj;
|
||||
int xo, yo, wo, ho; /* Outer */
|
||||
int xi, yi, wi, hi; /* Inner */
|
||||
EImage *im;
|
||||
} ContainerObject;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
void (*Init) (Container * ct);
|
||||
void (*Exit) (Container * ct, int wm_exit);
|
||||
void (*Signal) (Container * ct, int signal, void *prm);
|
||||
|
@ -52,8 +49,7 @@ typedef struct
|
|||
EImage * im);
|
||||
} ContainerOps;
|
||||
|
||||
struct _container
|
||||
{
|
||||
struct _container {
|
||||
const ContainerOps *ops;
|
||||
const char *wm_name;
|
||||
const char *menu_title;
|
||||
|
|
|
@ -29,8 +29,7 @@
|
|||
#include "emodule.h"
|
||||
#include "xwin.h"
|
||||
|
||||
struct _ecursor
|
||||
{
|
||||
struct _ecursor {
|
||||
char *name;
|
||||
char *file;
|
||||
Cursor cursor;
|
||||
|
|
|
@ -53,15 +53,13 @@
|
|||
|
||||
#define ENLIGHTENMENT_CONF_NUM_DESKTOPS 32
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
Desk *current;
|
||||
Desk *previous;
|
||||
Desk *desk[ENLIGHTENMENT_CONF_NUM_DESKTOPS];
|
||||
unsigned int order[ENLIGHTENMENT_CONF_NUM_DESKTOPS];
|
||||
int drag_x0, drag_y0;
|
||||
}
|
||||
Desktops;
|
||||
} Desktops;
|
||||
|
||||
static void DeskRaise(unsigned int num);
|
||||
static void DeskLower(unsigned int num);
|
||||
|
|
|
@ -34,8 +34,7 @@
|
|||
#define DESK_BG_TIMEOUT 3
|
||||
#define DESK_BG_RECONFIGURE_ALL 4
|
||||
|
||||
struct _desk
|
||||
{
|
||||
struct _desk {
|
||||
EObj o;
|
||||
unsigned int num;
|
||||
char viewable;
|
||||
|
@ -43,8 +42,7 @@ struct _desk
|
|||
Button *tag;
|
||||
int current_area_x;
|
||||
int current_area_y;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
Background *bg;
|
||||
EObj *o;
|
||||
#if USE_COMPOSITE
|
||||
|
@ -55,8 +53,7 @@ struct _desk
|
|||
unsigned long pixel;
|
||||
unsigned int seq_no;
|
||||
} bg;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
int dirty;
|
||||
EObj *latest;
|
||||
char update_client_list;
|
||||
|
|
36
src/dialog.c
36
src/dialog.c
|
@ -34,8 +34,7 @@
|
|||
|
||||
#define DEBUG_DIALOGS 0
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
char horizontal;
|
||||
|
||||
char numeric;
|
||||
|
@ -71,34 +70,29 @@ typedef struct
|
|||
Win border_win;
|
||||
} DItemSlider;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
Win area_win;
|
||||
int w, h;
|
||||
DialogItemCallbackFunc *init_func;
|
||||
DialogItemCallbackFunc *event_func;
|
||||
} DItemArea;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
Win check_win;
|
||||
int check_orig_w, check_orig_h;
|
||||
char onoff;
|
||||
char *onoff_ptr;
|
||||
} DItemCheckButton;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
char *image;
|
||||
} DItemImage;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
char horizontal;
|
||||
} DItemSeparator;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
int num_columns;
|
||||
char border;
|
||||
char homogenous_h;
|
||||
|
@ -107,8 +101,7 @@ typedef struct
|
|||
DItem **items;
|
||||
} DItemTable;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
Win radio_win;
|
||||
int radio_orig_w, radio_orig_h;
|
||||
char onoff;
|
||||
|
@ -119,8 +112,7 @@ typedef struct
|
|||
DialogItemCallbackFunc *event_func;
|
||||
} DItemRadioButton;
|
||||
|
||||
struct _ditem
|
||||
{
|
||||
struct _ditem {
|
||||
int type;
|
||||
Dialog *dlg;
|
||||
DialogCallbackFunc *func;
|
||||
|
@ -140,8 +132,7 @@ struct _ditem
|
|||
int x, y, w, h;
|
||||
Win win;
|
||||
char *text;
|
||||
union
|
||||
{
|
||||
union {
|
||||
DItemCheckButton check_button;
|
||||
DItemTable table;
|
||||
DItemImage image;
|
||||
|
@ -149,8 +140,7 @@ struct _ditem
|
|||
DItemRadioButton radio_button;
|
||||
DItemSlider slider;
|
||||
DItemArea area;
|
||||
}
|
||||
item;
|
||||
} item;
|
||||
|
||||
char realized;
|
||||
char update;
|
||||
|
@ -160,16 +150,14 @@ struct _ditem
|
|||
char clicked;
|
||||
};
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
KeyCode key;
|
||||
DialogCallbackFunc *func;
|
||||
int val;
|
||||
void *data;
|
||||
} DKeyBind;
|
||||
|
||||
struct _dialog
|
||||
{
|
||||
struct _dialog {
|
||||
EWin *ewin;
|
||||
Win win;
|
||||
int w, h;
|
||||
|
|
|
@ -57,8 +57,7 @@ typedef struct _ditem DItem;
|
|||
typedef void (DialogCallbackFunc) (Dialog * d, int val, void *data);
|
||||
typedef void (DialogItemCallbackFunc) (DItem * di, int val, void *data);
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
const char *name;
|
||||
const char *label;
|
||||
const char *title;
|
||||
|
|
|
@ -44,8 +44,7 @@ static const char gray_bits[] = { 0x01, 0x02 };
|
|||
static const char gray3_bits[] = { 0x01, 0x00, 0x04, 0x00 };
|
||||
#endif
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
EObj o;
|
||||
Pixmap mask;
|
||||
GC gc;
|
||||
|
|
|
@ -43,14 +43,12 @@
|
|||
|
||||
#if !USE_ECORE
|
||||
|
||||
struct _ecore_list_node
|
||||
{
|
||||
struct _ecore_list_node {
|
||||
void *data;
|
||||
struct _ecore_list_node *next;
|
||||
};
|
||||
|
||||
struct _ecore_list
|
||||
{
|
||||
struct _ecore_list {
|
||||
Ecore_List_Node *first; /* The first node in the list */
|
||||
Ecore_List_Node *last; /* The last node in the list */
|
||||
Ecore_List_Node *current; /* The current node in the list */
|
||||
|
|
|
@ -91,8 +91,7 @@
|
|||
|
||||
typedef struct _cmhook ECmWinInfo;
|
||||
|
||||
struct _cmhook
|
||||
{
|
||||
struct _cmhook {
|
||||
EObj *next; /* Paint order */
|
||||
EObj *prev; /* Paint order */
|
||||
Pixmap pixmap;
|
||||
|
@ -142,8 +141,7 @@ struct _cmhook
|
|||
#define ECM_OR_ON_MAPUNMAP 2
|
||||
#define ECM_OR_ON_CREATE 3
|
||||
|
||||
static struct
|
||||
{
|
||||
static struct {
|
||||
char enable;
|
||||
char resize_fix_enable;
|
||||
char use_name_pixmap;
|
||||
|
@ -151,27 +149,22 @@ static struct
|
|||
char use_cow;
|
||||
#endif
|
||||
int mode;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
int mode;
|
||||
int offset_x, offset_y;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
int opacity;
|
||||
int radius;
|
||||
} blur;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
int opacity;
|
||||
} sharp;
|
||||
} shadows;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
char enable;
|
||||
unsigned int time; /* Fading time, ms */
|
||||
} fading;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
int mode;
|
||||
int opacity;
|
||||
} override_redirect;
|
||||
|
@ -185,8 +178,7 @@ static struct
|
|||
#define ECM_MODE_WINDOW 2
|
||||
#define ECM_MODE_AUTO 3
|
||||
|
||||
static struct
|
||||
{
|
||||
static struct {
|
||||
int mode;
|
||||
Window root;
|
||||
#if USE_COMPOSITE_OVERLAY_WINDOW
|
||||
|
@ -760,8 +752,7 @@ ECompMgrDamageAll(void)
|
|||
|
||||
static Picture transBlackPicture;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
int size;
|
||||
double *data;
|
||||
} conv;
|
||||
|
|
|
@ -28,8 +28,7 @@
|
|||
#include "eobj.h"
|
||||
#include "etypes.h"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
char enable;
|
||||
int shadow;
|
||||
char fading;
|
||||
|
|
|
@ -29,14 +29,12 @@
|
|||
* Braindead flat ASCII config file implementation
|
||||
*/
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
char *key;
|
||||
char *value;
|
||||
} ECfgFileItem;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
FILE *fs;
|
||||
int nitms;
|
||||
ECfgFileItem *pitms;
|
||||
|
|
|
@ -23,8 +23,7 @@
|
|||
#ifndef _ECONFIG_H_
|
||||
#define _ECONFIG_H_
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
const char *name;
|
||||
void *ptr;
|
||||
char type;
|
||||
|
@ -32,14 +31,12 @@ typedef struct
|
|||
void (*func) (void *item, const char *value);
|
||||
} CfgItem;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
int num;
|
||||
const CfgItem *lst;
|
||||
} CfgItemList;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
typedef enum {
|
||||
ITEM_TYPE_BOOL,
|
||||
ITEM_TYPE_INT,
|
||||
ITEM_TYPE_HEX,
|
||||
|
|
|
@ -37,8 +37,7 @@
|
|||
#define D2printf(fmt...)
|
||||
#endif
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
char *name;
|
||||
DBusConnection *conn;
|
||||
DBusWatch *watch;
|
||||
|
|
|
@ -107,8 +107,7 @@ glx_funcs_init(void)
|
|||
|
||||
static void EobjTexturesFree(void);
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
XVisualInfo *vi;
|
||||
GLXContext ctx;
|
||||
GLXFBConfig fbc;
|
||||
|
|
|
@ -30,8 +30,7 @@
|
|||
|
||||
typedef struct _etexture ETexture;
|
||||
|
||||
struct _etexture
|
||||
{
|
||||
struct _etexture {
|
||||
unsigned int texture;
|
||||
unsigned short target;
|
||||
unsigned char type;
|
||||
|
|
|
@ -29,8 +29,7 @@
|
|||
typedef void EImage;
|
||||
typedef void EImageColorModifier;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
int left, right, top, bottom;
|
||||
} EImageBorder;
|
||||
|
||||
|
|
|
@ -26,8 +26,7 @@
|
|||
#include "econfig.h"
|
||||
#include "ipc.h"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
const char *name;
|
||||
const char *nick;
|
||||
void (*Signal) (int sig, void *prm);
|
||||
|
@ -35,8 +34,7 @@ typedef struct
|
|||
CfgItemList cfg;
|
||||
} EModule;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
typedef enum {
|
||||
ESIGNAL_NONE,
|
||||
ESIGNAL_INIT,
|
||||
ESIGNAL_CONFIGURE,
|
||||
|
|
|
@ -594,8 +594,7 @@ void
|
|||
EobjsSlideBy(EObj ** peo, int num, int dx, int dy, int speed)
|
||||
{
|
||||
int i, k, x, y;
|
||||
struct _xy
|
||||
{
|
||||
struct _xy {
|
||||
int x, y;
|
||||
} *xy;
|
||||
|
||||
|
|
|
@ -28,8 +28,7 @@
|
|||
|
||||
typedef struct _eobj EObj;
|
||||
|
||||
struct _eobj
|
||||
{
|
||||
struct _eobj {
|
||||
Win win; /* The top level window */
|
||||
short type; /* Ewin, button, other, ... */
|
||||
short ilayer; /* Internal stacking layer */
|
||||
|
@ -48,8 +47,7 @@ struct _eobj
|
|||
unsigned fade:1; /* Enable fading */
|
||||
unsigned fading:1; /* Is fading */
|
||||
unsigned ghost:1; /* Ghost window */
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
char *wm_name;
|
||||
char *wm_res_name;
|
||||
char *wm_res_class;
|
||||
|
|
|
@ -56,14 +56,12 @@ static const char *EventName(unsigned int type);
|
|||
* Server extension handling
|
||||
*/
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
int event_base, error_base;
|
||||
int major, minor;
|
||||
} EServerExtData;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
const char *name;
|
||||
unsigned int ix;
|
||||
int (*query_ext) (Display * dpy, int *event, int *error);
|
||||
|
@ -206,8 +204,7 @@ ExtQuery(const EServerExt * ext)
|
|||
* File descriptor handling
|
||||
*/
|
||||
|
||||
struct _EventFdDesc
|
||||
{
|
||||
struct _EventFdDesc {
|
||||
const char *name;
|
||||
int fd;
|
||||
void (*handler) (void);
|
||||
|
|
|
@ -23,8 +23,7 @@
|
|||
#ifndef _EWIN_OPS_H_
|
||||
#define _EWIN_OPS_H_
|
||||
|
||||
typedef enum
|
||||
{
|
||||
typedef enum {
|
||||
EWIN_OP_INVALID,
|
||||
|
||||
EWIN_OP_BORDER,
|
||||
|
@ -77,8 +76,7 @@ typedef enum
|
|||
EWIN_OP_NO_REDIRECT,
|
||||
} winop_e;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
const char *name;
|
||||
char len;
|
||||
char ok_ipc;
|
||||
|
|
15
src/ewins.c
15
src/ewins.c
|
@ -1794,11 +1794,9 @@ EwinWarpTo(EWin * ewin)
|
|||
Mode.mouse_over_ewin = ewin;
|
||||
}
|
||||
|
||||
typedef union
|
||||
{
|
||||
typedef union {
|
||||
unsigned int all;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
unsigned char rsvd;
|
||||
unsigned char inh_app;
|
||||
unsigned char inh_user;
|
||||
|
@ -1806,11 +1804,9 @@ typedef union
|
|||
} f;
|
||||
} EWinMiscFlags;
|
||||
|
||||
typedef union
|
||||
{
|
||||
typedef union {
|
||||
unsigned int all;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
unsigned nua:1;
|
||||
unsigned ctf:1;
|
||||
unsigned nbg:1;
|
||||
|
@ -1912,8 +1908,7 @@ EwinSlideIn(int val __UNUSED__, void *data)
|
|||
/*
|
||||
* Change requests
|
||||
*/
|
||||
static struct
|
||||
{
|
||||
static struct {
|
||||
unsigned int flags;
|
||||
EWin ewin_old;
|
||||
} EWinChanges;
|
||||
|
|
51
src/ewins.h
51
src/ewins.h
|
@ -34,11 +34,9 @@
|
|||
#define OPSRC_USER 2
|
||||
#define OPSRC_WM 3
|
||||
|
||||
typedef union
|
||||
{
|
||||
typedef union {
|
||||
unsigned char all:8;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
unsigned char rsvd:2;
|
||||
unsigned char border:1; /* W */
|
||||
unsigned char close:1; /* AU */
|
||||
|
@ -56,8 +54,7 @@ typedef union
|
|||
#define EwinInhGetWM(ewin, item) (ewin->inh_wm.b.item)
|
||||
#define EwinInhSetWM(ewin, item, on) ewin->inh_wm.b.item = (on)
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
void (*Init) (EWin * ewin);
|
||||
void (*Layout) (EWin * ewin, int *px, int *py, int *pw,
|
||||
int *ph);
|
||||
|
@ -65,8 +62,7 @@ typedef struct
|
|||
void (*Close) (EWin * ewin);
|
||||
} EWinOps;
|
||||
|
||||
struct _ewin
|
||||
{
|
||||
struct _ewin {
|
||||
EObj o;
|
||||
char type;
|
||||
Win win_container;
|
||||
|
@ -76,8 +72,7 @@ struct _ewin
|
|||
const Border *previous_border;
|
||||
EWinBit *bits;
|
||||
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
Win win;
|
||||
int x, y, w, h, bw;
|
||||
int grav;
|
||||
|
@ -85,8 +80,7 @@ struct _ewin
|
|||
long event_mask;
|
||||
} client;
|
||||
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
char state;
|
||||
char visibility;
|
||||
char shaped;
|
||||
|
@ -132,8 +126,7 @@ struct _ewin
|
|||
unsigned inhibit_actions:1;
|
||||
unsigned inhibit_focus:1;
|
||||
} state;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
/* User config */
|
||||
unsigned int focused_opacity;
|
||||
unsigned never_use_area:1;
|
||||
|
@ -160,8 +153,7 @@ struct _ewin
|
|||
EWinInhibit inh_app;
|
||||
EWinInhibit inh_user;
|
||||
EWinInhibit inh_wm;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
char *wm_icon_name;
|
||||
char *wm_role;
|
||||
char *wm_command;
|
||||
|
@ -192,8 +184,7 @@ struct _ewin
|
|||
|
||||
char is_group_leader;
|
||||
} icccm;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
unsigned valid:1;
|
||||
unsigned decor_border:1;
|
||||
unsigned decor_resizeh:1;
|
||||
|
@ -207,8 +198,7 @@ struct _ewin
|
|||
unsigned func_maximize:1;
|
||||
unsigned func_close:1;
|
||||
} mwm;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
char *wm_name;
|
||||
char *wm_icon_name;
|
||||
unsigned int *wm_icon, wm_icon_len;
|
||||
|
@ -218,11 +208,9 @@ struct _ewin
|
|||
XID sync_request_counter;
|
||||
long long sync_request_count;
|
||||
#endif
|
||||
union
|
||||
{
|
||||
union {
|
||||
unsigned char all;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
unsigned desktop:1;
|
||||
unsigned dock:1;
|
||||
unsigned toolbar:1;
|
||||
|
@ -234,18 +222,15 @@ struct _ewin
|
|||
} b;
|
||||
} type;
|
||||
} ewmh;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
signed char gravity;
|
||||
int ax, ay; /* Current placed area */
|
||||
int gx, gy; /* Distance to edge given by gravity */
|
||||
} place;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
int left, right, top, bottom;
|
||||
} strut;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
char shape;
|
||||
char border;
|
||||
} update;
|
||||
|
@ -264,13 +249,11 @@ struct _ewin
|
|||
int head; /* Unused? */
|
||||
|
||||
int vx, vy; /* Position in virtual root */
|
||||
struct
|
||||
{ /* Saved state before maximization */
|
||||
struct { /* Saved state before maximization */
|
||||
int x, y; /* Position */
|
||||
int w, h; /* Size */
|
||||
} save_max;
|
||||
struct
|
||||
{ /* Saved state before fullscreen */
|
||||
struct { /* Saved state before fullscreen */
|
||||
int x, y; /* Position */
|
||||
int w, h; /* Size */
|
||||
int layer; /* Layer */
|
||||
|
|
|
@ -23,8 +23,7 @@
|
|||
#include "E.h"
|
||||
#include "e16-ecore_list.h"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
char *name;
|
||||
char *font;
|
||||
} FontAlias;
|
||||
|
|
12
src/fx.c
12
src/fx.c
|
@ -40,8 +40,7 @@
|
|||
#define FX_OP_STOP 2
|
||||
#define FX_OP_TOGGLE 3
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
const char *name;
|
||||
void (*init_func) (const char *name);
|
||||
void (*desk_func) (void);
|
||||
|
@ -49,8 +48,7 @@ typedef struct
|
|||
void (*pause_func) (void);
|
||||
char enabled;
|
||||
char paused;
|
||||
}
|
||||
FXHandler;
|
||||
} FXHandler;
|
||||
|
||||
/****************************** RIPPLES *************************************/
|
||||
|
||||
|
@ -172,13 +170,11 @@ static Window fx_raindrops_win = None;
|
|||
static int fx_raindrops_number = 4;
|
||||
static PixImg *fx_raindrops_draw = NULL;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
int x, y;
|
||||
int count;
|
||||
PixImg *buf;
|
||||
}
|
||||
DropContext;
|
||||
} DropContext;
|
||||
|
||||
static DropContext fx_raindrops[4];
|
||||
|
||||
|
|
|
@ -50,18 +50,15 @@
|
|||
#define D2printf(fmt...)
|
||||
#endif /* ENABLE_DEBUG */
|
||||
|
||||
static struct
|
||||
{
|
||||
static struct {
|
||||
char mode;
|
||||
} Conf_glwin;
|
||||
|
||||
static struct
|
||||
{
|
||||
static struct {
|
||||
char active;
|
||||
} Mode_glwin;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
EObj *eo;
|
||||
char grabbing;
|
||||
EWin *ewin;
|
||||
|
|
|
@ -41,14 +41,12 @@
|
|||
|
||||
static Ecore_List *group_list = NULL;
|
||||
|
||||
static struct
|
||||
{
|
||||
static struct {
|
||||
GroupConfig dflt;
|
||||
char swapmove;
|
||||
} Conf_groups;
|
||||
|
||||
static struct
|
||||
{
|
||||
static struct {
|
||||
Group *current;
|
||||
} Mode_groups;
|
||||
|
||||
|
@ -741,8 +739,7 @@ ChooseGroupDialog(EWin * ewin, const char *message, char group_select,
|
|||
DialogShowSimple(&DlgGroupChoose, (void *)message);
|
||||
}
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
EWin *ewin;
|
||||
GroupConfig cfg; /* Dialog data for current group */
|
||||
GroupConfig *cfgs; /* Work copy of ewin group cfgs */
|
||||
|
|
|
@ -40,8 +40,7 @@
|
|||
#define GROUP_ACTION_SET_WINDOW_BORDER 8
|
||||
#define GROUP_ACTION_RAISE_LOWER 9
|
||||
|
||||
typedef struct _groupconfig
|
||||
{
|
||||
typedef struct _groupconfig {
|
||||
char iconify;
|
||||
char kill;
|
||||
char mirror;
|
||||
|
@ -50,11 +49,9 @@ typedef struct _groupconfig
|
|||
char set_border;
|
||||
char shade;
|
||||
char stick;
|
||||
}
|
||||
GroupConfig;
|
||||
} GroupConfig;
|
||||
|
||||
struct _group
|
||||
{
|
||||
struct _group {
|
||||
int index;
|
||||
EWin **members;
|
||||
int num_members;
|
||||
|
|
|
@ -353,10 +353,8 @@ HintsSetRootInfo(Win win, Pixmap pmap, unsigned int color)
|
|||
1);
|
||||
}
|
||||
|
||||
typedef union
|
||||
{
|
||||
struct
|
||||
{
|
||||
typedef union {
|
||||
struct {
|
||||
unsigned version:8;
|
||||
unsigned rsvd:22;
|
||||
unsigned docked:1;
|
||||
|
@ -567,8 +565,7 @@ EHintsSetInfoOnAll(void)
|
|||
* Selections.
|
||||
*/
|
||||
|
||||
struct _selection
|
||||
{
|
||||
struct _selection {
|
||||
Atom atom;
|
||||
Time time;
|
||||
Win win;
|
||||
|
|
|
@ -33,8 +33,7 @@
|
|||
|
||||
#define DEBUG_HIWIN 0
|
||||
|
||||
struct _hiwin
|
||||
{
|
||||
struct _hiwin {
|
||||
EObj o;
|
||||
EWin *ewin;
|
||||
int zoom;
|
||||
|
@ -46,8 +45,7 @@ struct _hiwin
|
|||
EImage *im;
|
||||
};
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
void (*init) (Hiwin * phi);
|
||||
void (*draw) (Hiwin * phi);
|
||||
void (*fini) (Hiwin * phi, int shown);
|
||||
|
|
24
src/iclass.c
24
src/iclass.c
|
@ -35,26 +35,21 @@
|
|||
#define ENABLE_DESTROY 0 /* Broken */
|
||||
|
||||
#if ENABLE_COLOR_MODIFIERS
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
int num;
|
||||
unsigned char *px;
|
||||
unsigned char *py;
|
||||
unsigned char map[256];
|
||||
}
|
||||
ModCurve;
|
||||
} ModCurve;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
char *name;
|
||||
ModCurve red, green, blue;
|
||||
unsigned int ref_count;
|
||||
}
|
||||
ColorModifierClass;
|
||||
} ColorModifierClass;
|
||||
#endif
|
||||
|
||||
struct _imagestate
|
||||
{
|
||||
struct _imagestate {
|
||||
char *im_file;
|
||||
char *real_file;
|
||||
char got_colors;
|
||||
|
@ -70,17 +65,14 @@ struct _imagestate
|
|||
#endif
|
||||
};
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
ImageState *normal;
|
||||
ImageState *hilited;
|
||||
ImageState *clicked;
|
||||
ImageState *disabled;
|
||||
}
|
||||
ImageStateArray;
|
||||
} ImageStateArray;
|
||||
|
||||
struct _imageclass
|
||||
{
|
||||
struct _imageclass {
|
||||
char *name;
|
||||
ImageStateArray norm, active, sticky, sticky_active;
|
||||
EImageBorder padding;
|
||||
|
|
|
@ -26,8 +26,7 @@
|
|||
|
||||
#include "eimage.h"
|
||||
|
||||
typedef enum
|
||||
{
|
||||
typedef enum {
|
||||
EWIN_ICON_TYPE_APP,
|
||||
EWIN_ICON_TYPE_IMG,
|
||||
EWIN_ICON_TYPE_SNAP,
|
||||
|
|
|
@ -1236,8 +1236,7 @@ IPC_Warp(const char *params)
|
|||
}
|
||||
|
||||
#if ENABLE_IPC_INSERT_KEYS
|
||||
struct _keyset
|
||||
{
|
||||
struct _keyset {
|
||||
const char *sym;
|
||||
int state;
|
||||
const char *ch;
|
||||
|
|
|
@ -27,8 +27,7 @@
|
|||
#include "etypes.h"
|
||||
#include "util.h"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
void (*func) (const char *line);
|
||||
const char *name;
|
||||
const char *nick;
|
||||
|
@ -36,8 +35,7 @@ typedef struct
|
|||
const char *extended_help_text;
|
||||
} IpcItem;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
int num;
|
||||
const IpcItem *lst;
|
||||
} IpcItemList;
|
||||
|
|
|
@ -272,16 +272,14 @@ EwcWcsToStr(const wchar_t * wcs, int wcl, char *str, int len)
|
|||
* Setup
|
||||
*/
|
||||
|
||||
static struct
|
||||
{
|
||||
static struct {
|
||||
char *internal;
|
||||
char *exported;
|
||||
} Conf_locale =
|
||||
{
|
||||
NULL, NULL};
|
||||
|
||||
static struct
|
||||
{
|
||||
static struct {
|
||||
char init;
|
||||
char *env_language;
|
||||
char *env_lc_all;
|
||||
|
|
|
@ -43,8 +43,7 @@
|
|||
#define USE_ANIMATOR 1
|
||||
|
||||
/* Magnifier window */
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
EWin *ewin;
|
||||
const char *title;
|
||||
int cx, cy; /* Center */
|
||||
|
|
|
@ -65,8 +65,7 @@ static void RunInitPrograms(void);
|
|||
static int eoptind = 0;
|
||||
const char *eoptarg = NULL;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
char sopt;
|
||||
char arg;
|
||||
const char *lopt;
|
||||
|
|
15
src/menus.c
15
src/menus.c
|
@ -48,8 +48,7 @@
|
|||
|
||||
#define MENU_UNLOAD_CHECK_IMTERVAL 300 /* Seconds */
|
||||
|
||||
static struct
|
||||
{
|
||||
static struct {
|
||||
Menu *first;
|
||||
Menu *active;
|
||||
EWin *context_ewin;
|
||||
|
@ -57,8 +56,7 @@ static struct
|
|||
char just_shown;
|
||||
} Mode_menus;
|
||||
|
||||
struct _menustyle
|
||||
{
|
||||
struct _menustyle {
|
||||
char *name;
|
||||
TextClass *tclass;
|
||||
ImageClass *bg_iclass;
|
||||
|
@ -72,8 +70,7 @@ struct _menustyle
|
|||
unsigned int ref_count;
|
||||
};
|
||||
|
||||
struct _menuitem
|
||||
{
|
||||
struct _menuitem {
|
||||
Menu *menu;
|
||||
ImageClass *icon_iclass;
|
||||
char *text;
|
||||
|
@ -91,8 +88,7 @@ struct _menuitem
|
|||
short text_y;
|
||||
};
|
||||
|
||||
struct _menu
|
||||
{
|
||||
struct _menu {
|
||||
EWin *ewin;
|
||||
Win win;
|
||||
PmapMask pmm;
|
||||
|
@ -1494,8 +1490,7 @@ MenusHandleMotion(void)
|
|||
}
|
||||
#endif
|
||||
|
||||
struct _mdata
|
||||
{
|
||||
struct _mdata {
|
||||
Menu *m;
|
||||
MenuItem *mi;
|
||||
};
|
||||
|
|
|
@ -34,8 +34,7 @@
|
|||
#include "timers.h"
|
||||
#include "xwin.h"
|
||||
|
||||
static struct
|
||||
{
|
||||
static struct {
|
||||
EWin *ewin;
|
||||
int mode;
|
||||
int start_x, start_y;
|
||||
|
|
12
src/mwm.c
12
src/mwm.c
|
@ -59,15 +59,13 @@
|
|||
static Atom _MOTIF_WM_HINTS = 0;
|
||||
|
||||
/* Motif window hints */
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
long flags;
|
||||
long functions;
|
||||
long decorations;
|
||||
long inputMode;
|
||||
long status;
|
||||
}
|
||||
MWMHints;
|
||||
} MWMHints;
|
||||
|
||||
void
|
||||
MWM_GetHints(EWin * ewin, Atom atom_change)
|
||||
|
@ -180,12 +178,10 @@ void
|
|||
MWM_SetInfo(void)
|
||||
{
|
||||
Atom a1;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
long flags;
|
||||
Window win;
|
||||
}
|
||||
mwminfo;
|
||||
} mwminfo;
|
||||
|
||||
a1 = XInternAtom(disp, "_MOTIF_WM_INFO", False);
|
||||
mwminfo.flags = 2;
|
||||
|
|
15
src/pager.c
15
src/pager.c
|
@ -63,8 +63,7 @@
|
|||
#define EwinGetVX2(ew) (ew->vx + EoGetW(ew))
|
||||
#define EwinGetVY2(ew) (ew->vy + EoGetH(ew))
|
||||
|
||||
static struct
|
||||
{
|
||||
static struct {
|
||||
char enable;
|
||||
char zoom;
|
||||
char title;
|
||||
|
@ -76,16 +75,14 @@ static struct
|
|||
int menu_button;
|
||||
} Conf_pagers;
|
||||
|
||||
static struct
|
||||
{
|
||||
static struct {
|
||||
int zoom;
|
||||
Idler *idler;
|
||||
char update_pending;
|
||||
char timer_pending;
|
||||
} Mode_pagers;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
EWin *ewin;
|
||||
Win win;
|
||||
int w, h;
|
||||
|
@ -749,8 +746,7 @@ PagerShow(Pager * p)
|
|||
EwinShow(ewin);
|
||||
}
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
Desk *dsk;
|
||||
void (*func) (Pager * p, void *prm);
|
||||
void *prm;
|
||||
|
@ -778,8 +774,7 @@ PagersForeach(Desk * dsk, void (*func) (Pager * p, void *prm), void *prm)
|
|||
ecore_list_for_each(pager_list, _PagersForeachFunc, &data);
|
||||
}
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
int why;
|
||||
int x1, y1, x2, y2;
|
||||
} pager_update_data;
|
||||
|
|
|
@ -25,8 +25,7 @@
|
|||
|
||||
#include <X11/extensions/XShm.h>
|
||||
|
||||
typedef struct _PixImg
|
||||
{
|
||||
typedef struct _PixImg {
|
||||
XImage *xim;
|
||||
XShmSegmentInfo *shminfo;
|
||||
Pixmap pmap;
|
||||
|
|
|
@ -27,8 +27,7 @@
|
|||
#include "tclass.h"
|
||||
#include "xwin.h"
|
||||
|
||||
struct _progressbar
|
||||
{
|
||||
struct _progressbar {
|
||||
EObj *win;
|
||||
EObj *n_win;
|
||||
EObj *p_win;
|
||||
|
|
|
@ -30,8 +30,7 @@
|
|||
#include <X11/extensions/Xinerama.h>
|
||||
#endif
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
int type;
|
||||
int head;
|
||||
int x, y;
|
||||
|
|
|
@ -39,8 +39,7 @@
|
|||
ButtonPressMask | ButtonReleaseMask | EnterWindowMask | LeaveWindowMask | \
|
||||
PointerMotionMask)
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
EObj o;
|
||||
char *name;
|
||||
char direction;
|
||||
|
@ -54,8 +53,7 @@ static void SlideoutCalcSize(Slideout * s);
|
|||
|
||||
static Ecore_List *slideout_list = NULL;
|
||||
|
||||
static struct
|
||||
{
|
||||
static struct {
|
||||
Slideout *active;
|
||||
} Mode_slideouts =
|
||||
{
|
||||
|
|
12
src/snaps.c
12
src/snaps.c
|
@ -35,8 +35,7 @@
|
|||
#include "timers.h"
|
||||
#include "xwin.h"
|
||||
|
||||
struct _snapshot
|
||||
{
|
||||
struct _snapshot {
|
||||
char *name;
|
||||
char *win_title;
|
||||
char *win_name;
|
||||
|
@ -550,12 +549,10 @@ SnapshotEwinRemove(EWin * ewin)
|
|||
/*
|
||||
* Snapshot dialogs
|
||||
*/
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
Window client;
|
||||
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
char title;
|
||||
char name;
|
||||
char clss;
|
||||
|
@ -946,8 +943,7 @@ SnapshotEwinDialog(const EWin * ewin)
|
|||
* _another_ global var, or a wrapper struct to pass data to the
|
||||
* callback funcs besides the dialog itself -- this is much easier */
|
||||
|
||||
typedef struct _remwinlist
|
||||
{
|
||||
typedef struct _remwinlist {
|
||||
Snapshot *snap;
|
||||
char remove;
|
||||
} RememberWinList;
|
||||
|
|
|
@ -29,8 +29,7 @@
|
|||
#include "settings.h"
|
||||
#include "sound.h"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
char *name;
|
||||
char *file;
|
||||
Sample *sample;
|
||||
|
@ -38,8 +37,7 @@ typedef struct
|
|||
|
||||
#define SC_NAME(sc) ((sc) ? (sc)->name : "(none)")
|
||||
|
||||
static struct
|
||||
{
|
||||
static struct {
|
||||
char enable;
|
||||
char *theme;
|
||||
} Conf_sound;
|
||||
|
|
|
@ -25,8 +25,7 @@
|
|||
|
||||
#include "config.h"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
unsigned int channels;
|
||||
unsigned int bit_per_sample;
|
||||
unsigned int rate;
|
||||
|
@ -36,8 +35,7 @@ typedef struct
|
|||
|
||||
typedef struct _sample Sample;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
int (*Init) (void);
|
||||
void (*Exit) (void);
|
||||
Sample *(*SampleLoad) (const char *file);
|
||||
|
|
|
@ -30,8 +30,7 @@
|
|||
#define Estrdup strdup
|
||||
#endif
|
||||
|
||||
struct _sample
|
||||
{
|
||||
struct _sample {
|
||||
SoundSampleData ssd;
|
||||
int id;
|
||||
};
|
||||
|
|
|
@ -42,8 +42,7 @@
|
|||
#define D4printf(fmt...)
|
||||
#endif
|
||||
|
||||
struct _sample
|
||||
{
|
||||
struct _sample {
|
||||
SoundSampleData ssd;
|
||||
char *name;
|
||||
unsigned int written;
|
||||
|
|
|
@ -32,8 +32,7 @@
|
|||
|
||||
typedef struct _eobjlist EobjList;
|
||||
|
||||
struct _eobjlist
|
||||
{
|
||||
struct _eobjlist {
|
||||
const char *name;
|
||||
int nalloc;
|
||||
int nwins;
|
||||
|
|
|
@ -31,8 +31,7 @@
|
|||
#define DEBUG_SYSTRAY 0
|
||||
|
||||
/* Systray object info */
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
Win win;
|
||||
char mapped;
|
||||
} SWin;
|
||||
|
|
18
src/tclass.h
18
src/tclass.h
|
@ -48,8 +48,7 @@
|
|||
#define FONT_TYPE_PANGO_XFT 5 /* Pango-Xft */
|
||||
#endif
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
int (*Load) (TextState * ts, const char *name);
|
||||
void (*Destroy) (TextState * ts);
|
||||
void (*TextSize) (TextState * ts, const char *text, int len,
|
||||
|
@ -64,13 +63,11 @@ typedef struct
|
|||
void (*FdcSetColor) (TextState * ts, EColor * xc);
|
||||
} FontOps;
|
||||
|
||||
struct _textstate
|
||||
{
|
||||
struct _textstate {
|
||||
char *fontname;
|
||||
char type;
|
||||
char need_utf8;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
char mode;
|
||||
char orientation;
|
||||
char effect;
|
||||
|
@ -81,17 +78,14 @@ struct _textstate
|
|||
const FontOps *ops;
|
||||
};
|
||||
|
||||
struct _textclass
|
||||
{
|
||||
struct _textclass {
|
||||
char *name;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
TextState *normal;
|
||||
TextState *hilited;
|
||||
TextState *clicked;
|
||||
TextState *disabled;
|
||||
}
|
||||
norm , active, sticky, sticky_active;
|
||||
} norm , active, sticky, sticky_active;
|
||||
int justification;
|
||||
unsigned int ref_count;
|
||||
};
|
||||
|
|
|
@ -401,8 +401,7 @@ TextstateTextFitMB(TextState * ts, char **ptext, int *pw, int textwidth_limit)
|
|||
*/
|
||||
extern const FontOps FontOpsXfs;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
XFontSet font;
|
||||
int ascent;
|
||||
Win win;
|
||||
|
@ -519,8 +518,7 @@ const FontOps FontOpsXfs = {
|
|||
*/
|
||||
extern const FontOps FontOpsXfont;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
XFontStruct *font;
|
||||
Win win;
|
||||
Drawable draw;
|
||||
|
@ -649,8 +647,7 @@ TsTextDraw(TextState * ts, int x, int y, const char *text, int len)
|
|||
ts->ops->TextDraw(ts, x, y, text, len);
|
||||
}
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
const char *type;
|
||||
const FontOps *ops;
|
||||
char checked;
|
||||
|
|
|
@ -37,8 +37,7 @@ static PangoContext *_pango_ctx = NULL;
|
|||
|
||||
/* Beware! The layout of FontCtxPangoXft must match FontCtxXft
|
||||
* in order to reuse the _xft_Fdc... functions. */
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
PangoFontDescription *font;
|
||||
Win win;
|
||||
Drawable draw;
|
||||
|
|
|
@ -33,8 +33,7 @@
|
|||
*/
|
||||
__EXPORT__ extern const FontOps FontOps_xft;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
XftFont *font;
|
||||
Win win;
|
||||
Drawable draw;
|
||||
|
|
|
@ -27,8 +27,7 @@
|
|||
#include <sys/time.h>
|
||||
|
||||
typedef struct _qentry Qentry;
|
||||
struct _qentry
|
||||
{
|
||||
struct _qentry {
|
||||
char *name;
|
||||
double at_time;
|
||||
void (*func) (int val, void *data);
|
||||
|
@ -179,8 +178,7 @@ static Ecore_List *idler_list = NULL;
|
|||
|
||||
typedef void (IdlerFunc) (void *data);
|
||||
|
||||
struct _idler
|
||||
{
|
||||
struct _idler {
|
||||
int order;
|
||||
IdlerFunc *func;
|
||||
void *data;
|
||||
|
@ -239,8 +237,7 @@ static Ecore_List *animator_list = NULL;
|
|||
|
||||
typedef int (AnimatorFunc) (void *data);
|
||||
|
||||
struct _animator
|
||||
{
|
||||
struct _animator {
|
||||
char *name;
|
||||
AnimatorFunc *func;
|
||||
void *data;
|
||||
|
|
|
@ -37,23 +37,20 @@
|
|||
|
||||
static Ecore_List *tt_list = NULL;
|
||||
|
||||
static struct
|
||||
{
|
||||
static struct {
|
||||
char enable;
|
||||
char showroottooltip;
|
||||
int delay; /* milliseconds */
|
||||
} Conf_tooltips;
|
||||
|
||||
static struct
|
||||
{
|
||||
static struct {
|
||||
int inhibit;
|
||||
char root_motion_mask_set;
|
||||
CB_GetAclass *ac_func;
|
||||
void *ac_data;
|
||||
} Mode_tooltips;
|
||||
|
||||
struct _tooltip
|
||||
{
|
||||
struct _tooltip {
|
||||
const char *name;
|
||||
ImageClass *iclass[5];
|
||||
TextClass *tclass;
|
||||
|
|
|
@ -102,8 +102,7 @@ EFont_draw_string(EImage * im, EFont * f, int x, int y,
|
|||
imlib_text_draw(x, y - imlib_get_font_ascent(), text);
|
||||
}
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
EFont *font;
|
||||
EImage *im;
|
||||
int r, g, b;
|
||||
|
|
|
@ -45,15 +45,13 @@
|
|||
#include "xwin.h"
|
||||
#include <X11/keysym.h>
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
EWin *ewin;
|
||||
Win win;
|
||||
char *txt;
|
||||
} WarplistItem;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
EObj o;
|
||||
TextClass *tc;
|
||||
ImageClass *ic;
|
||||
|
|
|
@ -33,8 +33,7 @@
|
|||
|
||||
typedef struct _windowmatch WindowMatch;
|
||||
|
||||
struct _windowmatch
|
||||
{
|
||||
struct _windowmatch {
|
||||
char *name;
|
||||
/* Match criteria */
|
||||
char match;
|
||||
|
@ -573,8 +572,7 @@ WindowMatchEobjTest(const WindowMatch * wm, const EObj * eo)
|
|||
}
|
||||
#endif
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
int type;
|
||||
const EWin *ewin;
|
||||
} wmatch_type_data;
|
||||
|
|
15
src/xwin.h
15
src/xwin.h
|
@ -58,20 +58,17 @@ typedef void (EventCallbackFunc) (Win win, XEvent * ev, void *prm);
|
|||
|
||||
#define EXPOSE_WIN 1
|
||||
#if EXPOSE_WIN || DECLARE_WIN
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
EventCallbackFunc *func;
|
||||
void *prm;
|
||||
} EventCallbackItem;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
int num;
|
||||
EventCallbackItem *lst;
|
||||
} EventCallbackList;
|
||||
|
||||
struct _xwin
|
||||
{
|
||||
struct _xwin {
|
||||
struct _xwin *next;
|
||||
struct _xwin *prev;
|
||||
EventCallbackList cbl;
|
||||
|
@ -219,8 +216,7 @@ Pixmap EWindowGetShapePixmap(Win win);
|
|||
Bool EQueryPointer(Win win, int *px, int *py,
|
||||
Window * pchild, unsigned int *pmask);
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
unsigned long pixel;
|
||||
unsigned char alpha, red, green, blue;
|
||||
} EColor;
|
||||
|
@ -257,8 +253,7 @@ GC EXCreateGC(Drawable draw, unsigned long mask,
|
|||
XGCValues * val);
|
||||
int EXFreeGC(GC gc);
|
||||
|
||||
typedef struct
|
||||
{
|
||||
typedef struct {
|
||||
char type;
|
||||
Pixmap pmap;
|
||||
Pixmap mask;
|
||||
|
|
Loading…
Reference in New Issue