[gcr/wip/nielsdg/use-g-deprecated: 2/3] Don't use functions which we deprecated



commit abe80f5e19e741413aff37e4cd24accfcf4cfe0b
Author: Niels De Graef <nielsdegraef gmail com>
Date:   Wed Feb 5 07:45:34 2020 +0100

    Don't use functions which we deprecated

 gck/gck.h               | 2 +-
 ui/frob-tree-selector.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gck/gck.h b/gck/gck.h
index 605ee17..bb52c01 100644
--- a/gck/gck.h
+++ b/gck/gck.h
@@ -341,7 +341,7 @@ void                 gck_builder_clear                      (GckBuilder *builder
 
 G_DEFINE_AUTOPTR_CLEANUP_FUNC (GckBuilder, gck_builder_unref);
 
-#define              GCK_TYPE_ATTRIBUTES                    (gck_attributes_get_boxed_type ())
+#define              GCK_TYPE_ATTRIBUTES                    (gck_attributes_get_type ())
 
 GType                gck_attributes_get_type                (void) G_GNUC_CONST;
 
diff --git a/ui/frob-tree-selector.c b/ui/frob-tree-selector.c
index 692592c..f2a7ef8 100644
--- a/ui/frob-tree-selector.c
+++ b/ui/frob-tree-selector.c
@@ -122,7 +122,7 @@ on_parser_parsed (GcrParser *parser, gpointer user_data)
 
 
        testcol = test_collection_instance (group);
-       if (!gcr_simple_collection_contains (collection, G_OBJECT (testcol)))
+       if (!gcr_collection_contains (GCR_COLLECTION (collection), G_OBJECT (testcol)))
                gcr_simple_collection_add (collection, G_OBJECT (testcol));
 
        gcr_simple_collection_add (GCR_SIMPLE_COLLECTION (testcol), G_OBJECT (renderer));


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