[gthumb] use G_N_ELEMENTS instead of hard-coding the array size



commit dd1969486a1f7d675a193bba13bef63b76f01261
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sat May 8 19:43:09 2021 +0200

    use G_N_ELEMENTS instead of hard-coding the array size

 extensions/rename_series/dlg-rename-series.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/extensions/rename_series/dlg-rename-series.c b/extensions/rename_series/dlg-rename-series.c
index 3dea20a2..9b6973e1 100644
--- a/extensions/rename_series/dlg-rename-series.c
+++ b/extensions/rename_series/dlg-rename-series.c
@@ -790,7 +790,7 @@ edit_template_button_clicked_cb (GtkWidget  *widget,
 {
        GtkWidget *dialog;
 
-       dialog = gth_template_editor_dialog_new (Rename_Special_Codes, 8, _("Edit Template"), GTK_WINDOW 
(data->dialog));
+       dialog = gth_template_editor_dialog_new (Rename_Special_Codes, G_N_ELEMENTS (Rename_Special_Codes), 
_("Edit Template"), GTK_WINDOW (data->dialog));
        gth_template_editor_dialog_set_template (GTH_TEMPLATE_EDITOR_DIALOG (dialog),
                                                 gtk_entry_get_text (GTK_ENTRY (GET_WIDGET 
("template_entry"))));
        g_signal_connect (dialog,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]