1999-02-16 Federico Mena Quintero <federico@nuclecu.unam.mx>

* gmetadata.c: Removed the gmeta_del_icon_pos() function, since it
	is no longer used anywhere.

	* gdesktop.c (reload_desktop_icons): Use gnome_metadata_delete()
	instead of gmeta_del_icon_pos().
	(desktop_icon_info_delete): Likewise.
	(desktop_icon_info_destroy): Do not call gnome_metadata_delete().
This commit is contained in:
Miguel de Icaza 1999-02-16 20:18:34 +00:00
parent 9e4cd04ea1
commit 6dbe424c38
4 changed files with 12 additions and 21 deletions

View File

@ -1,3 +1,13 @@
1999-02-16 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gmetadata.c: Removed the gmeta_del_icon_pos() function, since it
is no longer used anywhere.
* gdesktop.c (reload_desktop_icons): Use gnome_metadata_delete()
instead of gmeta_del_icon_pos().
(desktop_icon_info_delete): Likewise.
(desktop_icon_info_destroy): Do not call gnome_metadata_delete().
1999-02-15 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gdesktop.c (arrange_desktop_icons): I am such a doofus, I did

View File

@ -463,7 +463,7 @@ reload_desktop_icons (int user_pos, int xpos, int ypos)
for (l = all_icons; l; l = l->next) {
dii = l->data;
full_name = g_concat_dir_and_file (desktop_directory, dii->filename);
gmeta_del_icon_pos (full_name);
gnome_metadata_delete (full_name);
g_free (full_name);
desktop_icon_info_destroy (dii);
}
@ -884,7 +884,7 @@ desktop_icon_info_delete (DesktopIconInfo *dii)
erase_file (ctx, full_name, &progress_count, &progress_bytes, TRUE);
}
gmeta_del_icon_pos (full_name);
gnome_metadata_delete (full_name);
}
g_free (full_name);
@ -1541,7 +1541,6 @@ desktop_icon_info_destroy (DesktopIconInfo *dii)
gtk_widget_destroy (dii->dicon);
remove_from_slot (dii);
gnome_metadata_delete (dii->filename);
g_free (dii->url);
g_free (dii->filename);
g_free (dii);

View File

@ -78,18 +78,3 @@ gmeta_set_icon_pos (char *filename, int x, int y)
if (gnome_metadata_set (filename, ICON_POSITION, strlen (buf) + 1, buf) != 0)
g_warning ("Error setting the icon position metadata for \"%s\"", filename);
}
/**
* gmeta_del_icon_pos:
* @filename: The filename for which to delete icon position information.
*
* Deletes the icon position information for the specified file.
**/
void
gmeta_del_icon_pos (char *filename)
{
g_return_if_fail (filename != NULL);
gnome_metadata_remove (filename, ICON_POSITION);
}

View File

@ -17,8 +17,5 @@ int gmeta_get_icon_pos (char *filename, int *x, int *y);
/* Saves the icon position for the specified file */
void gmeta_set_icon_pos (char *filename, int x, int y);
/* Deletes the icon position information for the specified file */
void gmeta_del_icon_pos (char *filename);
#endif