Re: [PATCH] Improve broken symlink dialog for trash

On Sat, 2005-12-03 at 12:28 +0100, Christian Neumair wrote:
> Reported as bug 132751 [1]. The attached patch makes the dialog for
> trashed files more appropriate and also ensures that no dialog title is
> shown.
> [1]

+       name = nautilus_file_get_name (file);
+       if (nautilus_file_is_in_trash (file)) {
+               prompt = g_strdup_printf (_("The Link \"%s\" is Broken."), name);
+       } else {
+               prompt = g_strdup_printf (_("The Link \"%s\" is Broken. Move it to Trash?"), name);
+       }
+       g_free (name);

You need to use display_name here, the name might not be valid utf8.

 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's a sword-wielding amnesiac paramedic in drag. She's a sharp-shooting 
antique-collecting doctor who can talk to animals. They fight crime! 

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]