summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@nuclecu.unam.mx>1997-12-30 03:45:59 +0000
committerArturo Espinosa <unammx@src.gnome.org>1997-12-30 03:45:59 +0000
commitfb51b7a6c586f9e319eae5f99765dbfd70838127 (patch)
tree4bac807bab253d990134cadb1526e8530b03bc28 /gdk
parentb8e57550b7b0c66a576fcb58a21b0e694f7f0206 (diff)
downloadgtk+-fb51b7a6c586f9e319eae5f99765dbfd70838127.tar.gz
New function, used to copy the values from one gc to another gc.
Mon Dec 29 22:05:45 1997 Miguel de Icaza <miguel@nuclecu.unam.mx> * gdk/gdkgc.c (gdk_gc_copy): New function, used to copy the values from one gc to another gc.
Diffstat (limited to 'gdk')
-rw-r--r--gdk/gdk.h2
-rw-r--r--gdk/gdkgc.c10
2 files changed, 12 insertions, 0 deletions
diff --git a/gdk/gdk.h b/gdk/gdk.h
index 67fadaf197..e41800f9cd 100644
--- a/gdk/gdk.h
+++ b/gdk/gdk.h
@@ -333,6 +333,8 @@ void gdk_gc_set_line_attributes (GdkGC *gc,
GdkLineStyle line_style,
GdkCapStyle cap_style,
GdkJoinStyle join_style);
+void gdk_gc_copy (GdkGC *dst_gc,
+ GdkGC *src_gc);
/* Pixmaps
diff --git a/gdk/gdkgc.c b/gdk/gdkgc.c
index 9436136c85..9724eafc20 100644
--- a/gdk/gdkgc.c
+++ b/gdk/gdkgc.c
@@ -644,3 +644,13 @@ gdk_gc_set_line_attributes (GdkGC *gc,
XSetLineAttributes (private->xdisplay, private->xgc, line_width,
xline_style, xcap_style, xjoin_style);
}
+
+void
+gdk_gc_copy (GdkGC *dst_gc, GdkGC *src_gc)
+{
+ GdkGCPrivate *dst_private, *src_private;
+
+ src_private = (GdkGCPrivate *) src_gc;
+ dst_private = (GdkGCPrivate *) dst_gc;
+ XcopyGC (src_private->xdisplay, src_private->xgc, 0xffff, dst_private->xgc);
+}