[titlebar] Rename Titlebar to titlebar_t
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
eb1a9bd69c
commit
59f8e36969
2
config.c
2
config.c
|
@ -281,7 +281,7 @@ statusbar_widgets_create(cfg_t *cfg_statusbar, Statusbar *statusbar)
|
|||
}
|
||||
|
||||
static void
|
||||
config_section_titlebar_init(cfg_t *cfg_titlebar, Titlebar *tb, int screen)
|
||||
config_section_titlebar_init(cfg_t *cfg_titlebar, titlebar_t *tb, int screen)
|
||||
{
|
||||
int phys_screen = screen_virttophys(screen);
|
||||
cfg_t *cfg_styles = cfg_getsec(cfg_titlebar, "styles");
|
||||
|
|
12
structs.h
12
structs.h
|
@ -60,7 +60,7 @@ typedef struct
|
|||
style_t focus;
|
||||
style_t urgent;
|
||||
} styles;
|
||||
} Titlebar;
|
||||
} titlebar_t;
|
||||
|
||||
/** Rule type */
|
||||
typedef struct Rule Rule;
|
||||
|
@ -71,7 +71,7 @@ struct Rule
|
|||
int screen;
|
||||
Fuzzy isfloating;
|
||||
Fuzzy ismaster;
|
||||
Titlebar titlebar;
|
||||
titlebar_t titlebar;
|
||||
double opacity;
|
||||
regex_t *prop_r;
|
||||
regex_t *tags_r;
|
||||
|
@ -222,8 +222,8 @@ struct Client
|
|||
int phys_screen;
|
||||
/** True if the client is a new one */
|
||||
bool newcomer;
|
||||
/** Titlebar */
|
||||
Titlebar titlebar;
|
||||
/** titlebar_t */
|
||||
titlebar_t titlebar;
|
||||
/** layer in the stacking order */
|
||||
layer_t layer;
|
||||
layer_t oldlayer;
|
||||
|
@ -287,8 +287,8 @@ typedef struct
|
|||
typedef area_t (FloatingPlacement)(Client *);
|
||||
typedef struct
|
||||
{
|
||||
/** Titlebar default parameters */
|
||||
Titlebar titlebar_default;
|
||||
/** titlebar_t default parameters */
|
||||
titlebar_t titlebar_default;
|
||||
/** Number of pixels to snap windows */
|
||||
int snap;
|
||||
/** Border size */
|
||||
|
|
|
@ -83,7 +83,7 @@ titlebar_init(Client *c)
|
|||
* \return a new geometry bigger if the titlebar is visible
|
||||
*/
|
||||
area_t
|
||||
titlebar_geometry_add(Titlebar *t, area_t geometry)
|
||||
titlebar_geometry_add(titlebar_t *t, area_t geometry)
|
||||
{
|
||||
if(!t->sw)
|
||||
return geometry;
|
||||
|
@ -117,7 +117,7 @@ titlebar_geometry_add(Titlebar *t, area_t geometry)
|
|||
* \return a new geometry smaller if the titlebar is visible
|
||||
*/
|
||||
area_t
|
||||
titlebar_geometry_remove(Titlebar *t, area_t geometry)
|
||||
titlebar_geometry_remove(titlebar_t *t, area_t geometry)
|
||||
{
|
||||
if(!t->sw)
|
||||
return geometry;
|
||||
|
@ -449,7 +449,7 @@ titlebar_update_geometry(Client *c, area_t geometry)
|
|||
}
|
||||
|
||||
void
|
||||
titlebar_position_set(Titlebar *t, Position p)
|
||||
titlebar_position_set(titlebar_t *t, Position p)
|
||||
{
|
||||
if(!t->sw)
|
||||
return;
|
||||
|
|
|
@ -28,9 +28,9 @@ void titlebar_init(Client *);
|
|||
void titlebar_draw(Client *);
|
||||
void titlebar_update_geometry_floating(Client *);
|
||||
void titlebar_update_geometry(Client *, area_t);
|
||||
area_t titlebar_geometry_add(Titlebar *, area_t);
|
||||
area_t titlebar_geometry_remove(Titlebar *, area_t);
|
||||
void titlebar_position_set(Titlebar *, Position);
|
||||
area_t titlebar_geometry_add(titlebar_t *, area_t);
|
||||
area_t titlebar_geometry_remove(titlebar_t *, area_t);
|
||||
void titlebar_position_set(titlebar_t *, Position);
|
||||
|
||||
Uicb uicb_client_toggletitlebar;
|
||||
|
||||
|
|
Loading…
Reference in New Issue