gtk2/gdk
Michael Natterer 2f50232a42 Implement lots of value setters for GdkGC, based on a heavily modified
2006-09-21  Michael Natterer  <mitch@imendio.com>

       Implement lots of value setters for GdkGC, based on a heavily
       modified patch from Thomas Broyer (bug #328853):

	* gdk/quartz/gdkcolor-quartz.c: removed functions which set colors
	on the CGContext. Instead, added gdk_quartz_get_rgba_from_pixel()
	which simply returns RGBA values from a GdkColor's pixel value.
	See gdk_quartz_update_context_from_gc() below.

	* gdk/quartz/gdkprivate-quartz.h (struct GdkGCQuartz): added lots
	of members for the newly suppored GC values. Added enum
	GdkQuartzContextValuesMask which is used for setting up the
	CGContext for filling and/or stroking.

	* gdk/quartz/gdkgc-quartz.c (gdk_quartz_gc_get_values)
	(gdk_quartz_gc_set_values)
	(_gdk_windowing_gc_copy): support a lot more GC values.

	(gdk_quartz_update_context_from_gc): added
	GdkQuartzContextValuesMask parameter and set filling/stroking
	parameters accordingly. This function also gained full control
	over the FG and BG colors (they can't be set separately any more).

	The stipple mask part of the patch doesn't work but seems to take
	the right approach and doesn't make things worse, so I applied it.

	Did *not* apply the clipping part of the patch since I don't
	understand it (I don't understand the version in CVS either, but
	it at least works :-)

	* gdk/quartz/gdkdrawable-quartz.c: pass the right masks to
	gdk_quartz_update_context_from_gc() and removed separate color
	setting calls. Some minor fixes.

	* gdk/quartz/gdkwindow-quartz.c
	(gdk_window_impl_quartz_begin_paint_region): set the CGContext's
	fill color manually. We don't have/need a GC here.
2006-09-21 17:05:33 +00:00
..
directfb gdk/directfb/gdkcolor-directfb.c small clean ups include order 2006-09-14 02:56:01 +00:00
linux-fb If major.minor of required and available glib versions are the same, add 2006-01-29 04:00:45 +00:00
quartz Implement lots of value setters for GdkGC, based on a heavily modified 2006-09-21 17:05:33 +00:00
win32 gdk/win32/gdkprivate-win32.h gdk/win32/gdkmain-win32.c Define WINVER and 2006-09-10 17:33:29 +00:00
x11 just check the first shift-level of keyboard layout for RTL and LTR 2006-09-20 17:47:28 +00:00
.cvsignore Shut up CVS 2005-03-16 04:36:05 +00:00
abicheck.sh Commit a patch by Behdad to fix typos, omissions and other errors in the 2006-09-10 06:39:16 +00:00
COPYING
gdk.c Handle display_name being NULL. (#354004, Chris Wilson) 2006-09-03 05:26:45 +00:00
gdk.h Cleanup. (#169648, Fabricio Barros Cabral) 2005-06-12 05:32:25 +00:00
gdk.symbols Bug 355343. Add a GdkPangoAttrEmbossColor. 2006-09-19 16:37:41 +00:00
gdkcairo.c Bug #330022 Wrong pixel values are computed when color = 0xFF and alpha = 2006-02-05 20:34:43 +00:00
gdkcairo.h Add gdk_cairo_set_source_pixmap. (#318805, Alexander Larsson) 2005-12-30 07:16:35 +00:00
gdkcolor.c Use g_slice instead of mem chunks. 2005-12-05 20:51:18 +00:00
gdkcolor.h gdk_color_parse returns boolean, not int. (#342569, Masatake Yamato) 2006-05-22 12:58:00 +00:00
gdkconfig.h.win32 Massive changes. Too many to list here, but I'll try a summary: 2002-02-17 00:25:05 +00:00
gdkcursor.c Intern type names before registering the type to avoid unnecessary copies. 2005-08-31 15:14:26 +00:00
gdkcursor.h Add Copyright/License information. 2005-07-12 05:09:13 +00:00
gdkdisplay.c Remove extraneous ; 2006-05-14 03:58:06 +00:00
gdkdisplay.h Support input shapes: (#331070) 2006-02-20 01:36:50 +00:00
gdkdisplaymanager.c Remove extraneous ; 2006-05-14 03:58:06 +00:00
gdkdisplaymanager.h Renames: 2002-06-20 23:59:27 +00:00
gdkdnd.c Make PLT-reduction work with gcc4, and don't include everything in 2005-03-16 03:17:27 +00:00
gdkdnd.h Add Copyright/License information. 2005-07-12 05:09:13 +00:00
gdkdraw.c Remove extraneous ; 2006-05-14 03:58:06 +00:00
gdkdrawable.h Add Copyright/License information. 2005-07-12 05:09:13 +00:00
gdkevents.c fix missing hash table initialization. 2005-12-06 10:40:09 +00:00
gdkevents.h Make it possible to determine if a key event is for a modifier key: 2005-09-09 22:50:15 +00:00
gdkfont.c Intern type names before registering the type to avoid unnecessary copies. 2005-08-31 15:14:26 +00:00
gdkfont.h Add Copyright/License information. 2005-07-12 05:09:13 +00:00
gdkgc.c Remove extraneous ; 2006-05-14 03:58:06 +00:00
gdkgc.h Add Copyright/License information. 2005-07-12 05:09:13 +00:00
gdkglobals.c Commit a patch by Behdad to fix typos, omissions and other errors in the 2006-09-10 06:39:16 +00:00
gdki18n.h Deprecate GtkPreviewType, GtkSignalRunType, GtkSideType, 2002-01-30 02:01:10 +00:00
gdkimage.c connect to the display's "closed" signal and free the cached scratch 2006-01-12 13:50:51 +00:00
gdkimage.h Add Copyright/License information. 2005-07-12 05:09:13 +00:00
gdkinput.h Add Copyright/License information. 2005-07-12 05:09:13 +00:00
gdkinternals.h Rollback the following changes, to fix it the proper way in Pango: 2006-05-22 17:08:13 +00:00
gdkintl.h Make the GdkScreen font options api public, and add properties 2005-08-26 18:49:52 +00:00
gdkkeynames.c gdk_key is a typedef, not a struct tag. 2005-03-17 12:05:16 +00:00
gdkkeys.c Remove extraneous ; 2006-05-14 03:58:06 +00:00
gdkkeys.h Cleanup. (#169648, Fabricio Barros Cabral) 2005-06-12 05:32:25 +00:00
gdkkeysyms-update.pl Regenerated from Xorg 7.1 keysyms.h, using gdkkeysyms-update.pl. 2006-05-11 17:15:40 +00:00
gdkkeysyms.h Regenerated from Xorg 7.1 keysyms.h, using gdkkeysyms-update.pl. 2006-05-11 17:15:40 +00:00
gdkkeyuni.c Add Copyright/License information. 2005-07-12 05:09:13 +00:00
gdkmarshalers.list New demo for window migration between different displays and screens. 2002-08-01 23:43:13 +00:00
gdkpango.c Bug 355343. Add a GdkPangoAttrEmbossColor. 2006-09-19 16:37:41 +00:00
gdkpango.h Bug 355343. Add a GdkPangoAttrEmbossColor. 2006-09-19 16:37:41 +00:00
gdkpixbuf-drawable.c New function to avoid pointless strdups when creating atoms from static 2005-09-11 05:39:45 +00:00
gdkpixbuf-render.c Another doc update 2005-12-20 05:35:15 +00:00
gdkpixbuf.h Add Copyright/License information. 2005-07-12 05:09:13 +00:00
gdkpixmap.c Don't use G_DEFINE_TYPE, since the instance struct name does not match the 2006-05-31 03:34:04 +00:00
gdkpixmap.h New function to allow wrapping a native pixmap without a server roundtrip. 2006-03-30 04:08:51 +00:00
gdkpoly-generic.h
gdkpolyreg-generic.c Inline docs, use g_assert(), avoid extra allocation for rectangular 2005-12-24 07:29:00 +00:00
gdkprivate.h Make gdkx.h the only installed header from gdk/x11. All structures in 2001-09-07 21:50:20 +00:00
gdkproperty.h New function to avoid pointless strdups when creating atoms from static 2005-09-11 05:39:45 +00:00
gdkrectangle.c Note in docs that @dest can be the same as @src1 or @src2. (#343233, 2006-05-28 20:24:43 +00:00
gdkregion-generic.c Documentation fixes. 2006-04-24 18:23:55 +00:00
gdkregion-generic.h Inline docs, use g_assert(), avoid extra allocation for rectangular 2005-12-24 07:29:00 +00:00
gdkregion.h Inline docs, use g_assert(), avoid extra allocation for rectangular 2005-12-24 07:29:00 +00:00
gdkrgb.c Small savings 2006-04-04 04:14:17 +00:00
gdkrgb.h Cleanup. (#169648, Fabricio Barros Cabral) 2005-06-12 05:32:25 +00:00
gdkscreen.c Rollback the following changes, to fix it the proper way in Pango: 2006-05-22 17:08:13 +00:00
gdkscreen.h Create 'composited' label. 2006-04-25 14:27:32 +00:00
gdkselection.c Add Copyright/License information. 2005-07-12 05:09:13 +00:00
gdkselection.h Add Copyright/License information. 2005-07-12 05:09:13 +00:00
gdkspawn.h Utility functions for multi-screen applications which need to ensure 2003-12-10 13:49:58 +00:00
gdktypes.h Don't use GDK_ALT_MASK. 2005-09-06 19:25:47 +00:00
gdkvisual.c Make PLT-reduction work with gcc4, and don't include everything in 2005-03-16 03:17:27 +00:00
gdkvisual.h Add Copyright/License information. 2005-07-12 05:09:13 +00:00
gdkwindow.c Add some more detail to the docs. (#311399, Nikos Kouremenos) 2006-07-17 04:19:59 +00:00
gdkwindow.h Add a function to beep on a window. For X11, implement this with XkbBell. 2006-08-30 03:30:43 +00:00
gen-keyname-table.pl Generate N_() calls for translatable key names. 2005-06-10 06:41:04 +00:00
keyname-table.h Generate N_() calls for translatable key names. 2005-06-10 06:41:04 +00:00
keynames.txt Generate N_() calls for translatable key names. 2005-06-10 06:41:04 +00:00
makeenums.pl Add GdkEventSetting event for notification of changes to system settings, 2001-04-02 23:33:47 +00:00
Makefile.am Commit a patch by Behdad to fix typos, omissions and other errors in the 2006-09-10 06:39:16 +00:00
makefile.msc also recurse into win32 for ::clean create gtkbuiltincache.h (most code to 2006-01-05 23:55:08 +00:00
makegdkalias.pl Make PLT-reduction work with gcc4, and don't include everything in 2005-03-16 03:17:27 +00:00
pltcheck.sh Commit a patch by Behdad to fix typos, omissions and other errors in the 2006-09-10 06:39:16 +00:00
testgdk.c Fixes #136082 and #135265, patch by Morten Welinder. 2004-03-06 03:38:59 +00:00