add gdk_gc_quartz_init() and set some values to the defaults used by X11.
2007-06-07 Michael Natterer <mitch@imendio.com> * gdk/quartz/gdkgc-quartz.c: add gdk_gc_quartz_init() and set some values to the defaults used by X11. (gdk_quartz_gc_set_values): really set cap_style when GDK_GC_CAP_STYLE is in the mask, not line_style. svn path=/trunk/; revision=18079
This commit is contained in:
committed by
Michael Natterer
parent
88a05af64f
commit
dde0d5ffa5
@ -101,7 +101,7 @@ gdk_quartz_gc_set_values (GdkGC *gc,
|
||||
private->line_style = values->line_style;
|
||||
|
||||
if (mask & GDK_GC_CAP_STYLE)
|
||||
private->line_style = values->line_style;
|
||||
private->cap_style = values->cap_style;
|
||||
|
||||
if (mask & GDK_GC_JOIN_STYLE)
|
||||
private->join_style = values->join_style;
|
||||
@ -150,6 +150,18 @@ gdk_gc_quartz_class_init (GdkGCQuartzClass *klass)
|
||||
gc_class->set_dashes = gdk_quartz_gc_set_dashes;
|
||||
}
|
||||
|
||||
static void
|
||||
gdk_gc_quartz_init (GdkGCQuartz *gc_quartz)
|
||||
{
|
||||
gc_quartz->function = GDK_COPY;
|
||||
gc_quartz->subwindow_mode = GDK_CLIP_BY_CHILDREN;
|
||||
gc_quartz->graphics_exposures = TRUE;
|
||||
gc_quartz->line_width = 0;
|
||||
gc_quartz->line_style = GDK_LINE_SOLID;
|
||||
gc_quartz->cap_style = GDK_CAP_BUTT;
|
||||
gc_quartz->join_style = GDK_JOIN_MITER;
|
||||
}
|
||||
|
||||
GType
|
||||
_gdk_gc_quartz_get_type (void)
|
||||
{
|
||||
@ -167,7 +179,7 @@ _gdk_gc_quartz_get_type (void)
|
||||
NULL, /* class_data */
|
||||
sizeof (GdkGCQuartz),
|
||||
0, /* n_preallocs */
|
||||
(GInstanceInitFunc) NULL,
|
||||
(GInstanceInitFunc) gdk_gc_quartz_init,
|
||||
};
|
||||
|
||||
object_type = g_type_register_static (GDK_TYPE_GC,
|
||||
|
||||
Reference in New Issue
Block a user