Commit fb51b7a6 authored by Miguel de Icaza's avatar Miguel de Icaza Committed by Arturo Espinosa

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.
parent b8e57550
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> Sat Dec 27 20:39:99 1997 Elliot Lee <sopwith@redhat.com>
* gtk/gtkhandlebox.c: It mostly works now, please test it and make * gtk/gtkhandlebox.c: It mostly works now, please test it and make
fixes as needed. fixes as needed.
......
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> Sat Dec 27 20:39:99 1997 Elliot Lee <sopwith@redhat.com>
* gtk/gtkhandlebox.c: It mostly works now, please test it and make * gtk/gtkhandlebox.c: It mostly works now, please test it and make
fixes as needed. fixes as needed.
......
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> Sat Dec 27 20:39:99 1997 Elliot Lee <sopwith@redhat.com>
* gtk/gtkhandlebox.c: It mostly works now, please test it and make * gtk/gtkhandlebox.c: It mostly works now, please test it and make
fixes as needed. fixes as needed.
......
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> Sat Dec 27 20:39:99 1997 Elliot Lee <sopwith@redhat.com>
* gtk/gtkhandlebox.c: It mostly works now, please test it and make * gtk/gtkhandlebox.c: It mostly works now, please test it and make
fixes as needed. fixes as needed.
......
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> Sat Dec 27 20:39:99 1997 Elliot Lee <sopwith@redhat.com>
* gtk/gtkhandlebox.c: It mostly works now, please test it and make * gtk/gtkhandlebox.c: It mostly works now, please test it and make
fixes as needed. fixes as needed.
......
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> Sat Dec 27 20:39:99 1997 Elliot Lee <sopwith@redhat.com>
* gtk/gtkhandlebox.c: It mostly works now, please test it and make * gtk/gtkhandlebox.c: It mostly works now, please test it and make
fixes as needed. fixes as needed.
......
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> Sat Dec 27 20:39:99 1997 Elliot Lee <sopwith@redhat.com>
* gtk/gtkhandlebox.c: It mostly works now, please test it and make * gtk/gtkhandlebox.c: It mostly works now, please test it and make
fixes as needed. fixes as needed.
......
...@@ -333,6 +333,8 @@ void gdk_gc_set_line_attributes (GdkGC *gc, ...@@ -333,6 +333,8 @@ void gdk_gc_set_line_attributes (GdkGC *gc,
GdkLineStyle line_style, GdkLineStyle line_style,
GdkCapStyle cap_style, GdkCapStyle cap_style,
GdkJoinStyle join_style); GdkJoinStyle join_style);
void gdk_gc_copy (GdkGC *dst_gc,
GdkGC *src_gc);
/* Pixmaps /* Pixmaps
......
...@@ -644,3 +644,13 @@ gdk_gc_set_line_attributes (GdkGC *gc, ...@@ -644,3 +644,13 @@ gdk_gc_set_line_attributes (GdkGC *gc,
XSetLineAttributes (private->xdisplay, private->xgc, line_width, XSetLineAttributes (private->xdisplay, private->xgc, line_width,
xline_style, xcap_style, xjoin_style); 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);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment