c - Gtk+ icon missing when running in MS Windows -


I have a C / GTK + application developed on Ubuntu, and I want to compile it so that it runs on MS Windows .

I followed the set up to compiler, and the program was compiled successfully, and it runs on MS Windows.

However, the mark was missing on a search entry.

This is when I am on Ubuntu:

image Enter Details Here

I run programs in MS Windows (or Wine), then I get:

Additionally, the terminal shows the following:

  (main.exe: 8 ): GTK-Alert **: Icon 'Edit-Find-Symbolic' Could Not Get 'Hichcore' Theme Was Not Found, Maybe You He has to be installed. You can get a copy from here: http://icon-theme.freedesktop.org/releases  

Question: Is it necessary to install a mouse that appears in the windows box on the Windows box anything? My application is the goal of being able to run with a USB flash drive without installing anything.

I used the relevant part of the glade file to make the application, if it is useful:

  & lt; Object Class = "GtkSearchEntry" id = "searchentry1" & gt; & Lt; Property Name = "Visible" & gt; True & lt; / Property & gt; & Lt; Property Name = "can_focus" & gt; True & lt; / Property & gt; & Lt; Property Name = "Primi_ICN_Name" & gt; Edit-Find-Symbolic & lt; / Property & gt; & Lt; Property Name = "Primary_con_activable" & gt; False & lt; / Property & gt; & Lt; Property name = "primary_con_sensitive" & gt; Wrong & lt; / Property & gt; & Lt; / Object & gt;  

I have tried so far: Edit the directory in things: main.exe (i.e., with DLS) - find-symbolic.svg; Copy the full directory / usr / share / icons / gnome None of these work.


Update:

I have a subdirectory share in the directory with main.exe , and another subdirectory in it Icon . I have put edit-find-symbolic.svg in this subdirectory. The search icon still looks the same (does not work), but this time the terminal output is different:

  (main.exe: 8): GLIB-GIO-Critical **: g_loadable_icon_load: There is a folder named  edit-find-symbolic.svg  in this folder, but there is a folder named after the  Hitchcock, then error `G_IS_LOADABLE_ICON (icon) 'failed  

is present, the icon still does not work, and at the moment there is no output in the terminal.

This is a late reply, but I had to face this problem, Is solved with:

SVG icons of the default theme (adwaita) need to be copied. A stock directory relative to bin directory bin. / Share / icon / adwaita / scalable / * also bin. / Share / Icon / Advaita / Icon-Theme Cache and bin .. / Share / Icon / Advaita / Index topic

After several tests, it seems that the following files are also required:

  li B / gdk-pixbuf-2.0 / 2.10.0 / loaders / libpixbufloader-svg.dll lib / gdk-pixbuf-2.0 / 2.10.0 / loader / loaders.cache  

The first line of this loaders.cache file also needs to be edited in "../ lib / gdk-pixbuf-2.0 / 2.10.0 / loaders / libpixbufloader-svg.dll"

The file tree looks like this:

  bin / gtkapplication.exe bin / *. Dll share / loader.cache share / glib-2.0 / gschemas.compiled Share / Icon / Adwaita / Scalable / * Share / Icons / Advaita / Icon-Theme Cache Share / Icon / Advaita / Index Left / gdk-piccup-2.0 / 2.10.0 / loader / libpixbufloader-svg.dll lib / gdk-pixbuf-2.0 / 2.10.0 / loader / loaders. Cash  

Example Application:


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -