This is an automated email from the git hooks/post-receive script. a l e x p u s h e d a c o m m i t t o b r a n c h m a s t e r in repository xfce/thunar.
commit c3d3411cb97f76459eacc69b710b6d9432111c86 Author: Alexander Schwinn <alexxc...@xfce.org> Date: Sat Sep 8 01:31:11 2018 +0200 Thunar Bulk Renamer has a start limit (9999) to rename by number (Bug #14437) --- plugins/thunar-sbr/thunar-sbr-enum-types.c | 13 +++++++------ plugins/thunar-sbr/thunar-sbr-enum-types.h | 2 ++ plugins/thunar-sbr/thunar-sbr-number-renamer.c | 6 +++++- 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/plugins/thunar-sbr/thunar-sbr-enum-types.c b/plugins/thunar-sbr/thunar-sbr-enum-types.c index db1b68d..1368cee 100644 --- a/plugins/thunar-sbr/thunar-sbr-enum-types.c +++ b/plugins/thunar-sbr/thunar-sbr-enum-types.c @@ -106,12 +106,13 @@ thunar_sbr_register_enum_types (ThunarxProviderPlugin *plugin) static const GEnumValue number_mode_values[] = { - { THUNAR_SBR_NUMBER_MODE_123, "THUNAR_SBR_NUMBER_MODE_123", N_ ("1, 2, 3, ..."), }, - { THUNAR_SBR_NUMBER_MODE_010203, "THUNAR_SBR_NUMBER_MODE_010203", N_ ("01, 02, 03, ..."), }, - { THUNAR_SBR_NUMBER_MODE_001002003, "THUNAR_SBR_NUMBER_MODE_001002003", N_ ("001, 002, 003, ..."), }, - { THUNAR_SBR_NUMBER_MODE_000100020003, "THUNAR_SBR_NUMBER_MODE_000100020003", N_ ("0001, 0002, 0003, ..."), }, - { THUNAR_SBR_NUMBER_MODE_ABC, "THUNAR_SBR_NUMBER_MODE_ABC", N_ ("a, b, c, d, ..."), }, - { 0, NULL, NULL, }, + { THUNAR_SBR_NUMBER_MODE_123, "THUNAR_SBR_NUMBER_MODE_123", N_ ("1, 2, 3, ..."), }, + { THUNAR_SBR_NUMBER_MODE_010203, "THUNAR_SBR_NUMBER_MODE_010203", N_ ("01, 02, 03, ..."), }, + { THUNAR_SBR_NUMBER_MODE_001002003, "THUNAR_SBR_NUMBER_MODE_001002003", N_ ("001, 002, 003, ..."), }, + { THUNAR_SBR_NUMBER_MODE_000100020003, "THUNAR_SBR_NUMBER_MODE_000100020003", N_ ("0001, 0002, 0003, ..."), }, + { THUNAR_SBR_NUMBER_MODE_000010000200003, "THUNAR_SBR_NUMBER_MODE_000010000200003", N_ ("00001, 00002, 00003, ..."), }, + { THUNAR_SBR_NUMBER_MODE_ABC, "THUNAR_SBR_NUMBER_MODE_ABC", N_ ("a, b, c, d, ..."), }, + { 0, NULL, NULL, }, }; static const GEnumValue offset_mode_values[] = diff --git a/plugins/thunar-sbr/thunar-sbr-enum-types.h b/plugins/thunar-sbr/thunar-sbr-enum-types.h index 3e12b28..db89e62 100644 --- a/plugins/thunar-sbr/thunar-sbr-enum-types.h +++ b/plugins/thunar-sbr/thunar-sbr-enum-types.h @@ -73,6 +73,7 @@ GType thunar_sbr_insert_mode_get_type (void) G_GNUC_CONST; * @THUNAR_SBR_NUMBER_MODE_010203 : 01, 02, 03, ... * @THUNAR_SBR_NUMBER_MODE_001002003 : 001, 002, 003, ... * @THUNAR_SBR_NUMBER_MODE_000100020003 : 0001, 0002, 0003, ... + * @THUNAR_SBR_NUMBER_MODE_000100020003 : 00001, 00002, 00003, ... * @THUNAR_SBR_NUMBER_MODE_ABC : a, b, c, ... * * The numbering mode for the #ThunarSbrNumberRenamer. @@ -83,6 +84,7 @@ typedef enum THUNAR_SBR_NUMBER_MODE_010203, THUNAR_SBR_NUMBER_MODE_001002003, THUNAR_SBR_NUMBER_MODE_000100020003, + THUNAR_SBR_NUMBER_MODE_000010000200003, THUNAR_SBR_NUMBER_MODE_ABC, } ThunarSbrNumberMode; diff --git a/plugins/thunar-sbr/thunar-sbr-number-renamer.c b/plugins/thunar-sbr/thunar-sbr-number-renamer.c index 58b1d07..40906b0 100644 --- a/plugins/thunar-sbr/thunar-sbr-number-renamer.c +++ b/plugins/thunar-sbr/thunar-sbr-number-renamer.c @@ -205,7 +205,7 @@ thunar_sbr_number_renamer_init (ThunarSbrNumberRenamer *number_renamer) g_object_unref (G_OBJECT (relation)); number_renamer->start_entry = gtk_entry_new (); - gtk_entry_set_max_length (GTK_ENTRY (number_renamer->start_entry), 4); + gtk_entry_set_max_length (GTK_ENTRY (number_renamer->start_entry), 8); gtk_entry_set_width_chars (GTK_ENTRY (number_renamer->start_entry), 3); gtk_entry_set_alignment (GTK_ENTRY (number_renamer->start_entry), 1.0f); gtk_entry_set_activates_default (GTK_ENTRY (number_renamer->start_entry), TRUE); @@ -416,6 +416,10 @@ thunar_sbr_number_renamer_process (ThunarxRenamer *renamer, number = g_strdup_printf ("%04u", start + idx); break; + case THUNAR_SBR_NUMBER_MODE_000010000200003: + number = g_strdup_printf ("%05u", start + idx); + break; + case THUNAR_SBR_NUMBER_MODE_ABC: if (start >= 'a' && start <= 'z') number = g_strdup_printf ("%c", (gchar) (MIN (start + idx, 'z'))); -- To stop receiving notification emails like this one, please contact the administrator of this repository. _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits