summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2004-10-15 12:30:45 +0000
committerAlexander Larsson <alexl@src.gnome.org>2004-10-15 12:30:45 +0000
commitd0cf14dafe7f7dedecd4ab34eefe7ba107f7b81a (patch)
tree51e8125b5ce2b4fc850bf16f555b9e4827a2ed72
parent0319fad17f7cb628b5bc08a312295cb5dae62cae (diff)
downloadnautilus-d0cf14dafe7f7dedecd4ab34eefe7ba107f7b81a.tar.gz
Slightly better error when there is no handler for a file type. Not ideal,
2004-10-15 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-program-choosing.c (nautilus_launch_show_file): Slightly better error when there is no handler for a file type. Not ideal, needs fixing when we're not string frozen anymore.
-rw-r--r--ChangeLog6
-rw-r--r--libnautilus-private/nautilus-program-choosing.c6
2 files changed, 12 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 40f533060..5dafff07d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2004-10-15 Alexander Larsson <alexl@redhat.com>
+
+ * libnautilus-private/nautilus-program-choosing.c (nautilus_launch_show_file):
+ Slightly better error when there is no handler for a file type.
+ Not ideal, needs fixing when we're not string frozen anymore.
+
2004-10-14 Alexander Larsson <alexl@redhat.com>
* src/file-manager/fm-directory-view.c: (load_directory),
diff --git a/libnautilus-private/nautilus-program-choosing.c b/libnautilus-private/nautilus-program-choosing.c
index d48ea7cdf..985383301 100644
--- a/libnautilus-private/nautilus-program-choosing.c
+++ b/libnautilus-private/nautilus-program-choosing.c
@@ -583,6 +583,12 @@ void nautilus_launch_show_file (NautilusFile *file,
(action_type, file, parent_window);
break;
#endif
+ error_message = g_strdup_printf (_("Couldn't display \"%s\"."),
+ uri_for_display);
+ /* TODO: This really needs to be something saying "no app
+ * handling this file type", but there is a string freeze. */
+ detail_message = g_strdup ("");
+ break;
case GNOME_VFS_ERROR_LAUNCH:
/* TODO: These strings suck pretty badly, but we're in string-freeze,