@@ -29,7 +29,7 @@ static int fit_in(int value, int min, int max)
2929
3030/* Get graphic context from a hex color specification string */
3131/* NULL is returned in case of a parse error. */
32- static GC gc_from_string (x_context_t x , const char * hexcolorstring )
32+ static GC gc_from_string (X_context x , const char * hexcolorstring )
3333{
3434 XColor color ;
3535 GC gc = XCreateGC (x .display , x .window , 0 , NULL );
@@ -47,7 +47,7 @@ static GC gc_from_string(x_context_t x, const char *hexcolorstring)
4747}
4848
4949/* Draw an empty bar with the given border color */
50- static void draw_empty (x_context_t x , geometry_context_t g , gc_colorset_t color )
50+ static void draw_empty (X_context x , Geometry_context g , Gc_colorset color )
5151{
5252 /* Outline */
5353 XFillRectangle (x .display , x .window , color .bg , 0 , 0 ,
@@ -64,14 +64,13 @@ static void draw_empty(x_context_t x, geometry_context_t g, gc_colorset_t color)
6464}
6565
6666/* Draw a given length of filled bar with the given color */
67- static void draw_content (x_context_t x , geometry_context_t g , int length ,
68- GC color )
67+ static void draw_content (X_context x , Geometry_context g , int length , GC color )
6968{
7069 XFillRectangle (x .display , x .window , color , g .outline + g .border + g .padding ,
7170 g .outline + g .border + g .padding , length , g .height );
7271}
7372/* Draw a separator (padding-sized gap) at the given position */
74- static void draw_separator (x_context_t x , geometry_context_t g , int position ,
73+ static void draw_separator (X_context x , Geometry_context g , int position ,
7574 GC color )
7675{
7776 XFillRectangle (x .display , x .window , color ,
@@ -82,9 +81,9 @@ static void draw_separator(x_context_t x, geometry_context_t g, int position,
8281/* PUBLIC Returns a new display context from a given configuration. If the
8382 * .x.display field of the returned display context is NULL, display could not
8483 * have been opened.*/
85- display_context_t init (style_t conf )
84+ Display_context init (Style conf )
8685{
87- display_context_t dc ;
86+ Display_context dc ;
8887 Window root ;
8988 XSetWindowAttributes window_attributes ;
9089 int topleft_x ;
@@ -171,13 +170,13 @@ display_context_t init(style_t conf)
171170}
172171
173172/* PUBLIC Show a bar filled at value/cap in normal or alternative mode */
174- display_context_t show (display_context_t dc , int value , int cap ,
175- overflow_mode_t overflow_mode , show_mode_t show_mode )
173+ Display_context show (Display_context dc , int value , int cap ,
174+ Overflow_mode overflow_mode , Show_mode show_mode )
176175{
177- display_context_t newdc = dc ;
176+ Display_context newdc = dc ;
178177
179- gc_colorset_t colorset ;
180- gc_colorset_t colorset_overflow_proportional ;
178+ Gc_colorset colorset ;
179+ Gc_colorset colorset_overflow_proportional ;
181180
182181 if (!dc .x .mapped )
183182 {
@@ -228,9 +227,9 @@ display_context_t show(display_context_t dc, int value, int cap,
228227}
229228
230229/* PUBLIC Hide the window */
231- display_context_t hide (display_context_t dc )
230+ Display_context hide (Display_context dc )
232231{
233- display_context_t newdc = dc ;
232+ Display_context newdc = dc ;
234233
235234 if (dc .x .mapped )
236235 {
0 commit comments