mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
include/: refactor header files more
This commit is contained in:
parent
53266a0d5a
commit
4d1363dcae
32 changed files with 130 additions and 78 deletions
|
|
@ -40,8 +40,8 @@ char *theme_dir(const char *theme_name)
|
|||
prefix = getenv(d.prefix);
|
||||
if (!prefix)
|
||||
continue;
|
||||
snprintf(buf, sizeof(buf), "%s/%s/%s/openbox-3",
|
||||
prefix, d.path, theme_name);
|
||||
snprintf(buf, sizeof(buf), "%s/%s/%s/openbox-3", prefix,
|
||||
d.path, theme_name);
|
||||
} else {
|
||||
snprintf(buf, sizeof(buf), "%s/%s/openbox-3", d.path,
|
||||
theme_name);
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
#include <stdbool.h>
|
||||
#include <glib.h>
|
||||
|
||||
#include "theme.h"
|
||||
#include "theme/theme.h"
|
||||
#include "theme/theme-dir.h"
|
||||
|
||||
static int hex_to_dec(char c)
|
||||
|
|
|
|||
|
|
@ -7,10 +7,11 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "theme/theme.h"
|
||||
#include "theme/xbm/xbm.h"
|
||||
#include "theme/xbm/parse.h"
|
||||
#include "theme/theme-dir.h"
|
||||
#include "rcxml.h"
|
||||
#include "config/rcxml.h"
|
||||
|
||||
/* built-in 6x6 buttons */
|
||||
char close_button_normal[] = { 0x33, 0x3f, 0x1e, 0x1e, 0x3f, 0x33 };
|
||||
|
|
@ -29,7 +30,7 @@ static struct wlr_texture *texture_from_pixmap(struct wlr_renderer *renderer,
|
|||
}
|
||||
|
||||
static struct wlr_texture *texture_from_builtin(struct wlr_renderer *renderer,
|
||||
const char *button)
|
||||
const char *button)
|
||||
{
|
||||
struct pixmap pixmap = xbm_create_pixmap_builtin(button);
|
||||
struct wlr_texture *texture = texture_from_pixmap(renderer, &pixmap);
|
||||
|
|
@ -70,5 +71,6 @@ void xbm_load(struct wlr_renderer *r)
|
|||
{
|
||||
load_button(r, "close.xbm", &theme.xbm_close, close_button_normal);
|
||||
load_button(r, "max.xbm", &theme.xbm_maximize, max_button_normal);
|
||||
load_button(r, "iconify.xbm", &theme.xbm_iconify, iconify_button_normal);
|
||||
load_button(r, "iconify.xbm", &theme.xbm_iconify,
|
||||
iconify_button_normal);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue