[vte] lib: Move define to the few places where it is used
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] lib: Move define to the few places where it is used
- Date: Wed, 22 Apr 2015 18:56:30 +0000 (UTC)
commit b27e3ccf5133bd845aa9d9620c5d09acd4b56be0
Author: Christian Persch <chpe gnome org>
Date: Wed Apr 1 21:28:40 2015 +0200
lib: Move define to the few places where it is used
src/pty.cc | 2 ++
src/vte-private.h | 2 --
src/vte.cc | 2 ++
3 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/pty.cc b/src/pty.cc
index 0e51f6c..80ad61e 100644
--- a/src/pty.cc
+++ b/src/pty.cc
@@ -79,6 +79,8 @@
#define G_PARAM_EXPLICIT_NOTIFY 0
#endif
+#define I_(string) (g_intern_static_string(string))
+
/* Reset the handlers for all known signals to their defaults. The parent
* (or one of the libraries it links to) may have changed one to be ignored. */
static void
diff --git a/src/vte-private.h b/src/vte-private.h
index bab34f7..8ecea8e 100644
--- a/src/vte-private.h
+++ b/src/vte-private.h
@@ -53,8 +53,6 @@
G_BEGIN_DECLS
-#define I_(string) (g_intern_static_string(string))
-
typedef enum {
VTE_REGEX_CURSOR_GDKCURSOR,
VTE_REGEX_CURSOR_GDKCURSORTYPE,
diff --git a/src/vte.cc b/src/vte.cc
index a60bc2a..7145630 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -84,6 +84,8 @@ typedef gunichar wint_t;
#define WORD_CHAR_EXCEPTIONS_DEFAULT "-#%&+,./=? \\_~\302\267"
+#define I_(string) (g_intern_static_string(string))
+
static int _vte_unichar_width(gunichar c, int utf8_ambiguous_width);
static void vte_terminal_set_visibility (VteTerminal *terminal, GdkVisibilityState state);
static void vte_terminal_paste(VteTerminal *terminal, GdkAtom board);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]