gtk: Remove commented-out code from Gtk.Style

Gdk.GC is gone for good, so there no point in keeping anything that was
using it.
This commit is contained in:
Bertrand Lorentz 2012-08-05 19:42:34 +02:00
parent 140cad141f
commit 54f5025375

View file

@ -29,185 +29,6 @@ namespace Gtk {
public partial class Style {
#if FIXME30
static Gdk.GC EnsureGC (IntPtr raw) {
if (raw == IntPtr.Zero)
return null;
Gdk.GC ret = (Gdk.GC) GLib.Object.GetObject (raw, false);
if (ret == null)
ret = new Gdk.GC (raw);
return ret;
}
[DllImport("gtksharpglue-3")]
static extern IntPtr gtksharp_gtk_style_get_white_gc (IntPtr style);
public Gdk.GC WhiteGC {
get { return EnsureGC (gtksharp_gtk_style_get_white_gc (Handle)); }
}
[DllImport("gtksharpglue-3")]
static extern IntPtr gtksharp_gtk_style_get_black_gc (IntPtr style);
public Gdk.GC BlackGC {
get { return EnsureGC (gtksharp_gtk_style_get_black_gc (Handle)); }
}
[DllImport("gtksharpglue-3")]
static extern IntPtr gtksharp_gtk_style_get_fg_gc (IntPtr style, int i);
public Gdk.GC ForegroundGC (StateType state)
{
IntPtr raw = gtksharp_gtk_style_get_fg_gc (Handle, (int) state);
return EnsureGC (raw);
}
[DllImport("gtksharpglue-3")]
static extern IntPtr gtksharp_gtk_style_set_fg_gc (IntPtr style, int i, IntPtr gc);
public void SetForegroundGC (StateType state, Gdk.GC gc)
{
gtksharp_gtk_style_set_fg_gc (Handle, (int) state, gc.Handle);
}
public Gdk.GC[] ForegroundGCs {
get {
Gdk.GC[] ret = new Gdk.GC[5];
for (int i = 0; i < 5; i++)
ret[i] = EnsureGC (gtksharp_gtk_style_get_fg_gc (Handle, i));
return ret;
}
}
[DllImport("gtksharpglue-3")]
static extern IntPtr gtksharp_gtk_style_get_bg_gc (IntPtr style, int i);
public Gdk.GC BackgroundGC (StateType state)
{
IntPtr raw = gtksharp_gtk_style_get_bg_gc (Handle, (int) state);
return EnsureGC (raw);
}
[DllImport("gtksharpglue-3")]
static extern IntPtr gtksharp_gtk_style_set_bg_gc (IntPtr style, int i, IntPtr gc);
public void SetBackgroundGC (StateType state, Gdk.GC gc)
{
gtksharp_gtk_style_set_bg_gc (Handle, (int) state, gc.Handle);
}
public Gdk.GC[] BackgroundGCs {
get {
Gdk.GC[] ret = new Gdk.GC[5];
for (int i = 0; i < 5; i++)
ret[i] = EnsureGC (gtksharp_gtk_style_get_bg_gc (Handle, i));
return ret;
}
}
[DllImport("gtksharpglue-3")]
static extern IntPtr gtksharp_gtk_style_get_base_gc (IntPtr style, int i);
public Gdk.GC BaseGC (StateType state)
{
IntPtr raw = gtksharp_gtk_style_get_base_gc (Handle, (int) state);
return EnsureGC (raw);
}
[DllImport("gtksharpglue-3")]
static extern IntPtr gtksharp_gtk_style_set_base_gc (IntPtr style, int i, IntPtr gc);
public void SetBaseGC (StateType state, Gdk.GC gc)
{
gtksharp_gtk_style_set_base_gc (Handle, (int) state, gc.Handle);
}
[DllImport("gtksharpglue-3")]
static extern IntPtr gtksharp_gtk_style_get_text_gc (IntPtr style, int i);
public Gdk.GC TextGC (StateType state)
{
IntPtr raw = gtksharp_gtk_style_get_text_gc (Handle, (int) state);
return EnsureGC (raw);
}
[DllImport("gtksharpglue-3")]
static extern IntPtr gtksharp_gtk_style_set_text_gc (IntPtr style, int i, IntPtr gc);
public void SetTextGC (StateType state, Gdk.GC gc)
{
gtksharp_gtk_style_set_text_gc (Handle, (int) state, gc.Handle);
}
[DllImport("gtksharpglue-3")]
static extern IntPtr gtksharp_gtk_style_get_text_aa_gc (IntPtr style, int i);
public Gdk.GC TextAAGC (StateType state)
{
IntPtr raw = gtksharp_gtk_style_get_text_aa_gc (Handle, (int) state);
return EnsureGC (raw);
}
[DllImport("gtksharpglue-3")]
static extern IntPtr gtksharp_gtk_style_set_text_aa_gc (IntPtr style, int i, IntPtr gc);
public void SetTextAAGC (StateType state, Gdk.GC gc)
{
gtksharp_gtk_style_set_text_aa_gc (Handle, (int) state, gc.Handle);
}
[DllImport("gtksharpglue-3")]
static extern IntPtr gtksharp_gtk_style_get_light_gc (IntPtr style, int i);
public Gdk.GC LightGC (StateType state)
{
IntPtr raw = gtksharp_gtk_style_get_light_gc (Handle, (int) state);
return EnsureGC (raw);
}
[DllImport("gtksharpglue-3")]
static extern IntPtr gtksharp_gtk_style_set_light_gc (IntPtr style, int i, IntPtr gc);
public void SetLightGC (StateType state, Gdk.GC gc)
{
gtksharp_gtk_style_set_light_gc (Handle, (int) state, gc.Handle);
}
[DllImport("gtksharpglue-3")]
static extern IntPtr gtksharp_gtk_style_get_dark_gc (IntPtr style, int i);
public Gdk.GC DarkGC (StateType state)
{
IntPtr raw = gtksharp_gtk_style_get_dark_gc (Handle, (int) state);
return EnsureGC (raw);
}
[DllImport("gtksharpglue-3")]
static extern IntPtr gtksharp_gtk_style_set_dark_gc (IntPtr style, int i, IntPtr gc);
public void SetDarkGC (StateType state, Gdk.GC gc)
{
gtksharp_gtk_style_set_dark_gc (Handle, (int) state, gc.Handle);
}
[DllImport("gtksharpglue-3")]
static extern IntPtr gtksharp_gtk_style_get_mid_gc (IntPtr style, int i);
public Gdk.GC MidGC (StateType state)
{
IntPtr raw = gtksharp_gtk_style_get_mid_gc (Handle, (int) state);
return EnsureGC (raw);
}
[DllImport("gtksharpglue-3")]
static extern IntPtr gtksharp_gtk_style_set_mid_gc (IntPtr style, int i, IntPtr gc);
public void SetMidGC (StateType state, Gdk.GC gc)
{
gtksharp_gtk_style_set_mid_gc (Handle, (int) state, gc.Handle);
}
#endif
[DllImport("gtksharpglue-3")]
static extern IntPtr gtksharp_gtk_style_get_bg (IntPtr style, int i);