projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added QueryRawValue() to wxRegKey and test code for it in the sample
[wxWidgets.git]
/
src
/
gtk
/
utilsgtk.cpp
diff --git
a/src/gtk/utilsgtk.cpp
b/src/gtk/utilsgtk.cpp
index 513c3674e6dd3e796f895009372a0a38f318c878..6d27531b26a7687c5d4c2bc5f67e937d20127eee 100644
(file)
--- a/
src/gtk/utilsgtk.cpp
+++ b/
src/gtk/utilsgtk.cpp
@@
-26,7
+26,9
@@
#include "glib.h"
#include "gdk/gdk.h"
#include "gtk/gtk.h"
#include "glib.h"
#include "gdk/gdk.h"
#include "gtk/gtk.h"
+#ifndef __WXGTK20__
#include "gtk/gtkfeatures.h"
#include "gtk/gtkfeatures.h"
+#endif
#include "gdk/gdkx.h"
#ifdef HAVE_X11_XKBLIB_H
#include "gdk/gdkx.h"
#ifdef HAVE_X11_XKBLIB_H
@@
-77,7
+79,7
@@
bool wxSetDetectableAutoRepeat( bool WXUNUSED(flag) )
void *wxGetDisplay()
{
void *wxGetDisplay()
{
- return
gdk_display
;
+ return
GDK_DISPLAY()
;
}
void wxDisplaySize( int *width, int *height )
}
void wxDisplaySize( int *width, int *height )
@@
-86,6
+88,12
@@
void wxDisplaySize( int *width, int *height )
if (height) *height = gdk_screen_height();
}
if (height) *height = gdk_screen_height();
}
+void wxDisplaySizeMM( int *width, int *height )
+{
+ if (width) *width = gdk_screen_width_mm();
+ if (height) *height = gdk_screen_height_mm();
+}
+
void wxGetMousePosition( int* x, int* y )
{
gdk_window_get_pointer( (GdkWindow*) NULL, x, y, (GdkModifierType*) NULL );
void wxGetMousePosition( int* x, int* y )
{
gdk_window_get_pointer( (GdkWindow*) NULL, x, y, (GdkModifierType*) NULL );
@@
-109,6
+117,12
@@
int wxGetOsVersion(int *majorVsn, int *minorVsn)
return wxGTK;
}
return wxGTK;
}
+wxWindow* wxFindWindowAtPoint(const wxPoint& pt)
+{
+ return wxGenericFindWindowAtPoint(pt);
+}
+
+
// ----------------------------------------------------------------------------
// subprocess routines
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// subprocess routines
// ----------------------------------------------------------------------------