mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
Add translate.h for HAVE_NLS includes/defines
...to shrink labwc.h footprint
This commit is contained in:
parent
1692c47fa0
commit
26bd02d457
7 changed files with 19 additions and 8 deletions
|
|
@ -7,13 +7,6 @@
|
|||
#include "common/set.h"
|
||||
#include "input/cursor.h"
|
||||
#include "overlay.h"
|
||||
#if HAVE_NLS
|
||||
#include <libintl.h>
|
||||
#include <locale.h>
|
||||
#define _ gettext
|
||||
#else
|
||||
#define _(s) (s)
|
||||
#endif
|
||||
|
||||
#define XCURSOR_DEFAULT "left_ptr"
|
||||
#define XCURSOR_SIZE 24
|
||||
|
|
|
|||
14
include/translate.h
Normal file
14
include/translate.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
#ifndef LABWC_TRANSLATE_H
|
||||
#define LABWC_TRANSLATE_H
|
||||
#include "config.h"
|
||||
|
||||
#if HAVE_NLS
|
||||
#include <libintl.h>
|
||||
#include <locale.h>
|
||||
#define _ gettext
|
||||
#else
|
||||
#define _(s) (s)
|
||||
#endif
|
||||
|
||||
#endif /* LABWC_TRANSLATE_H */
|
||||
|
|
@ -5,8 +5,8 @@
|
|||
#include <wlr/util/log.h>
|
||||
#include "action.h"
|
||||
#include "common/buf.h"
|
||||
#include "labwc.h" /* for gettext */
|
||||
#include "theme.h"
|
||||
#include "translate.h"
|
||||
|
||||
enum {
|
||||
LAB_PROMPT_NONE = 0,
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@
|
|||
#include "osd.h"
|
||||
#include "regions.h"
|
||||
#include "ssd.h"
|
||||
#include "translate.h"
|
||||
#include "view.h"
|
||||
#include "window-rules.h"
|
||||
#include "workspaces.h"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
#include "desktop-entry.h"
|
||||
#include <locale.h>
|
||||
#include <sfdo-desktop.h>
|
||||
#include <sfdo-icon.h>
|
||||
#include <sfdo-basedir.h>
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@
|
|||
#include "config/session.h"
|
||||
#include "labwc.h"
|
||||
#include "theme.h"
|
||||
#include "translate.h"
|
||||
#include "menu/menu.h"
|
||||
|
||||
struct rcxml rc = { 0 };
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@
|
|||
#include "scaled-buffer/scaled-font-buffer.h"
|
||||
#include "scaled-buffer/scaled-icon-buffer.h"
|
||||
#include "theme.h"
|
||||
#include "translate.h"
|
||||
#include "view.h"
|
||||
#include "workspaces.h"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue