]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/toplevel.cpp
Allow style spec strings to contain colour names as well as hex values
[wxWidgets.git] / src / gtk1 / toplevel.cpp
index 96e0da6119f614273e41d30326fa4946c6bffdc4..6aec1647c8bc679f1db67b85051ded5faf6e141b 100644 (file)
@@ -1067,4 +1067,18 @@ bool wxTopLevelWindowGTK::SetShape(const wxRegion& region)
     return do_shape_combine_region(window, region);
 }
 
-// vi:sts=4:sw=4:et
+bool wxTopLevelWindowGTK::IsActive()
+{
+#ifdef __WXGTK20__
+    // Order the conditions like this so we don't
+    // have to decide how to include version for GTK+ 1 versus 2
+#if GTK_CHECK_VERSION(2,2,0)
+    return GTK_WINDOW( m_widget )->has_toplevel_focus;
+#else
+    return wxTopLevelWindowBase::IsActive();
+#endif
+#else
+    return wxTopLevelWindowBase::IsActive();
+#endif
+}
+