I have a C/GTK+ application developed on Ubuntu, and I want to cross-compile it so that it runs on MS Windows.
I followed this guide to set up the compiler, and the program was compiled successfully, and it runs on MS Windows.
However, the icons on a Search Entry were missing.
This is what I get when I'm on Ubuntu:
This is what I get when I run the program in MS Windows (or Wine):
In addition, the terminal shows the following:
(main.exe:8): Gtk-WARNING **: Could not find the icon 'edit-find-symbolic'. The 'hicolor' theme
was not found either, perhaps you need to install it.
You can get a copy from:
http://icon-theme.freedesktop.org/releases
Question: Is it possible to have the icons showing up in Windows, without the need to install anything on the Windows box? My application aims at being able to run from a USB flash drive without installing anything.
The relevant part of the Glade file I used to create the application, in case it's useful:
<object class="GtkSearchEntry" id="searchentry1">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="primary_icon_name">edit-find-symbolic</property>
<property name="primary_icon_activatable">False</property>
<property name="primary_icon_sensitive">False</property>
</object>
Things I've tried so far: copying edit-find-symbolic.svg to the directory containing main.exe
(i.e. together with the dlls); copying the whole directory /usr/share/icons/gnome
there. None of these worked.
Update:
In the directory containing main.exe
I added a subdirectory share
, and in it another subdirectory icons
. I placed edit-find-symbolic.svg
in this subdirectory. The search icon still looks the same (doesn't work), but the terminal output this time is different:
(main.exe:8): GLib-GIO-CRITICAL **: g_loadable_icon_load: assertion `G_IS_LOADABLE_ICON (icon)' failed
If edit-find-symbolic.svg
is not present in this folder, but a folder named hicolor
is present, the icon still doesn't work, and this time there isn't any output in the terminal at all.