1 diff -Nuard control-center-2.4.0.orig/capplets/theme-switcher/gnome-theme-installer.c control-center-2.4.0/capplets/theme-switcher/gnome-theme-installer.c
2 --- control-center-2.4.0.orig/capplets/theme-switcher/gnome-theme-installer.c 2003-01-16 08:40:29.000000000 +0100
3 +++ control-center-2.4.0/capplets/theme-switcher/gnome-theme-installer.c 2003-11-20 00:04:11.684669168 +0100
5 if (response_id == 0) {
6 icon_theme = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (widget), "icon_theme"));
7 raw = gtk_entry_get_text (GTK_ENTRY (gnome_file_entry_gtk_entry (GNOME_FILE_ENTRY (WID ("install_theme_picker")))));
8 - if (raw == NULL || strlen (raw) <= 0)
9 + if (raw == NULL || strlen (raw) <= 0) {
12 + dialog = gtk_message_dialog_new (NULL,
16 + _("No theme file location specified to install"));
17 + gtk_dialog_run (GTK_DIALOG (dialog));
18 + gtk_widget_destroy (dialog);
24 if (strncmp (raw, "http://", 7) && strncmp (raw, "ftp://", 6) && *raw != '/')
25 filename = gnome_file_entry_get_full_path (GNOME_FILE_ENTRY (WID ("install_theme_picker")), TRUE);
27 filename = g_strdup (raw);
28 - if (filename == NULL)
30 + if (filename == NULL) {
33 + dialog = gtk_message_dialog_new (NULL,
37 + _("The theme file location specified to install is invalid"));
38 + gtk_dialog_run (GTK_DIALOG (dialog));
39 + gtk_widget_destroy (dialog);
43 src_uri = gnome_vfs_uri_new (filename);
44 base = gnome_vfs_uri_extract_short_name (src_uri);
45 src = g_list_append (NULL, src_uri);