[gnome-video-arcade] Add G_PARAM_STATIC_STRINGS to all GObject properties.



commit 4c26d6b23fac7774668825bc573b0d7b732e6293
Author: Matthew Barnes <mbarnes redhat com>
Date:   Wed Mar 30 10:43:24 2011 -0400

    Add G_PARAM_STATIC_STRINGS to all GObject properties.
    
    Just a miniscule optimization really, but I'm trying to get in the
    habit of using it.

 src/gva-cell-renderer-pixbuf.c |    3 ++-
 src/gva-column-manager.c       |    3 ++-
 src/gva-input-file.c           |   15 ++++++++++-----
 src/gva-music-button.c         |    6 ++++--
 src/gva-mute-button.c          |    3 ++-
 src/gva-process.c              |   18 ++++++++++++------
 6 files changed, 32 insertions(+), 16 deletions(-)
---
diff --git a/src/gva-cell-renderer-pixbuf.c b/src/gva-cell-renderer-pixbuf.c
index ce417f1..3d79493 100644
--- a/src/gva-cell-renderer-pixbuf.c
+++ b/src/gva-cell-renderer-pixbuf.c
@@ -153,7 +153,8 @@ gva_cell_renderer_pixbuf_class_init (GvaCellRendererPixbufClass *class)
                         NULL,
                         NULL,
                         FALSE,
