(blind) GTK1 compilation fix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32622 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2005-03-05 23:36:07 +00:00
parent 9802983f15
commit f6d43eda3e

View File

@@ -215,7 +215,7 @@ wxArtProviderCache *wxArtProvider::sm_cache = NULL;
return icon; return icon;
} }
#ifdef __WXGTK__ #if defined(__WXGTK20__) && !defined(__WXUNIVERSAL__)
#include <gtk/gtk.h> #include <gtk/gtk.h>
extern GtkIconSize wxArtClientToIconSize(const wxArtClient& client); extern GtkIconSize wxArtClientToIconSize(const wxArtClient& client);
#endif // __WXGTK__ #endif // __WXGTK__
@@ -232,12 +232,12 @@ wxArtProviderCache *wxArtProvider::sm_cache = NULL;
// else return platform dependent size // else return platform dependent size
} }
#ifdef __WXGTK__ #if defined(__WXGTK20__) && !defined(__WXUNIVERSAL__)
GtkIconSize gtk_size = wxArtClientToIconSize(client); GtkIconSize gtk_size = wxArtClientToIconSize(client);
gint width, height; gint width, height;
gtk_icon_size_lookup( gtk_size, &width, &height); gtk_icon_size_lookup( gtk_size, &width, &height);
return wxSize(width, height); return wxSize(width, height);
#else #else // !GTK+ 2
if (client == wxART_TOOLBAR) if (client == wxART_TOOLBAR)
return wxSize(32, 32); return wxSize(32, 32);
else if (client == wxART_MENU) else if (client == wxART_MENU)
@@ -248,7 +248,7 @@ wxArtProviderCache *wxArtProvider::sm_cache = NULL;
return wxSize(16, 15); return wxSize(16, 15);
else else
return wxSize(16, 15); // this is arbitrary return wxSize(16, 15); // this is arbitrary
#endif #endif // GTK+ 2/else
} }