|
46 | 46 | namespace |
47 | 47 | { |
48 | 48 |
|
49 | | -#if defined(__WXGTK20__) && !defined(__WXGTK3__) |
50 | | -// translates poedit item id or Tango stock item id to "legacy" GNOME id: |
51 | | -wxString GetGnomeStockId(const wxString& id) |
52 | | -{ |
53 | | - #define MAP(poedit, gnome) if ( id == _T(poedit) ) return _T(gnome) |
54 | | - |
55 | | - MAP("document-open", "gtk-open"); |
56 | | - MAP("document-save", "gtk-save"); |
57 | | - MAP("window-close", "gtk-close"); |
58 | | - |
59 | | - MAP("folder-open@symbolic", "gtk-jump-to"); |
60 | | - MAP("list-add@symbolic", "list-add"); |
61 | | - MAP("list-remove@symbolic", "list-remove"); |
62 | | - |
63 | | - #undef MAP |
64 | | - |
65 | | - return wxEmptyString; // no match found |
66 | | -} |
67 | | -#endif // __WXGTK20__ |
68 | | - |
69 | 49 | // Check if a given icon needs mirroring in right-to-left locales: |
70 | 50 | bool ShouldBeMirorredInRTL(const wxArtID& id, const wxArtClient& client) |
71 | 51 | { |
@@ -180,18 +160,6 @@ wxBitmap PoeditArtProvider::CreateBitmap(const wxArtID& id_, |
180 | 160 | // theme provider (that uses current icon theme and files from |
181 | 161 | // /usr/share/icons/<theme>) didn't find any matching icon. |
182 | 162 |
|
183 | | -#if defined(__WXGTK20__) && !defined(__WXGTK3__) |
184 | | - // try legacy GNOME icons from standard theme: |
185 | | - wxString gnomeId = GetGnomeStockId(id); |
186 | | - if ( !gnomeId.empty() ) |
187 | | - { |
188 | | - wxLogTrace("poedit.icons", "-> legacy '%s'", gnomeId.c_str()); |
189 | | - wxBitmap gbmp(wxArtProvider::GetBitmap(gnomeId, client, size)); |
190 | | - if ( gbmp.Ok() ) |
191 | | - return gbmp; |
192 | | - } |
193 | | -#endif // defined(__WXGTK20__) && !defined(__WXGTK3__) |
194 | | - |
195 | 163 | #ifdef __WXGTK3__ |
196 | 164 | CHECK_FOR_VARIANT(symbolic); |
197 | 165 | if (symbolicVariant) |
|
0 commit comments