2003-02-10 00:32:14 +00:00
|
|
|
//
|
2012-08-05 14:32:41 +00:00
|
|
|
// Gtk.Entry.cs - Allow customization of values in the GtkEntry
|
2004-06-25 18:42:19 +00:00
|
|
|
//
|
|
|
|
// This program is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of version 2 of the Lesser GNU General
|
|
|
|
// Public License as published by the Free Software Foundation.
|
|
|
|
//
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
// Lesser General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU Lesser General Public
|
|
|
|
// License along with this program; if not, write to the
|
|
|
|
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
// Boston, MA 02111-1307, USA.
|
|
|
|
|
2012-08-05 14:32:41 +00:00
|
|
|
namespace Gtk {
|
2003-02-10 00:32:14 +00:00
|
|
|
|
2012-08-05 14:32:41 +00:00
|
|
|
using System;
|
|
|
|
|
|
|
|
public partial class Entry {
|
2003-02-10 00:32:14 +00:00
|
|
|
public int InsertText (string new_text)
|
|
|
|
{
|
|
|
|
int position = 0;
|
|
|
|
|
2003-02-24 03:13:08 +00:00
|
|
|
InsertText (new_text, ref position);
|
2003-02-10 00:32:14 +00:00
|
|
|
|
|
|
|
return position;
|
|
|
|
}
|
2003-04-02 08:26:36 +00:00
|
|
|
|
|
|
|
public Entry(string initialText): this()
|
|
|
|
{
|
|
|
|
Text = initialText;
|
|
|
|
}
|
2005-08-22 16:55:20 +00:00
|
|
|
|
|
|
|
[Obsolete("Replaced by IsEditable property")]
|
|
|
|
public bool Editable {
|
|
|
|
get { return IsEditable; }
|
|
|
|
set { IsEditable = value; }
|
2012-08-05 14:32:41 +00:00
|
|
|
}
|
|
|
|
}
|
2005-08-22 16:55:20 +00:00
|
|
|
}
|