summaryrefslogtreecommitdiff
path: root/libnautilus-private/nautilus-entry.c
diff options
context:
space:
mode:
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)
{