diff options
author | Tor Lillqvist <tml@iki.fi> | 2002-12-17 01:39:11 +0000 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2002-12-17 01:39:11 +0000 |
commit | 7ed6dc1da84e8716463e819144aa9a4649f36568 (patch) | |
tree | dea6b9a03445500233ec7cbbedc0ae2e8c4b164d /gdk | |
parent | 47de18549afe6e91fd56fabf6176e12a63722cb4 (diff) | |
download | gtk+-7ed6dc1da84e8716463e819144aa9a4649f36568.tar.gz |
Minor cosmetics.
2002-12-17 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkglobals-win32.c: Minor cosmetics.
Implement two missing functions (#101369)
* gdk/win32/gdkevents-win32.c
(gdk_display_add_client_message_filter): Implement by calling
gdk_add_client_message_filter(), no separate displays on Windows,
at least not yet.
* gdk/win32/gdkgc-win32.c (gdk_gc_get_screen): Implement by
returning the only screen so far, _gdk_screen.
Diffstat (limited to 'gdk')
-rw-r--r-- | gdk/win32/gdkevents-win32.c | 10 | ||||
-rw-r--r-- | gdk/win32/gdkgc-win32.c | 8 | ||||
-rw-r--r-- | gdk/win32/gdkglobals-win32.c | 6 |
3 files changed, 21 insertions, 3 deletions
diff --git a/gdk/win32/gdkevents-win32.c b/gdk/win32/gdkevents-win32.c index 7ae4739ff2..ca1ce112d5 100644 --- a/gdk/win32/gdkevents-win32.c +++ b/gdk/win32/gdkevents-win32.c @@ -776,6 +776,16 @@ gdk_event_apply_filters (MSG *msg, } void +gdk_display_add_client_message_filter (GdkDisplay *display, + GdkAtom message_type, + GdkFilterFunc func, + gpointer data) +{ + /* XXX */ + gdk_add_client_message_filter (message_type, func, data); +} + +void gdk_add_client_message_filter (GdkAtom message_type, GdkFilterFunc func, gpointer data) diff --git a/gdk/win32/gdkgc-win32.c b/gdk/win32/gdkgc-win32.c index 70c1ad2dae..66b90dfb4f 100644 --- a/gdk/win32/gdkgc-win32.c +++ b/gdk/win32/gdkgc-win32.c @@ -730,6 +730,14 @@ gdk_gc_copy (GdkGC *dst_gc, sizeof (DWORD) * src_win32_gc->pen_num_dashes); } +GdkScreen * +gdk_gc_get_screen (GdkGC *gc) +{ + g_return_val_if_fail (GDK_IS_GC_WIN32 (gc), NULL); + + return _gdk_screen; +} + static guint bitmask[9] = { 0, 1, 3, 7, 15, 31, 63, 127, 255 }; COLORREF diff --git a/gdk/win32/gdkglobals-win32.c b/gdk/win32/gdkglobals-win32.c index fb005e2786..7d3cd7855f 100644 --- a/gdk/win32/gdkglobals-win32.c +++ b/gdk/win32/gdkglobals-win32.c @@ -28,9 +28,9 @@ #include "gdktypes.h" #include "gdkprivate-win32.h" -GdkDisplay *_gdk_display = NULL; -GdkScreen *_gdk_screen = NULL; -GdkWindow *_gdk_parent_root = NULL; +GdkDisplay *_gdk_display = NULL; +GdkScreen *_gdk_screen = NULL; +GdkWindow *_gdk_parent_root = NULL; HWND _gdk_root_window = NULL; HDC _gdk_display_hdc; |