* sample/VteTest.cs: update
* vte/Vte.metadata: remove incorrect rules * vte/vte-api.xml: regen svn path=/trunk/gtk-sharp/; revision=22586
This commit is contained in:
parent
9a6216e07e
commit
a987ae2982
4 changed files with 38 additions and 15 deletions
|
@ -3,6 +3,10 @@
|
||||||
* glade/XML.custom : some null checking for crash prevention.
|
* glade/XML.custom : some null checking for crash prevention.
|
||||||
[Fixes #47017]
|
[Fixes #47017]
|
||||||
|
|
||||||
|
* sample/VteTest.cs: update
|
||||||
|
* vte/Vte.metadata: remove incorrect rules
|
||||||
|
* vte/vte-api.xml: regen
|
||||||
|
|
||||||
2004-01-28 Mike Kestner <mkestner@ximian.com>
|
2004-01-28 Mike Kestner <mkestner@ximian.com>
|
||||||
|
|
||||||
* gtk/gtk-api.xml : regen
|
* gtk/gtk-api.xml : regen
|
||||||
|
|
|
@ -24,11 +24,19 @@ class T
|
||||||
|
|
||||||
ScrolledWindow sw = new ScrolledWindow ();
|
ScrolledWindow sw = new ScrolledWindow ();
|
||||||
Terminal term = new Terminal ();
|
Terminal term = new Terminal ();
|
||||||
|
term.EncodingChanged += new EventHandler (OnEncodingChanged);
|
||||||
term.CursorBlinks = true;
|
term.CursorBlinks = true;
|
||||||
term.MouseAutohide = true;
|
term.MouseAutohide = true;
|
||||||
term.ScrollOnKeystroke = true;
|
term.ScrollOnKeystroke = true;
|
||||||
//term.BackgroundTransparent = true;
|
term.DeleteBinding = TerminalEraseBinding.Auto;
|
||||||
term.Encoding = "UTF-8";
|
term.Encoding = "UTF-8";
|
||||||
|
term.FontFromString = "Monospace";
|
||||||
|
term.Commit += new VteSharp.CommitHandler (OnCommit);
|
||||||
|
term.TextDeleted += new EventHandler (OnTextDeleted);
|
||||||
|
|
||||||
|
Gdk.Color white = new Gdk.Color ();
|
||||||
|
Gdk.Color.Parse ("white", ref white);
|
||||||
|
term.ColorBackground = white;
|
||||||
|
|
||||||
Console.WriteLine (term.UsingXft);
|
Console.WriteLine (term.UsingXft);
|
||||||
Console.WriteLine (term.Encoding);
|
Console.WriteLine (term.Encoding);
|
||||||
|
@ -39,12 +47,10 @@ class T
|
||||||
string envv = "";
|
string envv = "";
|
||||||
// FIXME: send the env vars to ForkCommand
|
// FIXME: send the env vars to ForkCommand
|
||||||
Console.WriteLine (Environment.GetEnvironmentVariables ().Count);
|
Console.WriteLine (Environment.GetEnvironmentVariables ().Count);
|
||||||
|
Console.WriteLine (Environment.CurrentDirectory);
|
||||||
|
|
||||||
int pid = term.ForkCommand ("/bin/bash", argv, envv, Environment.CurrentDirectory, false, true, true);
|
//int pid = term.ForkCommand ("/bin/bash", argv, envv, Environment.CurrentDirectory, false, true, true);
|
||||||
Console.WriteLine ("Child pid: " + pid);
|
//Console.WriteLine ("Child pid: " + pid);
|
||||||
|
|
||||||
//term.Feed ("ls");
|
|
||||||
//term.FeedChild ("ls");
|
|
||||||
|
|
||||||
sw.AddWithViewport (term);
|
sw.AddWithViewport (term);
|
||||||
|
|
||||||
|
@ -53,6 +59,22 @@ class T
|
||||||
program.Run ();
|
program.Run ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void OnCommit (object o, VteSharp.CommitArgs args)
|
||||||
|
{
|
||||||
|
Terminal term = (Terminal) o;
|
||||||
|
term.Feed (args.P0);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void OnTextDeleted (object o, EventArgs args)
|
||||||
|
{
|
||||||
|
Console.WriteLine ("text deleted");
|
||||||
|
}
|
||||||
|
|
||||||
|
private void OnEncodingChanged (object o, EventArgs args)
|
||||||
|
{
|
||||||
|
Console.WriteLine ("encoding changed");
|
||||||
|
}
|
||||||
|
|
||||||
private void OnTextInserted (object o, EventArgs args)
|
private void OnTextInserted (object o, EventArgs args)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,9 +2,6 @@
|
||||||
<attr path="/api/namespace/object[@cname='VteReaper']" name="parent">GObject</attr>
|
<attr path="/api/namespace/object[@cname='VteReaper']" name="parent">GObject</attr>
|
||||||
<attr path="/api/namespace/object[@cname='VteTerminal']/method[@name='ForkCommand']/return-type" name="type">gint</attr>
|
<attr path="/api/namespace/object[@cname='VteTerminal']/method[@name='ForkCommand']/return-type" name="type">gint</attr>
|
||||||
<attr path="//return-type[@type='GNone']" name="type">void</attr>
|
<attr path="//return-type[@type='GNone']" name="type">void</attr>
|
||||||
<attr path="/api/namespace/object[@cname='VteBg']/signal/parameters/parameter[@name='p0']" name="type">VteBg*</attr>
|
|
||||||
<attr path="/api/namespace/object[@cname='VteReaper']/signal/parameters/parameter[@name='p0']" name="type">VteReaper*</attr>
|
|
||||||
<attr path="/api/namespace/object[@cname='VteTerminal']/signal/parameters/parameter[@name='p0']" name="type">VteTerminal*</attr>
|
|
||||||
<attr path="/api/namespace/object[@cname='VteTerminal']/method/parameters/parameter[@name='terminal,']" name="name">is_selected</attr>
|
<attr path="/api/namespace/object[@cname='VteTerminal']/method/parameters/parameter[@name='terminal,']" name="name">is_selected</attr>
|
||||||
<attr path="/api/namespace/object[@cname='VteTerminal']/method/parameters/parameter[@name='is_selected']" name="type">gboolean</attr>
|
<attr path="/api/namespace/object[@cname='VteTerminal']/method/parameters/parameter[@name='is_selected']" name="type">gboolean</attr>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
|
|
@ -93,7 +93,7 @@
|
||||||
<return-type type="void" />
|
<return-type type="void" />
|
||||||
<parameters>
|
<parameters>
|
||||||
<parameter name="inst" type="VteReaper*" />
|
<parameter name="inst" type="VteReaper*" />
|
||||||
<parameter name="p0" type="VteReaper*" />
|
<parameter name="p0" type="gint32" />
|
||||||
<parameter name="p1" type="gint32" />
|
<parameter name="p1" type="gint32" />
|
||||||
</parameters>
|
</parameters>
|
||||||
</signal>
|
</signal>
|
||||||
|
@ -149,7 +149,7 @@
|
||||||
<return-type type="void" />
|
<return-type type="void" />
|
||||||
<parameters>
|
<parameters>
|
||||||
<parameter name="inst" type="VteTerminal*" />
|
<parameter name="inst" type="VteTerminal*" />
|
||||||
<parameter name="p0" type="VteTerminal*" />
|
<parameter name="p0" type="gchar*" />
|
||||||
<parameter name="p1" type="guint32" />
|
<parameter name="p1" type="guint32" />
|
||||||
</parameters>
|
</parameters>
|
||||||
</signal>
|
</signal>
|
||||||
|
@ -163,7 +163,7 @@
|
||||||
<return-type type="void" />
|
<return-type type="void" />
|
||||||
<parameters>
|
<parameters>
|
||||||
<parameter name="inst" type="VteTerminal*" />
|
<parameter name="inst" type="VteTerminal*" />
|
||||||
<parameter name="p0" type="VteTerminal*" />
|
<parameter name="p0" type="guint32" />
|
||||||
<parameter name="p1" type="guint32" />
|
<parameter name="p1" type="guint32" />
|
||||||
</parameters>
|
</parameters>
|
||||||
</signal>
|
</signal>
|
||||||
|
@ -231,7 +231,7 @@
|
||||||
<return-type type="void" />
|
<return-type type="void" />
|
||||||
<parameters>
|
<parameters>
|
||||||
<parameter name="inst" type="VteTerminal*" />
|
<parameter name="inst" type="VteTerminal*" />
|
||||||
<parameter name="p0" type="VteTerminal*" />
|
<parameter name="p0" type="guint32" />
|
||||||
<parameter name="p1" type="guint32" />
|
<parameter name="p1" type="guint32" />
|
||||||
</parameters>
|
</parameters>
|
||||||
</signal>
|
</signal>
|
||||||
|
@ -239,7 +239,7 @@
|
||||||
<return-type type="void" />
|
<return-type type="void" />
|
||||||
<parameters>
|
<parameters>
|
||||||
<parameter name="inst" type="VteTerminal*" />
|
<parameter name="inst" type="VteTerminal*" />
|
||||||
<parameter name="p0" type="VteTerminal*" />
|
<parameter name="p0" type="guint32" />
|
||||||
<parameter name="p1" type="guint32" />
|
<parameter name="p1" type="guint32" />
|
||||||
</parameters>
|
</parameters>
|
||||||
</signal>
|
</signal>
|
||||||
|
@ -283,7 +283,7 @@
|
||||||
<return-type type="void" />
|
<return-type type="void" />
|
||||||
<parameters>
|
<parameters>
|
||||||
<parameter name="inst" type="VteTerminal*" />
|
<parameter name="inst" type="VteTerminal*" />
|
||||||
<parameter name="p0" type="VteTerminal*" />
|
<parameter name="p0" type="gint32" />
|
||||||
</parameters>
|
</parameters>
|
||||||
</signal>
|
</signal>
|
||||||
<method name="CopyClipboard" cname="vte_terminal_copy_clipboard">
|
<method name="CopyClipboard" cname="vte_terminal_copy_clipboard">
|
||||||
|
|
Loading…
Reference in a new issue