[easytag/wip/et_core-refactor: 1/9] Add File_Tag struct setters
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag/wip/et_core-refactor: 1/9] Add File_Tag struct setters
- Date: Tue, 30 Dec 2014 21:06:53 +0000 (UTC)
commit b1242ae8a868aa55a176ce7cebee173309701fdc
Author: David King <amigadave amigadave com>
Date: Sun Dec 28 15:52:10 2014 +0000
Add File_Tag struct setters
src/cddb_dialog.c | 58 ++++++++++-----------
src/et_core.c | 143 +++++++++++++++++++++++++++++++++++++++++++++++++++++
src/et_core.h | 16 ++++++
src/scan_dialog.c | 27 +++++-----
src/tag_area.c | 39 ++++++++-------
5 files changed, 221 insertions(+), 62 deletions(-)
---
diff --git a/src/cddb_dialog.c b/src/cddb_dialog.c
index 4d6fb7d..7df3964 100644
--- a/src/cddb_dialog.c
+++ b/src/cddb_dialog.c
@@ -2368,29 +2368,29 @@ Cddb_Set_Track_Infos_To_File_List (EtCDDBDialog *self)
if (set_fields & ET_CDDB_SET_FIELD_TITLE)
{
- ET_Set_Field_File_Tag_Item (&FileTag->title,
- cddbtrackalbum->track_name);
+ et_file_tag_set_title (FileTag,
+ cddbtrackalbum->track_name);
}
if ((set_fields & ET_CDDB_SET_FIELD_ARTIST)
&& cddbtrackalbum->cddbalbum->artist)
{
- ET_Set_Field_File_Tag_Item (&FileTag->artist,
- cddbtrackalbum->cddbalbum->artist);
+ et_file_tag_set_artist (FileTag,
+ cddbtrackalbum->cddbalbum->artist);
}
if ((set_fields & ET_CDDB_SET_FIELD_ALBUM)
&& cddbtrackalbum->cddbalbum->album)
{
- ET_Set_Field_File_Tag_Item (&FileTag->album,
- cddbtrackalbum->cddbalbum->album);
+ et_file_tag_set_album (FileTag,
+ cddbtrackalbum->cddbalbum->album);
}
if ((set_fields & ET_CDDB_SET_FIELD_YEAR)
&& cddbtrackalbum->cddbalbum->year)
{
- ET_Set_Field_File_Tag_Item (&FileTag->year,
- cddbtrackalbum->cddbalbum->year);
+ et_file_tag_set_year (FileTag,
+ cddbtrackalbum->cddbalbum->year);
}
if (set_fields & ET_CDDB_SET_FIELD_TRACK)
@@ -2399,7 +2399,7 @@ Cddb_Set_Track_Infos_To_File_List (EtCDDBDialog *self)
track_number = et_track_number_to_string (cddbtrackalbum->track_number);
- ET_Set_Field_File_Tag_Item (&FileTag->track, track_number);
+ et_file_tag_set_track_number (FileTag, track_number);
g_free (track_number);
}
@@ -2410,8 +2410,7 @@ Cddb_Set_Track_Infos_To_File_List (EtCDDBDialog *self)
track_total = et_track_number_to_string (list_length);
- ET_Set_Field_File_Tag_Item (&FileTag->track_total,
- track_total);
+ et_file_tag_set_track_total (FileTag, track_total);
g_free (track_total);
}
@@ -2423,13 +2422,13 @@ Cddb_Set_Track_Infos_To_File_List (EtCDDBDialog *self)
if (cddbtrackalbum->cddbalbum->genre
&& g_utf8_strlen (cddbtrackalbum->cddbalbum->genre, -1) > 0)
{
- ET_Set_Field_File_Tag_Item (&FileTag->genre,
- Cddb_Get_Id3_Genre_From_Cddb_Genre
(cddbtrackalbum->cddbalbum->genre));
+ et_file_tag_set_genre (FileTag,
+ Cddb_Get_Id3_Genre_From_Cddb_Genre
(cddbtrackalbum->cddbalbum->genre));
}
else
{
- ET_Set_Field_File_Tag_Item (&FileTag->genre,
- Cddb_Get_Id3_Genre_From_Cddb_Genre
(cddbtrackalbum->cddbalbum->category));
+ et_file_tag_set_genre (FileTag,
+ Cddb_Get_Id3_Genre_From_Cddb_Genre
(cddbtrackalbum->cddbalbum->category));
}
}
}
@@ -2498,29 +2497,29 @@ Cddb_Set_Track_Infos_To_File_List (EtCDDBDialog *self)
if (set_fields & ET_CDDB_SET_FIELD_TITLE)
{
- ET_Set_Field_File_Tag_Item (&FileTag->title,
- cddbtrackalbum->track_name);
+ et_file_tag_set_title (FileTag,
+ cddbtrackalbum->track_name);
}
if ((set_fields & ET_CDDB_SET_FIELD_ARTIST)
&& cddbtrackalbum->cddbalbum->artist)
{
- ET_Set_Field_File_Tag_Item (&FileTag->artist,
- cddbtrackalbum->cddbalbum->artist);
+ et_file_tag_set_artist (FileTag,
+ cddbtrackalbum->cddbalbum->artist);
}
if ((set_fields & ET_CDDB_SET_FIELD_ALBUM)
&& cddbtrackalbum->cddbalbum->album)
{
- ET_Set_Field_File_Tag_Item (&FileTag->album,
- cddbtrackalbum->cddbalbum->album);
+ et_file_tag_set_album (FileTag,
+ cddbtrackalbum->cddbalbum->album);
}
if ((set_fields & ET_CDDB_SET_FIELD_YEAR)
&& cddbtrackalbum->cddbalbum->year)
{
- ET_Set_Field_File_Tag_Item (&FileTag->year,
- cddbtrackalbum->cddbalbum->year);
+ et_file_tag_set_year (FileTag,
+ cddbtrackalbum->cddbalbum->year);
}
if (set_fields & ET_CDDB_SET_FIELD_TRACK)
@@ -2529,7 +2528,7 @@ Cddb_Set_Track_Infos_To_File_List (EtCDDBDialog *self)
track_number = et_track_number_to_string (cddbtrackalbum->track_number);
- ET_Set_Field_File_Tag_Item (&FileTag->track, track_number);
+ et_file_tag_set_track_number (FileTag, track_number);
g_free (track_number);
}
@@ -2540,8 +2539,7 @@ Cddb_Set_Track_Infos_To_File_List (EtCDDBDialog *self)
track_total = et_track_number_to_string (list_length);
- ET_Set_Field_File_Tag_Item (&FileTag->track_total,
- track_total);
+ et_file_tag_set_track_total (FileTag, track_total);
g_free (track_total);
}
@@ -2553,13 +2551,13 @@ Cddb_Set_Track_Infos_To_File_List (EtCDDBDialog *self)
if (cddbtrackalbum->cddbalbum->genre
&& g_utf8_strlen (cddbtrackalbum->cddbalbum->genre, -1) > 0)
{
- ET_Set_Field_File_Tag_Item (&FileTag->genre,
- Cddb_Get_Id3_Genre_From_Cddb_Genre
(cddbtrackalbum->cddbalbum->genre));
+ et_file_tag_set_genre (FileTag,
+ Cddb_Get_Id3_Genre_From_Cddb_Genre
(cddbtrackalbum->cddbalbum->genre));
}
else
{
- ET_Set_Field_File_Tag_Item (&FileTag->genre,
- Cddb_Get_Id3_Genre_From_Cddb_Genre
(cddbtrackalbum->cddbalbum->category));
+ et_file_tag_set_genre (FileTag,
+ Cddb_Get_Id3_Genre_From_Cddb_Genre
(cddbtrackalbum->cddbalbum->category));
}
}
}
diff --git a/src/et_core.c b/src/et_core.c
index 23d3d75..35d4429 100644
--- a/src/et_core.c
+++ b/src/et_core.c
@@ -2793,6 +2793,149 @@ ET_Set_Field_File_Tag_Item (gchar **FileTagField,
}
}
+void
+et_file_tag_set_title (File_Tag *file_tag,
+ const gchar *title)
+{
+ g_return_if_fail (file_tag != NULL);
+
+ ET_Set_Field_File_Tag_Item (&file_tag->title, title);
+}
+
+void
+et_file_tag_set_artist (File_Tag *file_tag,
+ const gchar *artist)
+{
+ g_return_if_fail (file_tag != NULL);
+
+ ET_Set_Field_File_Tag_Item (&file_tag->artist, artist);
+}
+
+void
+et_file_tag_set_album_artist (File_Tag *file_tag,
+ const gchar *album_artist)
+{
+ g_return_if_fail (file_tag != NULL);
+
+ ET_Set_Field_File_Tag_Item (&file_tag->album_artist, album_artist);
+}
+
+void
+et_file_tag_set_album (File_Tag *file_tag,
+ const gchar *album)
+{
+ g_return_if_fail (file_tag != NULL);
+
+ ET_Set_Field_File_Tag_Item (&file_tag->album, album);
+}
+
+void
+et_file_tag_set_disc_number (File_Tag *file_tag,
+ const gchar *disc_number)
+{
+ g_return_if_fail (file_tag != NULL);
+
+ ET_Set_Field_File_Tag_Item (&file_tag->disc_number, disc_number);
+}
+
+void
+et_file_tag_set_disc_total (File_Tag *file_tag,
+ const gchar *disc_total)
+{
+ g_return_if_fail (file_tag != NULL);
+
+ ET_Set_Field_File_Tag_Item (&file_tag->disc_total, disc_total);
+}
+
+void
+et_file_tag_set_year (File_Tag *file_tag,
+ const gchar *year)
+{
+ g_return_if_fail (file_tag != NULL);
+
+ ET_Set_Field_File_Tag_Item (&file_tag->year, year);
+}
+
+void
+et_file_tag_set_track_number (File_Tag *file_tag,
+ const gchar *track_number)
+{
+ g_return_if_fail (file_tag != NULL);
+
+ ET_Set_Field_File_Tag_Item (&file_tag->track, track_number);
+}
+
+void
+et_file_tag_set_track_total (File_Tag *file_tag,
+ const gchar *track_total)
+{
+ g_return_if_fail (file_tag != NULL);
+
+ ET_Set_Field_File_Tag_Item (&file_tag->track_total, track_total);
+}
+
+void
+et_file_tag_set_genre (File_Tag *file_tag,
+ const gchar *genre)
+{
+ g_return_if_fail (file_tag != NULL);
+
+ ET_Set_Field_File_Tag_Item (&file_tag->genre, genre);
+}
+
+void
+et_file_tag_set_comment (File_Tag *file_tag,
+ const gchar *comment)
+{
+ g_return_if_fail (file_tag != NULL);
+
+ ET_Set_Field_File_Tag_Item (&file_tag->comment, comment);
+}
+
+void
+et_file_tag_set_composer (File_Tag *file_tag,
+ const gchar *composer)
+{
+ g_return_if_fail (file_tag != NULL);
+
+ ET_Set_Field_File_Tag_Item (&file_tag->composer, composer);
+}
+
+void
+et_file_tag_set_orig_artist (File_Tag *file_tag,
+ const gchar *orig_artist)
+{
+ g_return_if_fail (file_tag != NULL);
+
+ ET_Set_Field_File_Tag_Item (&file_tag->orig_artist, orig_artist);
+}
+
+void
+et_file_tag_set_copyright (File_Tag *file_tag,
+ const gchar *copyright)
+{
+ g_return_if_fail (file_tag != NULL);
+
+ ET_Set_Field_File_Tag_Item (&file_tag->copyright, copyright);
+}
+
+void
+et_file_tag_set_url (File_Tag *file_tag,
+ const gchar *url)
+{
+ g_return_if_fail (file_tag != NULL);
+
+ ET_Set_Field_File_Tag_Item (&file_tag->url, url);
+}
+
+void
+et_file_tag_set_encoded_by (File_Tag *file_tag,
+ const gchar *encoded_by)
+{
+ g_return_if_fail (file_tag != NULL);
+
+ ET_Set_Field_File_Tag_Item (&file_tag->encoded_by, encoded_by);
+}
/*
* et_file_tag_set_picture:
diff --git a/src/et_core.h b/src/et_core.h
index 810b1c6..9041833 100644
--- a/src/et_core.h
+++ b/src/et_core.h
@@ -298,6 +298,22 @@ gboolean ET_Copy_File_Tag_Item (const ET_File *ETFile, File_Tag *FileTag);
gboolean ET_Set_Field_File_Name_Item (gchar **FileNameField, gchar *value);
gboolean ET_Set_Filename_File_Name_Item (File_Name *FileName, const gchar *filename_utf8, const gchar
*filename);
void ET_Set_Field_File_Tag_Item (gchar **FileTagField, const gchar *value);
+void et_file_tag_set_title (File_Tag *file_tag, const gchar *title);
+void et_file_tag_set_artist (File_Tag *file_tag, const gchar *artist);
+void et_file_tag_set_album_artist (File_Tag *file_tag, const gchar *album_artist);
+void et_file_tag_set_album (File_Tag *file_tag, const gchar *album);
+void et_file_tag_set_disc_number (File_Tag *file_tag, const gchar *disc_number);
+void et_file_tag_set_disc_total (File_Tag *file_tag, const gchar *disc_total);
+void et_file_tag_set_year (File_Tag *file_tag, const gchar *year);
+void et_file_tag_set_track_number (File_Tag *file_tag, const gchar *track_number);
+void et_file_tag_set_track_total (File_Tag *file_tag, const gchar *track_total);
+void et_file_tag_set_genre (File_Tag *file_tag, const gchar *genre);
+void et_file_tag_set_comment (File_Tag *file_tag, const gchar *comment);
+void et_file_tag_set_composer (File_Tag *file_tag, const gchar *composer);
+void et_file_tag_set_orig_artist (File_Tag *file_tag, const gchar *orig_artist);
+void et_file_tag_set_copyright (File_Tag *file_tag, const gchar *copyright);
+void et_file_tag_set_url (File_Tag *file_tag, const gchar *url);
+void et_file_tag_set_encoded_by (File_Tag *file_tag, const gchar *encoded_by);
void et_file_tag_set_picture (File_Tag *file_tag, const EtPicture *pic);
GList *ET_Displayed_File_List_First (void);
diff --git a/src/scan_dialog.c b/src/scan_dialog.c
index 95333e0..4848ba6 100644
--- a/src/scan_dialog.c
+++ b/src/scan_dialog.c
@@ -272,8 +272,7 @@ Scan_Tag_With_Mask (EtScanDialog *self, ET_File *ETFile)
{
gchar *default_comment = g_settings_get_string (MainSettings,
"fill-default-comment");
- ET_Set_Field_File_Tag_Item ((void *)&FileTag->comment,
- default_comment);
+ et_file_tag_set_comment (FileTag, default_comment);
g_free (default_comment);
}
@@ -298,7 +297,7 @@ Scan_Tag_With_Mask (EtScanDialog *self, ET_File *ETFile)
{
buffer = g_strdup_printf ("%.8" G_GUINT32_FORMAT,
crc32_value);
- ET_Set_Field_File_Tag_Item((void *)&FileTag->comment,buffer);
+ et_file_tag_set_comment (FileTag, buffer);
g_free(buffer);
}
else
@@ -1262,7 +1261,7 @@ Scan_Process_Fields (EtScanDialog *self, ET_File *ETFile)
Scan_Process_Fields_Functions (self, &string);
- ET_Set_Field_File_Tag_Item(&FileTag->title,string);
+ et_file_tag_set_title (FileTag, string);
g_free(string);
}
@@ -1281,7 +1280,7 @@ Scan_Process_Fields (EtScanDialog *self, ET_File *ETFile)
Scan_Process_Fields_Functions (self, &string);
- ET_Set_Field_File_Tag_Item(&FileTag->artist,string);
+ et_file_tag_set_artist (FileTag, string);
g_free(string);
}
@@ -1300,7 +1299,7 @@ Scan_Process_Fields (EtScanDialog *self, ET_File *ETFile)
Scan_Process_Fields_Functions (self, &string);
- ET_Set_Field_File_Tag_Item(&FileTag->album_artist,string);
+ et_file_tag_set_album_artist (FileTag, string);
g_free(string);
}
@@ -1319,7 +1318,7 @@ Scan_Process_Fields (EtScanDialog *self, ET_File *ETFile)
Scan_Process_Fields_Functions (self, &string);
- ET_Set_Field_File_Tag_Item(&FileTag->album,string);
+ et_file_tag_set_album (FileTag, string);
g_free(string);
}
@@ -1338,7 +1337,7 @@ Scan_Process_Fields (EtScanDialog *self, ET_File *ETFile)
Scan_Process_Fields_Functions (self, &string);
- ET_Set_Field_File_Tag_Item(&FileTag->genre,string);
+ et_file_tag_set_genre (FileTag, string);
g_free(string);
}
@@ -1357,7 +1356,7 @@ Scan_Process_Fields (EtScanDialog *self, ET_File *ETFile)
Scan_Process_Fields_Functions (self, &string);
- ET_Set_Field_File_Tag_Item(&FileTag->comment,string);
+ et_file_tag_set_comment (FileTag, string);
g_free(string);
}
@@ -1376,7 +1375,7 @@ Scan_Process_Fields (EtScanDialog *self, ET_File *ETFile)
Scan_Process_Fields_Functions (self, &string);
- ET_Set_Field_File_Tag_Item(&FileTag->composer,string);
+ et_file_tag_set_composer (FileTag, string);
g_free(string);
}
@@ -1395,7 +1394,7 @@ Scan_Process_Fields (EtScanDialog *self, ET_File *ETFile)
Scan_Process_Fields_Functions (self, &string);
- ET_Set_Field_File_Tag_Item(&FileTag->orig_artist,string);
+ et_file_tag_set_orig_artist (FileTag, string);
g_free(string);
}
@@ -1414,7 +1413,7 @@ Scan_Process_Fields (EtScanDialog *self, ET_File *ETFile)
Scan_Process_Fields_Functions (self, &string);
- ET_Set_Field_File_Tag_Item(&FileTag->copyright,string);
+ et_file_tag_set_copyright (FileTag, string);
g_free(string);
}
@@ -1433,7 +1432,7 @@ Scan_Process_Fields (EtScanDialog *self, ET_File *ETFile)
Scan_Process_Fields_Functions (self, &string);
- ET_Set_Field_File_Tag_Item(&FileTag->url,string);
+ et_file_tag_set_url (FileTag, string);
g_free(string);
}
@@ -1452,7 +1451,7 @@ Scan_Process_Fields (EtScanDialog *self, ET_File *ETFile)
Scan_Process_Fields_Functions (self, &string);
- ET_Set_Field_File_Tag_Item(&FileTag->encoded_by,string);
+ et_file_tag_set_encoded_by (FileTag, string);
g_free(string);
}
diff --git a/src/tag_area.c b/src/tag_area.c
index ca05927..a34a639 100644
--- a/src/tag_area.c
+++ b/src/tag_area.c
@@ -178,7 +178,7 @@ on_apply_to_selection (GObject *object,
etfile = (ET_File *)l->data;
FileTag = ET_File_Tag_Item_New();
ET_Copy_File_Tag_Item(etfile,FileTag);
- ET_Set_Field_File_Tag_Item(&FileTag->title,string_to_set);
+ et_file_tag_set_title (FileTag, string_to_set);
ET_Manage_Changes_Of_File_Data(etfile,NULL,FileTag);
}
if (string_to_set != NULL && g_utf8_strlen(string_to_set, -1)>0)
@@ -200,7 +200,7 @@ on_apply_to_selection (GObject *object,
etfile = (ET_File *)l->data;
FileTag = ET_File_Tag_Item_New();
ET_Copy_File_Tag_Item(etfile,FileTag);
- ET_Set_Field_File_Tag_Item(&FileTag->artist,string_to_set);
+ et_file_tag_set_artist (FileTag, string_to_set);
ET_Manage_Changes_Of_File_Data(etfile,NULL,FileTag);
}
if (string_to_set != NULL && g_utf8_strlen(string_to_set, -1)>0)
@@ -221,7 +221,7 @@ on_apply_to_selection (GObject *object,
etfile = (ET_File *)l->data;
FileTag = ET_File_Tag_Item_New();
ET_Copy_File_Tag_Item(etfile,FileTag);
- ET_Set_Field_File_Tag_Item(&FileTag->album_artist,string_to_set);
+ et_file_tag_set_album_artist (FileTag, string_to_set);
ET_Manage_Changes_Of_File_Data(etfile,NULL,FileTag);
}
if (string_to_set != NULL && g_utf8_strlen(string_to_set, -1)>0)
@@ -243,7 +243,7 @@ on_apply_to_selection (GObject *object,
etfile = (ET_File *)l->data;
FileTag = ET_File_Tag_Item_New();
ET_Copy_File_Tag_Item(etfile,FileTag);
- ET_Set_Field_File_Tag_Item(&FileTag->album,string_to_set);
+ et_file_tag_set_album (FileTag, string_to_set);
ET_Manage_Changes_Of_File_Data(etfile,NULL,FileTag);
}
if (string_to_set != NULL && g_utf8_strlen(string_to_set, -1)>0)
@@ -281,8 +281,8 @@ on_apply_to_selection (GObject *object,
etfile = (ET_File *)l->data;
FileTag = ET_File_Tag_Item_New();
ET_Copy_File_Tag_Item(etfile,FileTag);
- ET_Set_Field_File_Tag_Item (&FileTag->disc_number, string_to_set);
- ET_Set_Field_File_Tag_Item (&FileTag->disc_total, string_to_set1);
+ et_file_tag_set_disc_number (FileTag, string_to_set);
+ et_file_tag_set_disc_total (FileTag, string_to_set1);
ET_Manage_Changes_Of_File_Data(etfile,NULL,FileTag);
}
@@ -313,7 +313,7 @@ on_apply_to_selection (GObject *object,
etfile = (ET_File *)l->data;
FileTag = ET_File_Tag_Item_New();
ET_Copy_File_Tag_Item(etfile,FileTag);
- ET_Set_Field_File_Tag_Item(&FileTag->year,string_to_set);
+ et_file_tag_set_year (FileTag, string_to_set);
ET_Manage_Changes_Of_File_Data(etfile,NULL,FileTag);
}
if (string_to_set != NULL && g_utf8_strlen(string_to_set, -1)>0)
@@ -341,8 +341,11 @@ on_apply_to_selection (GObject *object,
// We apply the TrackEntry field to all others files only if it is to delete
// the field (string=""). Else we don't overwrite the track number
if (!string_to_set || g_utf8_strlen(string_to_set, -1) == 0)
- ET_Set_Field_File_Tag_Item(&FileTag->track,string_to_set);
- ET_Set_Field_File_Tag_Item(&FileTag->track_total,string_to_set1);
+ {
+ et_file_tag_set_track_number (FileTag, string_to_set);
+ }
+
+ et_file_tag_set_track_total (FileTag, string_to_set1);
ET_Manage_Changes_Of_File_Data(etfile,NULL,FileTag);
}
@@ -401,7 +404,7 @@ on_apply_to_selection (GObject *object,
{
FileTag = ET_File_Tag_Item_New();
ET_Copy_File_Tag_Item(etfile,FileTag);
- ET_Set_Field_File_Tag_Item(&FileTag->track,string_to_set);
+ et_file_tag_set_track_number (FileTag, string_to_set);
ET_Manage_Changes_Of_File_Data(etfile,NULL,FileTag);
if (!etfilelist->next) break;
@@ -438,7 +441,7 @@ on_apply_to_selection (GObject *object,
FileTag = ET_File_Tag_Item_New();
ET_Copy_File_Tag_Item(etfile,FileTag);
- ET_Set_Field_File_Tag_Item(&FileTag->track_total,string_to_set);
+ et_file_tag_set_track_total (FileTag, string_to_set);
ET_Manage_Changes_Of_File_Data(etfile,NULL,FileTag);
}
@@ -461,7 +464,7 @@ on_apply_to_selection (GObject *object,
etfile = (ET_File *)l->data;
FileTag = ET_File_Tag_Item_New();
ET_Copy_File_Tag_Item(etfile,FileTag);
- ET_Set_Field_File_Tag_Item(&FileTag->genre,string_to_set);
+ et_file_tag_set_genre (FileTag, string_to_set);
ET_Manage_Changes_Of_File_Data(etfile,NULL,FileTag);
}
if (string_to_set != NULL && g_utf8_strlen(string_to_set, -1)>0)
@@ -490,7 +493,7 @@ on_apply_to_selection (GObject *object,
etfile = (ET_File *)l->data;
FileTag = ET_File_Tag_Item_New();
ET_Copy_File_Tag_Item(etfile,FileTag);
- ET_Set_Field_File_Tag_Item(&FileTag->comment,string_to_set);
+ et_file_tag_set_comment (FileTag, string_to_set);
ET_Manage_Changes_Of_File_Data(etfile,NULL,FileTag);
}
if (string_to_set != NULL && g_utf8_strlen(string_to_set, -1)>0)
@@ -511,7 +514,7 @@ on_apply_to_selection (GObject *object,
etfile = (ET_File *)l->data;
FileTag = ET_File_Tag_Item_New();
ET_Copy_File_Tag_Item(etfile,FileTag);
- ET_Set_Field_File_Tag_Item(&FileTag->composer,string_to_set);
+ et_file_tag_set_composer (FileTag, string_to_set);
ET_Manage_Changes_Of_File_Data(etfile,NULL,FileTag);
}
if (string_to_set != NULL && g_utf8_strlen(string_to_set, -1)>0)
@@ -533,7 +536,7 @@ on_apply_to_selection (GObject *object,
etfile = (ET_File *)l->data;
FileTag = ET_File_Tag_Item_New();
ET_Copy_File_Tag_Item(etfile,FileTag);
- ET_Set_Field_File_Tag_Item(&FileTag->orig_artist,string_to_set);
+ et_file_tag_set_orig_artist (FileTag, string_to_set);
ET_Manage_Changes_Of_File_Data(etfile,NULL,FileTag);
}
if (string_to_set != NULL && g_utf8_strlen(string_to_set, -1)>0)
@@ -555,7 +558,7 @@ on_apply_to_selection (GObject *object,
etfile = (ET_File *)l->data;
FileTag = ET_File_Tag_Item_New();
ET_Copy_File_Tag_Item(etfile,FileTag);
- ET_Set_Field_File_Tag_Item(&FileTag->copyright,string_to_set);
+ et_file_tag_set_copyright (FileTag, string_to_set);
ET_Manage_Changes_Of_File_Data(etfile,NULL,FileTag);
}
if (string_to_set != NULL && g_utf8_strlen(string_to_set, -1)>0)
@@ -577,7 +580,7 @@ on_apply_to_selection (GObject *object,
etfile = (ET_File *)l->data;
FileTag = ET_File_Tag_Item_New();
ET_Copy_File_Tag_Item(etfile,FileTag);
- ET_Set_Field_File_Tag_Item(&FileTag->url,string_to_set);
+ et_file_tag_set_url (FileTag, string_to_set);
ET_Manage_Changes_Of_File_Data(etfile,NULL,FileTag);
}
if (string_to_set != NULL && g_utf8_strlen(string_to_set, -1)>0)
@@ -599,7 +602,7 @@ on_apply_to_selection (GObject *object,
etfile = (ET_File *)l->data;
FileTag = ET_File_Tag_Item_New();
ET_Copy_File_Tag_Item(etfile,FileTag);
- ET_Set_Field_File_Tag_Item(&FileTag->encoded_by,string_to_set);
+ et_file_tag_set_encoded_by (FileTag, string_to_set);
ET_Manage_Changes_Of_File_Data(etfile,NULL,FileTag);
}
if (string_to_set != NULL && g_utf8_strlen(string_to_set, -1)>0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]