gi-gio-hs-list-model 0.1.0.0 → 0.1.0.1
raw patch · 4 files changed
+9/−44 lines, 4 files
Files
- CHANGELOG.md +6/−1
- cbits/GiGioHsListStore.c +2/−38
- cbits/GiGioHsListStore.h +0/−4
- gi-gio-hs-list-model.cabal +1/−1
CHANGELOG.md view
@@ -1,5 +1,10 @@ # Revision history for gi-gio-hs-list-model -## 0.1.0.0 -- YYYY-mm-dd+## 0.1.0.1 -- 2021-08-2021++* Remove `stamp` from C struct for the list store.+* Disable debug logging by default++## 0.1.0.0 -- 2021-08-2021 * First version. Released on an unsuspecting world.
cbits/GiGioHsListStore.c view
@@ -1,6 +1,6 @@ #include "GiGioHsListStore.h" -#define DEBUG+/* #define DEBUG */ #ifdef DEBUG #define WHEN_DEBUG(a) a@@ -8,7 +8,6 @@ #define WHEN_DEBUG(a) #endif -static void gi_gio_hs_list_store_init (GiGioHsListStore *store); static void gi_gio_hs_list_store_class_init (GiGioHsListStoreClass *klass); static void gi_gio_hs_list_store_list_model_init (GListModelInterface *iface); static void gi_gio_hs_list_store_finalize (GObject *object);@@ -42,7 +41,7 @@ NULL, /* class_data */ sizeof (GiGioHsListStore), 0, /* n_preallocs */- (GInstanceInitFunc) gi_gio_hs_list_store_init+ NULL }; static const GInterfaceInfo list_model_info =@@ -104,23 +103,6 @@ /** *- * gi_gio_hs_list_store_init: this is called everytime a new custom list object- * instance is created (we do that in- * gi_gio_hs_list_store_new). Initialise the list- * structure's fields here.- *- **/-static void-gi_gio_hs_list_store_init (GiGioHsListStore *store)-{- WHEN_DEBUG(g_debug("calling gi_gio_hs_list_store_init\t\t(%p)\n", store));-- store->stamp = g_random_int(); /* Random int to check whether an iter belongs to our model */-}---/**- * * gi_gio_hs_list_store_finalize: this is called just before a custom list is * destroyed. Free dynamically allocated memory * here.@@ -230,22 +212,4 @@ { g_return_val_if_fail(GIO_GIO_HS_IS_LIST_STORE(store), NULL); return store->priv;-}--gint-gi_gio_hs_list_store_get_stamp (GiGioHsListStore *store)-{- g_return_val_if_fail(GIO_GIO_HS_IS_LIST_STORE(store), 0);- return store->stamp;-}--void-gi_gio_hs_list_store_increment_stamp (GiGioHsListStore *store)-{- g_return_if_fail(GIO_GIO_HS_IS_LIST_STORE(store));- do- {- store->stamp++;- }- while (store->stamp == 0); }
cbits/GiGioHsListStore.h view
@@ -24,8 +24,6 @@ /*< private >*/ HsStablePtr impl; /* a StablePtr CustomStore */ HsStablePtr priv; /* a StablePtr to private data */-- gint stamp; /* Random integer to check whether an iter belongs to our model */ }; struct _GiGioHsListStoreClass@@ -37,8 +35,6 @@ GiGioHsListStore *gi_gio_hs_list_store_new (HsStablePtr, HsStablePtr); HsStablePtr gi_gio_hs_list_store_get_impl (GiGioHsListStore *); HsStablePtr gi_gio_hs_list_store_get_priv (GiGioHsListStore *);-gint gi_gio_hs_list_store_get_stamp (GiGioHsListStore *);-void gi_gio_hs_list_store_increment_stamp (GiGioHsListStore *); G_END_DECLS
gi-gio-hs-list-model.cabal view
@@ -1,6 +1,6 @@ cabal-version: 2.4 name: gi-gio-hs-list-model-version: 0.1.0.0+version: 0.1.0.1 author: Akshay Mankar maintainer: itsakshaymankar@gmail.com license: LGPL-2.1-only