Add "W x H pixels" to description, and remove file size Mark the

2004-08-15  Rodney Dawes  <dobey@novell.com>

	* gnome-wp-item.c (gnome_wp_item_update_description):
	Add "W x H pixels" to description, and remove file size
	Mark the description string for translation as well
This commit is contained in:
Rodney Dawes 2004-08-15 19:07:34 +00:00 committed by Rodney Dawes
parent 1e257d3741
commit d4b9a45a00
2 changed files with 19 additions and 4 deletions

View file

@ -1,6 +1,12 @@
2004-08-15 Rodney Dawes <dobey@novell.com>
* gnome-wp-item.c (gnome_wp_item_update_description):
Add "W x H pixels" to description, and remove file size
Mark the description string for translation as well
2004-07-19 Rodney Dawes <dobey@novell.com> 2004-07-19 Rodney Dawes <dobey@novell.com>
* gnome-wp-item.c (gnome_wp_remove_wallpaper, gnome_wp_list_sort): * gnome-wp-capplet.c (gnome_wp_remove_wallpaper, gnome_wp_list_sort):
Free what we get with gtk_tree_model_get Free what we get with gtk_tree_model_get
Fixes #147403 Fixes #147403

View file

@ -272,13 +272,22 @@ GdkPixbuf * gnome_wp_item_get_thumbnail (GnomeWPItem * item,
} }
void gnome_wp_item_update_description (GnomeWPItem * item) { void gnome_wp_item_update_description (GnomeWPItem * item) {
if (!strcmp (item->filename, "(none)")) { if (!strcmp (item->filename, "(none)")) {
item->description = g_strdup_printf ("<b>%s</b>", item->name); item->description = g_strdup_printf ("<b>%s</b>", item->name);
} else { } else {
item->description = g_strdup_printf ("<b>%s</b>\n" gchar * info;
"%s (%LuK)",
item->name, info = g_strdup_printf (_("%s, %d x %d pixels"),
gnome_vfs_mime_get_description (item->fileinfo->mime_type), gnome_vfs_mime_get_description (item->fileinfo->mime_type),
item->fileinfo->size / 1024); item->width,
item->height);
item->description = g_strdup_printf ("<b>%s</b>\n"
"%s",
item->name,
info);
g_free (info);
} }
} }