]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/artgtk.cpp
Fix wxUSE_IFILEDIALOG definition in wxUSE_DYNLIB_CLASS==0 case.
[wxWidgets.git] / src / gtk / artgtk.cpp
index 17cc916e18ea8f80bcd37b6866cdd7454c320dc8..533eab7619b48397da450e7ec4524402016da4ea 100644 (file)
@@ -327,32 +327,25 @@ wxGTK2ArtProvider::CreateIconBundle(const wxArtID& id,
     }
 
     // otherwise try icon themes
-#ifdef __WXGTK26__
-#ifndef __WXGTK3__
-    if ( !gtk_check_version(2,6,0) )
-#endif
-    {
-        gint *sizes = gtk_icon_theme_get_icon_sizes
-                      (
-                          gtk_icon_theme_get_default(),
-                          stockid.utf8_str()
-                      );
-        if ( !sizes )
-            return bundle;
-
-        gint *last = sizes;
-        while ( *last )
-            last++;
+    gint *sizes = gtk_icon_theme_get_icon_sizes
+                  (
+                      gtk_icon_theme_get_default(),
+                      stockid.utf8_str()
+                  );
+    if ( !sizes )
+        return bundle;
 
-        bundle = DoCreateIconBundle
-                              (
-                                  stockid.utf8_str(),
-                                  sizes, last,
-                                  &CreateThemeIcon
-                              );
-        g_free(sizes);
-    }
-#endif // __WXGTK26__
+    gint *last = sizes;
+    while ( *last )
+        last++;
+
+    bundle = DoCreateIconBundle
+                          (
+                              stockid.utf8_str(),
+                              sizes, last,
+                              &CreateThemeIcon
+                          );
+    g_free(sizes);
 
     return bundle;
 }