-                        G_PARAM_READWRITE));
+                        G_PARAM_READWRITE |
+                        G_PARAM_STATIC_STRINGS));
 
         /**
          * GvaCellRendererPixbuf::clicked:
diff --git a/src/gva-column-manager.c b/src/gva-column-manager.c
index f7200de..cb934e5 100644
--- a/src/gva-column-manager.c
+++ b/src/gva-column-manager.c
@@ -557,7 +557,8 @@ gva_column_manager_class_init (GvaColumnManagerClass *class)
                         _("Managed View"),
                         _("The GtkTreeView being managed"),
                         GTK_TYPE_TREE_VIEW,
-                        G_PARAM_READWRITE));
+                        G_PARAM_READWRITE |
+                        G_PARAM_STATIC_STRINGS));
 }
 
 static void
diff --git a/src/gva-input-file.c b/src/gva-input-file.c
index 8a631c3..f72f47a 100644
--- a/src/gva-input-file.c
+++ b/src/gva-input-file.c
@@ -364,7 +364,8 @@ gva_input_file_class_init (GvaInputFileClass *class)
                         NULL,
                         NULL,
                         G_PARAM_READWRITE |
-                        G_PARAM_CONSTRUCT_ONLY));
+                        G_PARAM_CONSTRUCT_ONLY |
+                        G_PARAM_STATIC_STRINGS));
 
         /**
          * GvaInputFile:format:
@@ -379,7 +380,8 @@ gva_input_file_class_init (GvaInputFileClass *class)
                         NULL,
                         NULL,
                         NULL,
-                        G_PARAM_READABLE));
+                        G_PARAM_READABLE |
+                        G_PARAM_STATIC_STRINGS));
 
         /**
          * GvaInputFile:game:
@@ -394,7 +396,8 @@ gva_input_file_class_init (GvaInputFileClass *class)
                         NULL,
                         NULL,
                         NULL,
-                        G_PARAM_READABLE));
+                        G_PARAM_READABLE |
+                        G_PARAM_STATIC_STRINGS));
 
         /**
          * GvaInputFile:origin:
@@ -409,7 +412,8 @@ gva_input_file_class_init (GvaInputFileClass *class)
                         NULL,
                         NULL,
                         NULL,
-                        G_PARAM_READABLE));
+                        G_PARAM_READABLE |
+                        G_PARAM_STATIC_STRINGS));
 
         /**
          * GvaInputFile:timestamp:
@@ -426,7 +430,8 @@ gva_input_file_class_init (GvaInputFileClass *class)
                         G_MININT64,
                         G_MAXINT64,
                         0,
-                        G_PARAM_READABLE));
+                        G_PARAM_READABLE |
+                        G_PARAM_STATIC_STRINGS));
 }
 
 static void
diff --git a/src/gva-music-button.c b/src/gva-music-button.c
index cd09667..3af652c 100644
--- a/src/gva-music-button.c
+++ b/src/gva-music-button.c
@@ -449,7 +449,8 @@ gva_music_button_class_init (GvaMusicButtonClass *class)
                         NULL,
                         NULL,
                         NULL,
-                        G_PARAM_READWRITE));
+                        G_PARAM_READWRITE |
+                        G_PARAM_STATIC_STRINGS));
 
         /**
          * GvaMusicButton:status
@@ -464,7 +465,8 @@ gva_music_button_class_init (GvaMusicButtonClass *class)
                         NULL,
                         NULL,
                         NULL,
-                        G_PARAM_READABLE));
+                        G_PARAM_READABLE |
+                        G_PARAM_STATIC_STRINGS));
 
         /**
          * GvaMusicButton::pause
diff --git a/src/gva-mute-button.c b/src/gva-mute-button.c
index ffa0bfc..5b6c8cd 100644
--- a/src/gva-mute-button.c
+++ b/src/gva-mute-button.c
@@ -127,7 +127,8 @@ gva_mute_button_class_init (GvaMuteButtonClass *class)
                         _("Whether the button state is muted"),
                         FALSE,
                         G_PARAM_READWRITE |
-                        G_PARAM_CONSTRUCT));
+                        G_PARAM_CONSTRUCT |
+                        G_PARAM_STATIC_STRINGS));
 }
 
 static void
diff --git a/src/gva-process.c b/src/gva-process.c
index 415f2fd..7f3333e 100644
--- a/src/gva-process.c
+++ b/src/gva-process.c
@@ -469,7 +469,8 @@ gva_process_class_init (GvaProcessClass *class)
                         NULL,
                         0, G_MAXUINT, 0,
                         G_PARAM_READWRITE |
-                        G_PARAM_CONSTRUCT_ONLY));
+                        G_PARAM_CONSTRUCT_ONLY |
+                        G_PARAM_STATIC_STRINGS));
 
         /**
          * GvaProcess:stdin
@@ -485,7 +486,8 @@ gva_process_class_init (GvaProcessClass *class)
                         NULL,
                         -1, G_MAXINT, -1,
                         G_PARAM_READWRITE |
-                        G_PARAM_CONSTRUCT_ONLY));
+                        G_PARAM_CONSTRUCT_ONLY |
+                        G_PARAM_STATIC_STRINGS));
 
         /**
          * GvaProcess:stdout
@@ -501,7 +503,8 @@ gva_process_class_init (GvaProcessClass *class)
                         NULL,
                         -1, G_MAXINT, -1,
                         G_PARAM_READWRITE |
-                        G_PARAM_CONSTRUCT_ONLY));
+                        G_PARAM_CONSTRUCT_ONLY |
+                        G_PARAM_STATIC_STRINGS));
 
         /**
          * GvaProcess:stderr
@@ -517,7 +520,8 @@ gva_process_class_init (GvaProcessClass *class)
                         NULL,
                         -1, G_MAXINT, -1,
                         G_PARAM_READWRITE |
-                        G_PARAM_CONSTRUCT_ONLY));
+                        G_PARAM_CONSTRUCT_ONLY |
+                        G_PARAM_STATIC_STRINGS));
 
         /**
          * GvaProcess:priority
@@ -534,7 +538,8 @@ gva_process_class_init (GvaProcessClass *class)
                         G_MININT, G_MAXINT,
                         G_PRIORITY_DEFAULT_IDLE,
                         G_PARAM_READWRITE |
-                        G_PARAM_CONSTRUCT_ONLY));
+                        G_PARAM_CONSTRUCT_ONLY |
+                        G_PARAM_STATIC_STRINGS));
 
         /**
          * GvaProcess:progress
@@ -550,7 +555,8 @@ gva_process_class_init (GvaProcessClass *class)
                         NULL,
                         NULL,
                         0, G_MAXUINT, 0,
-                        G_PARAM_READWRITE));
+                        G_PARAM_READWRITE |
+                        G_PARAM_STATIC_STRINGS));
 
         /**
          * GvaProcess::stdout-ready:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]