On Thu, Jun 12, 2014 at 07:47:57AM +0900, Charles Plessy wrote:
> I tried to run the patched program and I see the following error on startup.
> 
>     07:21:04: can't open file 'bitmaps/treeview.xbm' (error 2: Aucun fichier 
> ou dossier de ce type)
>     07:21:04: Failed to load image from file "bitmaps/treeview.xbm".
> 
> The strange thing is that bitmaps/treeview.xbm is not visible in the source
> directory after building.

If I do "apt-get source treeviewx" from unstable, there are no .xbm
files in the resulting source tree at all.  There also aren't any
in the binary package in unstable:

https://packages.debian.org/sid/amd64/treeviewx/filelist

There is an xpm file (x*P*m, not x*B*m).

> Could you have a look if the problem was caused by the switch to
> wxwidgets3.0 ?

What's happening here is that wx3 is actually telling you about a
problem which was already there, but quietly ignored.  Depending on
your desktop, you'll probably see that the tv application doesn't
show a specific icon (e.g. with gnome3 I do when I used alt-tab).

As well as the extension being wrong, the path to the icon is relative
to the current directory.  Patch to fix both of these attached.

Cheers,
    Olly
Description: Fix the extension of the icon
Author: Olly Betts <o...@survex.com>
Last-Update: 2014-06-21

--- a/tv.cpp
+++ b/tv.cpp
@@ -215,7 +215,7 @@
 	frame->SetIcon(wxIcon("app")); // use the name of the icon in the resource file
 #endif
 #if defined(__WXGTK__) || defined(__WXMOTIF__)
-	frame->SetIcon(wxIcon(wxT("bitmaps/treeview.xbm")));
+	frame->SetIcon(wxIcon(wxT("/usr/share/pixmaps/treeviewx.xpm")));
 #endif
 
 #ifdef __WXMAC__

Reply via email to