Commit 25597b91e79761f59190d14c21b38ad0850c2d73
1 parent
c070864d
Exists in
master
and in
1 other branch
Fixing LGTM warnings.
Showing
1 changed file
with
7 additions
and
7 deletions
Show diff stats
src/dialogs/save/save.c
... | ... | @@ -42,11 +42,11 @@ |
42 | 42 | |
43 | 43 | /*--[ Formats ]--------------------------------------------------------------------------------------*/ |
44 | 44 | |
45 | - static const struct _formats | |
45 | + static const struct _file_types | |
46 | 46 | { |
47 | 47 | const gchar *name; |
48 | 48 | const gchar *extension; |
49 | - } formats[] = | |
49 | + } file_types[] = | |
50 | 50 | { |
51 | 51 | { |
52 | 52 | N_("Plain text"), |
... | ... | @@ -296,13 +296,13 @@ static void icon_press(GtkEntry *entry, G_GNUC_UNUSED GtkEntryIconPosition icon_ |
296 | 296 | |
297 | 297 | gtk_grid_attach(grid,GTK_WIDGET(dialog->format),3,1,1,1); |
298 | 298 | |
299 | - for(ix=0;ix<G_N_ELEMENTS(formats);ix++) | |
299 | + for(ix=0;ix<G_N_ELEMENTS(file_types);ix++) | |
300 | 300 | { |
301 | 301 | gtk_combo_box_text_insert( |
302 | 302 | GTK_COMBO_BOX_TEXT(dialog->format), |
303 | 303 | -1, |
304 | - formats[ix].extension, | |
305 | - g_dgettext(GETTEXT_PACKAGE,formats[ix].name) | |
304 | + file_types[ix].extension, | |
305 | + g_dgettext(GETTEXT_PACKAGE,file_types[ix].name) | |
306 | 306 | ); |
307 | 307 | } |
308 | 308 | |
... | ... | @@ -579,9 +579,9 @@ static void icon_press(GtkEntry *entry, G_GNUC_UNUSED GtkEntryIconPosition icon_ |
579 | 579 | const gchar * format = gtk_combo_box_get_active_id(GTK_COMBO_BOX(dialog->format)); |
580 | 580 | |
581 | 581 | // Check for text formats. |
582 | - for(ix=0;ix<G_N_ELEMENTS(formats);ix++) | |
582 | + for(ix=0;ix<G_N_ELEMENTS(file_types);ix++) | |
583 | 583 | { |
584 | - if(!strcmp(formats[ix].extension,format)) | |
584 | + if(!strcmp(file_types[ix].extension,format)) | |
585 | 585 | { |
586 | 586 | // Is text format, save it |
587 | 587 | save_as_text(dialog, ix, error); | ... | ... |