summaryrefslogtreecommitdiff
path: root/gdk/gdkgc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdk/gdkgc.c')
-rw-r--r--gdk/gdkgc.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/gdk/gdkgc.c b/gdk/gdkgc.c
index 8ffce9e478..932a9606c1 100644
--- a/gdk/gdkgc.c
+++ b/gdk/gdkgc.c
@@ -88,6 +88,18 @@ gdk_gc_new_with_values (GdkWindow *window,
case GDK_XOR:
xvalues.function = GXxor;
break;
+ case GDK_OR:
+ xvalues.function = GXor;
+ break;
+ case GDK_AND:
+ xvalues.function = GXand;
+ break;
+ case GDK_NOR:
+ xvalues.function = GXnor;
+ break;
+ case GDK_NAND:
+ xvalues.function = GXnand;
+ break;
}
xvalues_mask |= GCFunction;
}
@@ -703,6 +715,22 @@ gdk_gc_set_line_attributes (GdkGC *gc,
}
void
+gdk_gc_set_dashes (GdkGC *gc,
+ gint dash_offset,
+ gchar dash_list[],
+ gint n)
+{
+ GdkGCPrivate *private;
+
+ g_return_if_fail (gc != NULL);
+ g_return_if_fail (dash_list != NULL);
+
+ private = (GdkGCPrivate*) gc;
+
+ XSetDashes (private->xdisplay, private->xgc, dash_offset, dash_list, n);
+}
+
+void
gdk_gc_copy (GdkGC *dst_gc, GdkGC *src_gc)
{
GdkGCPrivate *dst_private, *src_private;