[Commits] [SCM] claws branch, master, updated. 3.17.6-9-g40bb4034e

mones at claws-mail.org mones at claws-mail.org
Fri Aug 21 18:30:46 CEST 2020


The branch, master has been updated
       via  40bb4034e4d657f279713f61cd5ca873a90a0489 (commit)
      from  62ec17880c8103147869e46efc0c54f7197473aa (commit)

Summary of changes:
 src/plugins/libravatar/libravatar.c       |  4 +++-
 src/plugins/libravatar/libravatar_prefs.c | 12 ++++++++++--
 src/plugins/libravatar/libravatar_prefs.h |  2 ++
 3 files changed, 15 insertions(+), 3 deletions(-)


- Log -----------------------------------------------------------------
commit 40bb4034e4d657f279713f61cd5ca873a90a0489
Author: Ricardo Mones <ricardo at mones.org>
Date:   Fri Aug 21 18:30:27 2020 +0200

    Add new styles supported: Robohash and Pagan
    
    Amazing how much of these can be written, isn't it? :)

diff --git a/src/plugins/libravatar/libravatar.c b/src/plugins/libravatar/libravatar.c
index 1ec1bec5b..75ec065ff 100644
--- a/src/plugins/libravatar/libravatar.c
+++ b/src/plugins/libravatar/libravatar.c
@@ -46,7 +46,9 @@ static const char *def_mode[] = {
 	"identicon",
 	"monsterid",
 	"wavatar",
-	"retro"
+	"retro",
+	"robohash",
+	"pagan"
 };
 
 static gulong update_hook_id = HOOK_NONE;
diff --git a/src/plugins/libravatar/libravatar_prefs.c b/src/plugins/libravatar/libravatar_prefs.c
index 3a097001b..4538477e8 100644
--- a/src/plugins/libravatar/libravatar_prefs.c
+++ b/src/plugins/libravatar/libravatar_prefs.c
@@ -37,8 +37,8 @@
 #include "alertpanel.h"
 
 #define PREFS_BLOCK_NAME "Libravatar"
-#define NUM_DEF_BUTTONS 7
-#define CUSTOM_URL_BUTTON_INDEX 6
+#define NUM_DEF_BUTTONS 9
+#define CUSTOM_URL_BUTTON_INDEX 8
 /* cache interval goes from 1 hour to 30 days */
 #define INTERVAL_MIN_H 1.0
 #define INTERVAL_MAX_H 720.0
@@ -301,6 +301,8 @@ static const guint radio_value[] = {
 	DEF_MODE_MONSTERID,
 	DEF_MODE_WAVATAR,
 	DEF_MODE_RETRO,
+	DEF_MODE_ROBOHASH,
+	DEF_MODE_PAGAN,
 	DEF_MODE_URL
 };
 
@@ -316,6 +318,8 @@ static GtkWidget *p_create_frame_missing(struct LibravatarPrefsPage *page)
 		_("MonsterID"),
 		_("Wavatar"),
 		_("Retro"),
+		_("Robohash"),
+		_("Pagan"),
 		_("Custom URL")
 	};
 	gchar *radio_hint[] = {
@@ -325,6 +329,8 @@ static GtkWidget *p_create_frame_missing(struct LibravatarPrefsPage *page)
 		_("A generated full-body monster"),
 		_("A generated almost unique face"),
 		_("A generated 8-bit arcade-style pixelated image"),
+		_("A generated robotic character"),
+		_("A generated retro adventure game character"),
 		_("Redirect to a user provided URL")
 	};
 
@@ -439,6 +445,8 @@ static GtkWidget *p_create_frame_network(struct LibravatarPrefsPage *page)
   │ ( ) MonsterID                                        │
   │ ( ) Wavatar                                          │
   │ ( ) Retro                                            │
+  │ ( ) Robohash                                         │
+  │ ( ) Pagan                                            │
   │ ( ) Custom URL [___________________________________] │
   └──────────────────────────────────────────────────────┘
   ┌─Network──────────────────────────────────────────────┐
diff --git a/src/plugins/libravatar/libravatar_prefs.h b/src/plugins/libravatar/libravatar_prefs.h
index 2e4cb93c3..f6445358b 100644
--- a/src/plugins/libravatar/libravatar_prefs.h
+++ b/src/plugins/libravatar/libravatar_prefs.h
@@ -34,6 +34,8 @@ enum
 	DEF_MODE_MONSTERID	= 13,
 	DEF_MODE_WAVATAR	= 14,
 	DEF_MODE_RETRO		= 15,
+	DEF_MODE_ROBOHASH	= 16,
+	DEF_MODE_PAGAN		= 17
 };
 
 struct _LibravatarPrefs

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list