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:
parent
1e257d3741
commit
d4b9a45a00
2 changed files with 19 additions and 4 deletions
|
@ -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>
|
||||
|
||||
* 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
|
||||
|
||||
Fixes #147403
|
||||
|
|
|
@ -272,13 +272,22 @@ GdkPixbuf * gnome_wp_item_get_thumbnail (GnomeWPItem * item,
|
|||
}
|
||||
|
||||
void gnome_wp_item_update_description (GnomeWPItem * item) {
|
||||
|
||||
if (!strcmp (item->filename, "(none)")) {
|
||||
item->description = g_strdup_printf ("<b>%s</b>", item->name);
|
||||
} else {
|
||||
gchar * info;
|
||||
|
||||
info = g_strdup_printf (_("%s, %d x %d pixels"),
|
||||
gnome_vfs_mime_get_description (item->fileinfo->mime_type),
|
||||
item->width,
|
||||
item->height);
|
||||
|
||||
item->description = g_strdup_printf ("<b>%s</b>\n"
|
||||
"%s (%LuK)",
|
||||
"%s",
|
||||
item->name,
|
||||
gnome_vfs_mime_get_description (item->fileinfo->mime_type),
|
||||
item->fileinfo->size / 1024);
|
||||
info);
|
||||
|
||||
g_free (info);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue