[gom] gom: Add "constructor" annotations for gom_filter_new_and/or



commit c9546cbe09161a239cd65de5e25d41e3c9ca83be
Author: Tristan Brindle <t c brindle gmail com>
Date:   Fri Apr 18 22:55:55 2014 +0800

    gom: Add "constructor" annotations for gom_filter_new_and/or
    
    The first argument to these functions is a GomFilter*, meaning they
    are incorrectly introspected as instance methods rather than constructors.
    
    Add the (constructor) annotation to fix this.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=728517

 gom/gom-filter.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gom/gom-filter.c b/gom/gom-filter.c
index cb16d5d..0e3598d 100644
--- a/gom/gom-filter.c
+++ b/gom/gom-filter.c
@@ -213,7 +213,7 @@ get_table (GParamSpec *pspec,
 }
 
 /**
- * gom_filter_new_and:
+ * gom_filter_new_and: (constructor)
  * @left: (in): A #GomFilter.
  * @right: (in): A #GomFilter.
  *
@@ -241,7 +241,7 @@ gom_filter_new_and (GomFilter *left,
 }
 
 /**
- * gom_filter_new_or:
+ * gom_filter_new_or: (constructor)
  * @left: (in): A #GomFilter.
  * @right: (in): A #GomFilter.
  *


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