]> git.saurik.com Git - wxWidgets.git/blobdiff - src/x11/utils.cpp
Don't add margins for buttons with text and images by default in wxMSW.
[wxWidgets.git] / src / x11 / utils.cpp
index 0aa849ea29cc8f8e11ff0326d8149614577a9e74..fa01d86848c3d62a82e81807a3dd628e09657621 100644 (file)
@@ -377,7 +377,7 @@ wxString wxGetXEventName(XEvent& event)
     return str;
 #else
     int type = event.xany.type;
-    static char* event_name[] = {
+    static const char* event_name[] = {
         "", "unknown(-)",                                         // 0-1
         "KeyPress", "KeyRelease", "ButtonPress", "ButtonRelease", // 2-5
         "MotionNotify", "EnterNotify", "LeaveNotify", "FocusIn",  // 6-9
@@ -395,10 +395,3 @@ wxString wxGetXEventName(XEvent& event)
 #endif
 }
 
-bool wxWindowIsVisible(Window win)
-{
-    XWindowAttributes wa;
-    XGetWindowAttributes(wxGlobalDisplay(), win, &wa);
-
-    return (wa.map_state == IsViewable);
-}