[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Pan-users] running pan gives many errors

From: Dominique Dumont
Subject: Re: [Pan-users] running pan gives many errors
Date: Wed, 08 May 2024 11:20:42 +0200

On Tuesday, 7 May 2024 07:01:55 CEST Ken Cunningham wrote:
> running pan works, but it does give an uncomfortable number of errors when
> so doing ...
> (pan:10378): Gtk-CRITICAL **: 21:59:37.694: gtk_window_set_default_icon:
> assertion 'GDK_IS_PIXBUF (icon)' failed

The fgtk_window_set_default_icon unction is called by pan in only 2 places:

$ ack gtk_window_set_default_icon pan
1006:        gtk_window_set_default_icon (pixbuf);
1030:      gtk_window_set_default_icon (pixbuf);

In both cases, pixbuf is set with:

      GdkPixbuf* pixbuf = load_icon("icon_pan.png");

load_icon [1] is a function I wrote that look for a Pan icon either in 
./pan/icons or where icons are installed with "cmake install" 
("/usr/local/share/pan/icons/" if cmake prefix was not changed).

If pan is not installed, pan should be run from the root of pan repository. E.g 

$ ./debug-build/pan/gui/pan

When running pan with ./pan (i.e. in gui directory). I get the same symptoms as 

In case of problems, the behavior of load_icon can be checked with --debug 

For instance:

$ ./pan --debug
Unable to load icon icon_pan.png from pan/icons: Failed to open file 
“pan/icons/icon_pan.png”: Not a directory
Unable to load icon icon_pan.png from /usr/local/share/pan/icons: Failed to 
open file “/usr/local/share/pan/icons/icon_pan.png”: No such file or directory

(pan:139028): Gtk-CRITICAL **: 11:14:43.417: gtk_window_set_default_icon: 
assertion 'GDK_IS_PIXBUF (icon)' failed



reply via email to

[Prev in Thread] Current Thread [Next in Thread]