[gtk+] Add some api annotations



commit b7d001e6137a0d4d5f1ddc1815d11c12468d4b35
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Oct 26 23:35:22 2015 -0400

    Add some api annotations
    
    Nothing is using the /*interned*/ annotations currently,
    but if we are doing this, we should be consistent.

 gtk/gtkcssnode.c        |    6 +++---
 gtk/gtkcssnodeprivate.h |    4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkcssnode.c b/gtk/gtkcssnode.c
index 38d3eb0..bf4a592 100644
--- a/gtk/gtkcssnode.c
+++ b/gtk/gtkcssnode.c
@@ -1052,8 +1052,8 @@ gtk_css_node_get_widget_type (GtkCssNode *cssnode)
 }
 
 void
-gtk_css_node_set_id (GtkCssNode *cssnode,
-                     const char *id)
+gtk_css_node_set_id (GtkCssNode                *cssnode,
+                     /* interned */ const char *id)
 {
   if (gtk_css_node_declaration_set_id (&cssnode->decl, id))
     {
@@ -1062,7 +1062,7 @@ gtk_css_node_set_id (GtkCssNode *cssnode,
     }
 }
 
-const char *
+/* interned */ const char *
 gtk_css_node_get_id (GtkCssNode *cssnode)
 {
   return gtk_css_node_declaration_get_id (cssnode->decl);
diff --git a/gtk/gtkcssnodeprivate.h b/gtk/gtkcssnodeprivate.h
index 2f9587e..7577d48 100644
--- a/gtk/gtkcssnodeprivate.h
+++ b/gtk/gtkcssnodeprivate.h
@@ -122,8 +122,8 @@ void                    gtk_css_node_set_widget_type    (GtkCssNode            *
                                                          GType                  widget_type);
 GType                   gtk_css_node_get_widget_type    (GtkCssNode            *cssnode);
 void                    gtk_css_node_set_id             (GtkCssNode            *cssnode,
-                                                         const char            *id);
-const char *            gtk_css_node_get_id             (GtkCssNode            *cssnode);
+                                                         /*interned*/const char*id);
+/*interned*/const char *gtk_css_node_get_id             (GtkCssNode            *cssnode);
 void                    gtk_css_node_set_state          (GtkCssNode            *cssnode,
                                                          GtkStateFlags          state_flags);
 GtkStateFlags           gtk_css_node_get_state          (GtkCssNode            *cssnode);


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