[vte/vte-next: 51/114] Use G_PARAM_STATIC_STRINGS
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/vte-next: 51/114] Use G_PARAM_STATIC_STRINGS
- Date: Mon, 30 May 2011 17:11:02 +0000 (UTC)
commit 0eef6cefbbd17f5fc6b48fb90b8d1bd9ba6abe94
Author: Christian Persch <chpe gnome org>
Date: Tue May 3 14:35:23 2011 +0200
Use G_PARAM_STATIC_STRINGS
src/vte.c | 41 +++++++++++++++++++----------------------
1 files changed, 19 insertions(+), 22 deletions(-)
---
diff --git a/src/vte.c b/src/vte.c
index 10dd87e..8974d64 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -69,9 +69,6 @@ typedef gunichar wint_t;
#define howmany(x, y) (((x) + ((y) - 1)) / (y))
#endif
-#define STATIC_PARAMS (G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB)
-
-
static void vte_terminal_set_visibility (VteTerminal *terminal, GdkVisibilityState state);
static void vte_terminal_set_termcap(VteTerminal *terminal, const char *path,
gboolean reset);
@@ -11266,7 +11263,7 @@ vte_terminal_class_init(VteTerminalClass *klass)
PROP_ALLOW_BOLD,
g_param_spec_boolean ("allow-bold", NULL, NULL,
TRUE,
- G_PARAM_READWRITE | STATIC_PARAMS));
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
* VteTerminal:audible-bell:
@@ -11281,7 +11278,7 @@ vte_terminal_class_init(VteTerminalClass *klass)
PROP_AUDIBLE_BELL,
g_param_spec_boolean ("audible-bell", NULL, NULL,
TRUE,
- G_PARAM_READWRITE | STATIC_PARAMS));
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
* VteTerminal:background-pattern: (type cairo_pattern_t):
@@ -11294,7 +11291,7 @@ vte_terminal_class_init(VteTerminalClass *klass)
(gobject_class,
PROP_BACKGROUND_PATTERN,
g_param_spec_pointer ("background-pattern", NULL, NULL,
- G_PARAM_READWRITE | STATIC_PARAMS));
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
* VteTerminal:backspace-binding:
@@ -11310,7 +11307,7 @@ vte_terminal_class_init(VteTerminalClass *klass)
g_param_spec_enum ("backspace-binding", NULL, NULL,
VTE_TYPE_TERMINAL_ERASE_BINDING,
VTE_ERASE_AUTO,
- G_PARAM_READWRITE | STATIC_PARAMS));
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
* VteTerminal:cursor-blink-mode:
@@ -11326,7 +11323,7 @@ vte_terminal_class_init(VteTerminalClass *klass)
g_param_spec_enum ("cursor-blink-mode", NULL, NULL,
VTE_TYPE_TERMINAL_CURSOR_BLINK_MODE,
VTE_CURSOR_BLINK_SYSTEM,
- G_PARAM_READWRITE | STATIC_PARAMS));
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
* VteTerminal:cursor-shape:
@@ -11341,7 +11338,7 @@ vte_terminal_class_init(VteTerminalClass *klass)
g_param_spec_enum ("cursor-shape", NULL, NULL,
VTE_TYPE_TERMINAL_CURSOR_SHAPE,
VTE_CURSOR_SHAPE_BLOCK,
- G_PARAM_READWRITE | STATIC_PARAMS));
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
* VteTerminal:delete-binding:
@@ -11357,7 +11354,7 @@ vte_terminal_class_init(VteTerminalClass *klass)
g_param_spec_enum ("delete-binding", NULL, NULL,
VTE_TYPE_TERMINAL_ERASE_BINDING,
VTE_ERASE_AUTO,
- G_PARAM_READWRITE | STATIC_PARAMS));
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
* VteTerminal:emulation:
@@ -11373,7 +11370,7 @@ vte_terminal_class_init(VteTerminalClass *klass)
PROP_EMULATION,
g_param_spec_string ("emulation", NULL, NULL,
VTE_DEFAULT_EMULATION,
- G_PARAM_READWRITE | STATIC_PARAMS));
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
* VteTerminal:encoding:
@@ -11390,7 +11387,7 @@ vte_terminal_class_init(VteTerminalClass *klass)
PROP_ENCODING,
g_param_spec_string ("encoding", NULL, NULL,
NULL,
- G_PARAM_READWRITE | STATIC_PARAMS));
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
* VteTerminal:font-desc:
@@ -11408,7 +11405,7 @@ vte_terminal_class_init(VteTerminalClass *klass)
PROP_FONT_DESC,
g_param_spec_boxed ("font-desc", NULL, NULL,
PANGO_TYPE_FONT_DESCRIPTION,
- G_PARAM_READWRITE | STATIC_PARAMS));
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
* VteTerminal:icon-title:
@@ -11422,7 +11419,7 @@ vte_terminal_class_init(VteTerminalClass *klass)
PROP_ICON_TITLE,
g_param_spec_string ("icon-title", NULL, NULL,
NULL,
- G_PARAM_READABLE | STATIC_PARAMS));
+ G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
/**
* VteTerminal:pointer-autohide:
@@ -11438,7 +11435,7 @@ vte_terminal_class_init(VteTerminalClass *klass)
PROP_MOUSE_POINTER_AUTOHIDE,
g_param_spec_boolean ("pointer-autohide", NULL, NULL,
FALSE,
- G_PARAM_READWRITE | STATIC_PARAMS));
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
* VteTerminal:pty-object:
@@ -11468,7 +11465,7 @@ vte_terminal_class_init(VteTerminalClass *klass)
PROP_SCROLL_BACKGROUND,
g_param_spec_boolean ("scroll-background", NULL, NULL,
FALSE,
- G_PARAM_READWRITE | STATIC_PARAMS));
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
* VteTerminal:scrollback-lines:
@@ -11488,7 +11485,7 @@ vte_terminal_class_init(VteTerminalClass *klass)
g_param_spec_uint ("scrollback-lines", NULL, NULL,
0, G_MAXUINT,
VTE_SCROLLBACK_INIT,
- G_PARAM_READWRITE | STATIC_PARAMS));
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
* VteTerminal:scroll-on-keystroke:
@@ -11504,7 +11501,7 @@ vte_terminal_class_init(VteTerminalClass *klass)
PROP_SCROLL_ON_KEYSTROKE,
g_param_spec_boolean ("scroll-on-keystroke", NULL, NULL,
FALSE,
- G_PARAM_READWRITE | STATIC_PARAMS));
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
* VteTerminal:scroll-on-output:
@@ -11519,7 +11516,7 @@ vte_terminal_class_init(VteTerminalClass *klass)
PROP_SCROLL_ON_OUTPUT,
g_param_spec_boolean ("scroll-on-output", NULL, NULL,
TRUE,
- G_PARAM_READWRITE | STATIC_PARAMS));
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
* VteTerminal:window-title:
@@ -11533,7 +11530,7 @@ vte_terminal_class_init(VteTerminalClass *klass)
PROP_WINDOW_TITLE,
g_param_spec_string ("window-title", NULL, NULL,
NULL,
- G_PARAM_READABLE | STATIC_PARAMS));
+ G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
/**
* VteTerminal:word-chars:
@@ -11553,7 +11550,7 @@ vte_terminal_class_init(VteTerminalClass *klass)
PROP_WORD_CHARS,
g_param_spec_string ("word-chars", NULL, NULL,
NULL,
- G_PARAM_READWRITE | STATIC_PARAMS));
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
* VteTerminal:visible-bell:
@@ -11569,7 +11566,7 @@ vte_terminal_class_init(VteTerminalClass *klass)
PROP_VISIBLE_BELL,
g_param_spec_boolean ("visible-bell", NULL, NULL,
FALSE,
- G_PARAM_READWRITE | STATIC_PARAMS));
+ G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/* Style properties */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]