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.
This commit is contained in:
Miguel de Icaza 1997-12-30 03:45:59 +00:00 committed by Arturo Espinosa
parent b8e57550b7
commit fb51b7a6c5
9 changed files with 47 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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.
Sat Dec 27 20:39:99 1997 Elliot Lee <sopwith@redhat.com>
* gtk/gtkhandlebox.c: It mostly works now, please test it and make
fixes as needed.

View File

@ -1,3 +1,8 @@
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.
Sat Dec 27 20:39:99 1997 Elliot Lee <sopwith@redhat.com>
* gtk/gtkhandlebox.c: It mostly works now, please test it and make
fixes as needed.

View File

@ -1,3 +1,8 @@
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.
Sat Dec 27 20:39:99 1997 Elliot Lee <sopwith@redhat.com>
* gtk/gtkhandlebox.c: It mostly works now, please test it and make
fixes as needed.

View File

@ -1,3 +1,8 @@
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.
Sat Dec 27 20:39:99 1997 Elliot Lee <sopwith@redhat.com>
* gtk/gtkhandlebox.c: It mostly works now, please test it and make
fixes as needed.

View File

@ -1,3 +1,8 @@
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.
Sat Dec 27 20:39:99 1997 Elliot Lee <sopwith@redhat.com>
* gtk/gtkhandlebox.c: It mostly works now, please test it and make
fixes as needed.

View File

@ -1,3 +1,8 @@
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.
Sat Dec 27 20:39:99 1997 Elliot Lee <sopwith@redhat.com>
* gtk/gtkhandlebox.c: It mostly works now, please test it and make
fixes as needed.

View File

@ -1,3 +1,8 @@
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.
Sat Dec 27 20:39:99 1997 Elliot Lee <sopwith@redhat.com>
* gtk/gtkhandlebox.c: It mostly works now, please test it and make
fixes as needed.

View File

@ -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

View File

@ -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);
}