summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
authorStefan Jeske <stefan@src.gnome.org>1998-05-05 15:00:12 +0000
committerStefan Jeske <stefan@src.gnome.org>1998-05-05 15:00:12 +0000
commitc3e04d86ec5a4cd6eb6f62e89e63381f9a70d1fc (patch)
treeaa3372b3013e0373f49853e2f140b62c4450be75 /gdk
parent7d8df9e60aa2ec2cb01e8809dae7013f0475b1a2 (diff)
downloadgdk-pixbuf-c3e04d86ec5a4cd6eb6f62e89e63381f9a70d1fc.tar.gz
New function to wrap XSetDashes; modified gtkctree.c to use it.
* gdk/gdkgc.c gdk/gdk.h gtk/gtkctree.c (gdk_gc_set_dashes): New function to wrap XSetDashes; modified gtkctree.c to use it.
Diffstat (limited to 'gdk')
-rw-r--r--gdk/gdk.h4
-rw-r--r--gdk/gdkgc.c16
2 files changed, 20 insertions, 0 deletions
diff --git a/gdk/gdk.h b/gdk/gdk.h
index 6d453c069..9be074e39 100644
--- a/gdk/gdk.h
+++ b/gdk/gdk.h
@@ -360,6 +360,10 @@ void gdk_gc_set_line_attributes (GdkGC *gc,
GdkLineStyle line_style,
GdkCapStyle cap_style,
GdkJoinStyle join_style);
+void gdk_gc_set_dashes (GdkGC *gc,
+ gint dash_offset,
+ gchar dash_list[],
+ gint n);
void gdk_gc_copy (GdkGC *dst_gc,
GdkGC *src_gc);
diff --git a/gdk/gdkgc.c b/gdk/gdkgc.c
index 8ffce9e47..e405c0eaf 100644
--- a/gdk/gdkgc.c
+++ b/gdk/gdkgc.c
@@ -703,6 +703,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;