[Xfce4-commits] [xfce/thunar] 01/01: Rename (Bug #15579)
noreply at xfce.org
noreply at xfce.org
Sun Jun 16 23:05:27 CEST 2019
This is an automated email from the git hooks/post-receive script.
a n d r e p u s h e d a c o m m i t t o b r a n c h x f c e - 4 . 1 4
in repository xfce/thunar.
commit 6e84219f0879d7f5024702ef7fdcbdefc34d60bb
Author: Andre Miranda <andreldm at xfce.org>
Date: Sun Jun 16 18:04:18 2019 -0300
Rename (Bug #15579)
---
plugins/thunar-sbr/thunar-sbr-case-renamer.c | 7 +++----
plugins/thunar-sbr/thunar-sbr-enum-types.c | 2 +-
plugins/thunar-sbr/thunar-sbr-enum-types.h | 4 ++--
3 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/plugins/thunar-sbr/thunar-sbr-case-renamer.c b/plugins/thunar-sbr/thunar-sbr-case-renamer.c
index c5847b8..86f9c2a 100644
--- a/plugins/thunar-sbr/thunar-sbr-case-renamer.c
+++ b/plugins/thunar-sbr/thunar-sbr-case-renamer.c
@@ -184,7 +184,7 @@ thunar_sbr_case_renamer_set_property (GObject *object,
static gchar*
tscr_utf8_strcase (const gchar *text,
- gboolean camelcase)
+ gboolean title_case)
{
const gchar *t;
gboolean upper = TRUE;
@@ -199,8 +199,7 @@ tscr_utf8_strcase (const gchar *text,
{
/* check the next char */
c = g_utf8_get_char (t);
- if (camelcase
- && g_unichar_isspace (c))
+ if (title_case && g_unichar_isspace (c))
{
upper = TRUE;
}
@@ -239,7 +238,7 @@ thunar_sbr_case_renamer_process (ThunarxRenamer *renamer,
case THUNAR_SBR_CASE_RENAMER_MODE_UPPER:
return g_utf8_strup (text, -1);
- case THUNAR_SBR_CASE_RENAMER_MODE_CAMEL:
+ case THUNAR_SBR_CASE_RENAMER_MODE_TITLE:
return tscr_utf8_strcase (text, TRUE);
case THUNAR_SBR_CASE_RENAMER_MODE_FIRST_UPPER:
diff --git a/plugins/thunar-sbr/thunar-sbr-enum-types.c b/plugins/thunar-sbr/thunar-sbr-enum-types.c
index 50b903f..cad6b64 100644
--- a/plugins/thunar-sbr/thunar-sbr-enum-types.c
+++ b/plugins/thunar-sbr/thunar-sbr-enum-types.c
@@ -92,7 +92,7 @@ thunar_sbr_register_enum_types (ThunarxProviderPlugin *plugin)
{
{ THUNAR_SBR_CASE_RENAMER_MODE_LOWER, "THUNAR_SBR_CASE_RENAMER_MODE_LOWER", N_ ("lowercase"), },
{ THUNAR_SBR_CASE_RENAMER_MODE_UPPER, "THUNAR_SBR_CASE_RENAMER_MODE_UPPER", N_ ("UPPERCASE"), },
- { THUNAR_SBR_CASE_RENAMER_MODE_CAMEL, "THUNAR_SBR_CASE_RENAMER_MODE_CAMEL", N_ ("Title Case"), },
+ { THUNAR_SBR_CASE_RENAMER_MODE_TITLE, "THUNAR_SBR_CASE_RENAMER_MODE_TITLE", N_ ("Title Case"), },
{ THUNAR_SBR_CASE_RENAMER_MODE_FIRST_UPPER, "THUNAR_SBR_CASE_RENAMER_MODE_FIRST_UPPER", N_ ("First character uppercase"), },
{ 0, NULL, NULL, },
};
diff --git a/plugins/thunar-sbr/thunar-sbr-enum-types.h b/plugins/thunar-sbr/thunar-sbr-enum-types.h
index db89e62..6300b03 100644
--- a/plugins/thunar-sbr/thunar-sbr-enum-types.h
+++ b/plugins/thunar-sbr/thunar-sbr-enum-types.h
@@ -31,7 +31,7 @@ G_BEGIN_DECLS;
* ThunarSbrCaseRenamerMode:
* @THUNAR_SBR_CASE_RENAMER_MODE_LOWER : convert to lower case.
* @THUNAR_SBR_CASE_RENAMER_MODE_UPPER : convert to upper case.
- * @THUNAR_SBR_CASE_RENAMER_MODE_CAMEL : convert to camel case.
+ * @THUNAR_SBR_CASE_RENAMER_MODE_TITLE : convert to title case.
* @THUNAR_SBR_CASE_RENAMER_MODE_FIRST_UPPER : convert to First character uppercase.
*
* The operation mode for the #ThunarSbrCaseRenamer.
@@ -40,7 +40,7 @@ typedef enum
{
THUNAR_SBR_CASE_RENAMER_MODE_LOWER,
THUNAR_SBR_CASE_RENAMER_MODE_UPPER,
- THUNAR_SBR_CASE_RENAMER_MODE_CAMEL,
+ THUNAR_SBR_CASE_RENAMER_MODE_TITLE,
THUNAR_SBR_CASE_RENAMER_MODE_FIRST_UPPER,
} ThunarSbrCaseRenamerMode;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list