summaryrefslogtreecommitdiff
path: root/gdk/win32/gdkprivate-win32.h
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2000-03-03 23:21:51 +0000
committerTor Lillqvist <tml@src.gnome.org>2000-03-03 23:21:51 +0000
commit5a4e1abbfcb746352f3f3a5ff28fa27cbf0ba4d5 (patch)
treee08b80320431d9dbea0821bd2b3da1bc33d58ea8 /gdk/win32/gdkprivate-win32.h
parent2468916bcc5f263efba28f9991b45d7ae30c556d (diff)
downloadgtk+-5a4e1abbfcb746352f3f3a5ff28fa27cbf0ba4d5.tar.gz
Store just pixel value of background colour.
2000-03-04 Tor Lillqvist <tml@iki.fi> * gdk/win32/gdkprivate-win32.h (struct _GdkWindowWin32Data): Store just pixel value of background colour. * gdk/win32/gdkgc-win32.c (gdk_colormap_color): New function containing code snippet previously duplicated in a couple of places. * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_points): Use gdk_colormap_color. * gdk/win32/gdkevents-win32.c (gdk_event_translate): Generate GDK_SCROLL events for WM_MOUSEWHEEL messages. Don't generate events for autorepeated Shift, Control and Alt keys. Use gdk_colormap_color. * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): If the pointer is inside the window the cursor of which we are setting, call SetCursor immediately. * gdk/win32/makefile.cygwin * gtk/makefile.cygwin: If we don't have the build number stamp file, use zero. * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and gtk_paned_set_gutter_size as empty. * gtk/gtk.def: Remove gtk_paned_set_gutter_size.
Diffstat (limited to 'gdk/win32/gdkprivate-win32.h')
-rw-r--r--gdk/win32/gdkprivate-win32.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdk/win32/gdkprivate-win32.h b/gdk/win32/gdkprivate-win32.h
index c7b6df7691..d4a06fc1a9 100644
--- a/gdk/win32/gdkprivate-win32.h
+++ b/gdk/win32/gdkprivate-win32.h
@@ -196,7 +196,7 @@ struct _GdkWindowWin32Data
/* We draw the background ourselves at WM_ERASEBKGND */
guchar bg_type;
- GdkColor bg_pixel;
+ gulong bg_pixel; /* GdkColor pixel, not COLORREF */
GdkPixmap *bg_pixmap;
HCURSOR xcursor;
@@ -277,6 +277,8 @@ gpointer gdk_xid_table_lookup (HANDLE xid);
GdkGC * _gdk_win32_gc_new (GdkDrawable *drawable,
GdkGCValues *values,
GdkGCValuesMask values_mask);
+COLORREF gdk_colormap_color (GdkColormapPrivateWin32 *colormap_private,
+ gulong pixel);
HDC gdk_gc_predraw (GdkDrawable *drawable,
GdkGCPrivate *gc_private,
GdkGCValuesMask usage);