[devhelp] Settings: add a simpler idea to improve the API



commit 601368c8a4499ef48ea4cd1262cd4ef70465f781
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Mon Aug 26 15:41:59 2019 +0200

    Settings: add a simpler idea to improve the API
    
    If someday someone wants to do a second iteration on the DhSettings
    implementation.

 devhelp/dh-settings.c | 8 ++++++++
 1 file changed, 8 insertions(+)
---
diff --git a/devhelp/dh-settings.c b/devhelp/dh-settings.c
index 5b6813d7..edde238a 100644
--- a/devhelp/dh-settings.c
+++ b/devhelp/dh-settings.c
@@ -97,6 +97,14 @@
  *
  * -----
  *
+ * Probably the best idea: make DhSettings an interface and provide the current
+ * implementation in a class with another name, e.g. DhSettingsSimple plus
+ * DhSettingsSimpleBuilder. For more complex needs, when wanting to access all
+ * GSettings features, the app can implement a custom implementation of the
+ * interface.
+ *
+ * -----
+ *
  * To continue in the same direction as the current DhSettings* implementation:
  *
  * To make it better, it would require lots of boilerplate code, so I was maybe


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