[Commits] [SCM] claws branch, gtk3, updated. 3.16.0-993-gfa9de1494
mones at claws-mail.org
mones at claws-mail.org
Fri Aug 21 18:31:23 CEST 2020
The branch, gtk3 has been updated
via fa9de149482e3df257a5271815fad7f5453f17b7 (commit)
from be06120afc05caee7b08815321b2217eeca7618e (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 fa9de149482e3df257a5271815fad7f5453f17b7
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 5e12b223a..265f30b92 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 5e8717323..23b2993f1 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")
};
@@ -440,6 +446,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