2003-08-28 Alp Toker <alp@atoker.com>

* glue/style.c: glue and corresponding .custom entries for
        TextGC

svn path=/trunk/gtk-sharp/; revision=17678
This commit is contained in:
Alp Toker 2003-08-28 00:19:39 +00:00
parent 310ff89edd
commit 68261125e9
3 changed files with 40 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2003-08-28 Alp Toker <alp@atoker.com>
* glue/style.c: glue and corresponding .custom entries for
TextGC
2003-08-26 John Luke <jluke@cfl.rr.com>
* gtk/ThreadNotify.cs: mark dllimported methods private

View File

@ -19,12 +19,16 @@ GdkGC *gtksharp_gtk_style_get_bg_gc (GtkStyle *style, int i);
GdkGC *gtksharp_gtk_style_get_base_gc (GtkStyle *style, int i);
GdkGC *gtksharp_gtk_style_get_text_gc (GtkStyle *style, int i);
void gtksharp_gtk_style_set_fg_gc (GtkStyle *style, int i, GdkGC *gc);
void gtksharp_gtk_style_set_bg_gc (GtkStyle *style, int i, GdkGC *gc);
void gtksharp_gtk_style_set_base_gc (GtkStyle *style, int i, GdkGC *gc);
void gtksharp_gtk_style_set_text_gc (GtkStyle *style, int i, GdkGC *gc);
GdkColor *gtksharp_gtk_style_get_white (GtkStyle *style);
GdkColor *gtksharp_gtk_style_get_black (GtkStyle *style);
@ -77,6 +81,13 @@ gtksharp_gtk_style_get_base_gc (GtkStyle *style, int i)
return style->base_gc[i];
}
GdkGC*
gtksharp_gtk_style_get_text_gc (GtkStyle *style, int i)
{
g_object_ref (G_OBJECT (style->text_gc[i]));
return style->text_gc[i];
}
void
gtksharp_gtk_style_set_fg_gc (GtkStyle *style, int i, GdkGC *gc)
{
@ -98,6 +109,13 @@ gtksharp_gtk_style_set_base_gc (GtkStyle *style, int i, GdkGC *gc)
style->base_gc[i] = gc;
}
void
gtksharp_gtk_style_set_text_gc (GtkStyle *style, int i, GdkGC *gc)
{
g_object_ref (G_OBJECT (gc));
style->text_gc[i] = gc;
}
GdkColor*
gtksharp_gtk_style_get_white (GtkStyle *style)
{

View File

@ -105,6 +105,23 @@ public void SetBaseGC (StateType state, Gdk.GC gc)
gtksharp_gtk_style_set_base_gc (Handle, (int) state, gc.Handle);
}
[DllImport("gtksharpglue")]
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")]
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")]
static extern IntPtr gtksharp_gtk_style_get_white (IntPtr style);