mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-26 13:55:30 +00:00
d33dd8a15f
* gconf, sample/gconf: Added. * glue/combo.c: This was never added, add it now. * configure.in, makefile, sample/Makefile.in: Build new gconf bindings if gnome is enabled. svn path=/trunk/gtk-sharp/; revision=8389
34 lines
660 B
C#
34 lines
660 B
C#
namespace GConf.PropertyEditors
|
|
{
|
|
using Gtk;
|
|
using System;
|
|
|
|
public class PropertyEditorEntry : PropertyEditor
|
|
{
|
|
protected override void ValueChanged (object sender, NotifyEventArgs args)
|
|
{
|
|
object val = args.Value;
|
|
if (val == null)
|
|
return;
|
|
Entry entry = (Entry) Control;
|
|
entry.Text = (string) val;
|
|
}
|
|
|
|
void Changed (object obj, EventArgs args)
|
|
{
|
|
Entry entry = (Entry) Control;
|
|
Set (entry.Text);
|
|
}
|
|
|
|
protected override void ConnectHandlers ()
|
|
{
|
|
Entry entry = (Entry) Control;
|
|
entry.Changed += new EventHandler (Changed);
|
|
}
|
|
|
|
public PropertyEditorEntry (string key, Entry entry) : base (key, entry)
|
|
{
|
|
}
|
|
}
|
|
}
|