<p></p>
<p><b>@kugel-</b> requested changes on this pull request.</p>

<p dir="auto">What does your plugin do? I can understand the desire for doubles but comments (given that keyfiles are typically not meant to be looked at by users)?</p><hr>

<p>In <a href="https://github.com/geany/geany/pull/3004#discussion_r749937335">src/utils.c</a>:</p>
<pre style='color:#555'>> @@ -795,11 +795,11 @@ gchar *utils_get_initials(const gchar *name)
  *  @param config A GKeyFile object.
  *  @param section The group name to look in for the key.
  *  @param key The key to find.
- *  @param default_value The default value which will be returned when @a section or @a key
- *         don't exist.
+ *  @param default_value The default value which will be returned when @a section
+ *         or @a key don't exist.
</pre>
<p dir="auto">No unrelated changes, please.</p>

<hr>

<p>In <a href="https://github.com/geany/geany/pull/3004#discussion_r749938585">src/stash.c</a>:</p>
<pre style='color:#555'>> @@ -476,6 +497,20 @@ void stash_group_add_boolean(StashGroup *group, gboolean *setting,
 }
 
 
+/** Adds double setting.
+ * @param group .
+ * @param setting Address of setting variable.
+ * @param key_name Name for key in a @c GKeyFile.
+ * @param default_value Value to use if the key doesn't exist when loading. */
+GEANY_API_SYMBOL
+void stash_group_add_double(StashGroup *group, gdouble *setting,
+               const gchar *key_name, gdouble default_value)
+{
+       gulong *default_long = (gulong*) &default_value;
+       add_pref(group, G_TYPE_DOUBLE, setting, key_name, (gpointer) *default_long);
</pre>
<p dir="auto">add_pref should use a union. I'll prepare a change, then you can rebase this.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/pull/3004#pullrequestreview-806857880">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJY72IGG6OI4BKLMWMDUMHZPHANCNFSM5ICQ4AGQ">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/AAIOWJYL3YNP6WKFXRQXHH3UMHZPHA5CNFSM5ICQ4AG2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOGAL2ZGA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/pull/3004#pullrequestreview-806857880",
"url": "https://github.com/geany/geany/pull/3004#pullrequestreview-806857880",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>