* vte/Vte.metadata: Fix Vte.Terminal.SetColors to reflect proper mapping
to vte_terminal_set_colors. palette is now Gdk.Color[]. * sample/VteTest.cs: Update to work with fixed parameter. * doc/en/Vte/Terminal.xml: Update vte docs to reflect parameter fix. svn path=/trunk/gtk-sharp/; revision=50671
This commit is contained in:
parent
0435b45895
commit
d904ed0fd7
4 changed files with 15 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
|||
2005-09-24 Christian Hergert <christian.hergert@gmail.com>
|
||||
|
||||
* vte/Vte.metadata: Fix Vte.Terminal.SetColors to reflect proper mapping
|
||||
to vte_terminal_set_colors. palette is now Gdk.Color[].
|
||||
* sample/VteTest.cs: Update to work with fixed parameter.
|
||||
* doc/en/Vte/Terminal.xml: Update vte docs to reflect parameter fix.
|
||||
|
||||
2005-09-23 Mike Kestner <mkestner@novell.com>
|
||||
|
||||
* configure.in.in : expand glib-sharp-2.0.pc.
|
||||
|
|
|
@ -584,7 +584,7 @@ class T
|
|||
<Parameters>
|
||||
<Parameter Name="foreground" Type="Gdk.Color" />
|
||||
<Parameter Name="background" Type="Gdk.Color" />
|
||||
<Parameter Name="palette" Type="Gdk.Color" />
|
||||
<Parameter Name="palette" Type="Gdk.Color[]" />
|
||||
<Parameter Name="palette_size" Type="System.Int64" />
|
||||
</Parameters>
|
||||
<Docs>
|
||||
|
|
|
@ -44,7 +44,12 @@ class T
|
|||
Gdk.Color.Parse ("black", ref black);
|
||||
// FIXME: following line is broken
|
||||
//term.ColorForeground = black;
|
||||
term.SetColors (black, white, white, 16);
|
||||
|
||||
// Create a palette with 0 colors. this could be replaced with
|
||||
// a palette of colors with a size of 0, 8, 16, or 24.
|
||||
Gdk.Color[] palette = new Gdk.Color[0];
|
||||
|
||||
term.SetColors (black, white, palette, palette.Length);
|
||||
|
||||
//Console.WriteLine (term.UsingXft);
|
||||
//Console.WriteLine (term.Encoding);
|
||||
|
|
|
@ -8,4 +8,5 @@
|
|||
<!-- mark as arrays -->
|
||||
<attr path="/api/namespace/object[@cname='VteTerminal']/method[@name='ForkCommand']/*/*[@name='envv']" name="array">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='VteTerminal']/method[@name='ForkCommand']/*/*[@name='argv']" name="array">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='VteTerminal']/method[@name='SetColors']/*/*[@name='palette']" name="array">1</attr>
|
||||
</metadata>
|
||||
|
|
Loading…
Reference in a new issue