summaryrefslogtreecommitdiff
path: root/libnautilus-private/nautilus-entry.c
diff options
context:
space:
mode:
authorGene Z. Ragan <gzr@eazel.com>2000-12-23 03:58:03 +0000
committerGene Ragan <gzr@src.gnome.org>2000-12-23 03:58:03 +0000
commitc95712a8e9b3cc541c7b161cf6af7c924903ed3d (patch)
treefb8976bd15827090a3089b306d0f3dc685238e91 /libnautilus-private/nautilus-entry.c
parenta89124dbf2dc1bf81af02f10a56fd5c84e58034e (diff)
downloadnautilus-c95712a8e9b3cc541c7b161cf6af7c924903ed3d.tar.gz
reviewed by: Pavel Cisler<pavel@eazel.com>
2000-12-22 Gene Z. Ragan <gzr@eazel.com> reviewed by: Pavel Cisler<pavel@eazel.com> Fixed bug 4951, No error given selecting unmountable "Disks" volume. I added a pipe to monitor the result of the mount/umount command. If an error is in the pipe, a details error dialog is displayed. A generic mount failed error is first and the details button reveals the error message returned in the pipe. * libnautilus-extensions/nautilus-volume-monitor.c: (find_command), (open_error_pipe), (close_error_pipe), (nautilus_volume_monitor_mount_unmount_removable): Renamed xfer to transfer. * libnautilus-extensions/nautilus-file-operations.c: (parent_for_error_dialog), (transfer_dialog_clicked_callback), (create_transfer_dialog), (handle_transfer_ok), (build_error_string), (handle_transfer_vfs_error), (handle_transfer_overwrite), (handle_transfer_duplicate), (update_transfer_callback), (sync_transfer_callback), (nautilus_file_operations_copy_move), (handle_new_folder_vfs_error), (new_folder_transfer_callback), (nautilus_file_operations_new_folder), (nautilus_file_operations_move_to_trash), (nautilus_file_operations_delete), (do_empty_trash): Added compatibility call. * libnautilus-extensions/nautilus-entry.c: * libnautilus-extensions/nautilus-entry.h: (nautilus_entry_new_with_max_length):
Diffstat (limited to 'libnautilus-private/nautilus-entry.c')
-rw-r--r--libnautilus-private/nautilus-entry.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/libnautilus-private/nautilus-entry.c b/libnautilus-private/nautilus-entry.c
index 3fab003e0..96eaf22f9 100644
--- a/libnautilus-private/nautilus-entry.c
+++ b/libnautilus-private/nautilus-entry.c
@@ -134,6 +134,18 @@ nautilus_entry_new (void)
return gtk_widget_new (NAUTILUS_TYPE_ENTRY, NULL);
}
+GtkWidget *
+nautilus_entry_new_with_max_length (guint16 max)
+{
+ GtkWidget *widget;
+
+ widget = gtk_widget_new (NAUTILUS_TYPE_ENTRY, NULL);
+ GTK_ENTRY (widget)->text_max_length = max;
+
+ return widget;
+}
+
+
static void
nautilus_entry_destroy (GtkObject *object)
{