]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/gtk1/private.h
Declare gtk_icon_size_lookup if it is missing from the GTK+ headers (Bug 1177079)
[wxWidgets.git] / include / wx / gtk1 / private.h
index 9f4cd54c02a2a3a106cbdb9751001887b3fdb81b..c943f3ad2da97c782db64d6ac1e14eeede061027 100644 (file)
@@ -136,5 +136,14 @@ inline wxEventType GtkScrollWinTypeToWx(guint scrollType)
 wxString wxEscapeStringForPangoMarkup(const wxString& str);
 #endif
 
+// The declaration for gtk_icon_size_lookup was accidentally ifdefed out in
+// GTK+ 2.1.0 which Sun seem to have shipped with some versions of JDS
+// for Solaris 9 x86.
+#if NEED_GTK_ICON_SIZE_LOOKUP
+extern "C" gboolean gtk_icon_size_lookup  (GtkIconSize  size,
+                                           gint         *width,
+                                           gint         *height);
+#endif
+
 #endif // _WX_GTK_PRIVATE_H_