[vte/vte-next] Use G_PARAM_STATIC_STRINGS



commit c842ec06fa3534dd952343a13984502657902082
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 cb03578..0c1ef0d 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);
@@ -11268,7 +11265,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:
@@ -11283,7 +11280,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):
@@ -11296,7 +11293,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:
@@ -11312,7 +11309,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:
@@ -11328,7 +11325,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:
@@ -11343,7 +11340,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:
@@ -11359,7 +11356,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:
@@ -11375,7 +11372,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:
@@ -11392,7 +11389,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:
@@ -11410,7 +11407,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:
@@ -11424,7 +11421,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:
@@ -11440,7 +11437,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:
@@ -11470,7 +11467,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:
@@ -11490,7 +11487,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:
@@ -11506,7 +11503,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:
@@ -11521,7 +11518,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:
@@ -11535,7 +11532,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:
@@ -11555,7 +11552,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:
@@ -11571,7 +11568,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]