mirror of
https://github.com/labwc/labwc.git
synced 2025-11-12 13:30:11 -05:00
s/xbm_read_file()/grab_file/()
This commit is contained in:
parent
042c157378
commit
6627a47305
5 changed files with 51 additions and 22 deletions
|
|
@ -12,6 +12,7 @@
|
|||
#include "theme/xbm/parse.h"
|
||||
#include "theme/theme-dir.h"
|
||||
#include "config/rcxml.h"
|
||||
#include "common/grab-file.h"
|
||||
|
||||
/* built-in 6x6 buttons */
|
||||
char close_button_normal[] = { 0x33, 0x3f, 0x1e, 0x1e, 0x3f, 0x33 };
|
||||
|
|
@ -50,7 +51,7 @@ static char *xbm_path(const char *button)
|
|||
static void load_button(struct wlr_renderer *renderer, const char *filename,
|
||||
struct wlr_texture **texture, char *button)
|
||||
{
|
||||
char *buffer = xbm_read_file(xbm_path(filename));
|
||||
char *buffer = grab_file(xbm_path(filename));
|
||||
if (!buffer)
|
||||
goto out;
|
||||
fprintf(stderr, "loading %s\n", filename);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue