Hi all,
first message on this list (following a first chat on jabber, lots of "first" today). I found a "bug" using inkscape 0.39 at the command line under mac (sorry but I can't spend all the necessary time to recompile CVS on my mac and I don't think this was mentionned before, so this wasn't fixed either probably). Anyway I wanted to export some file.svg to file.png:
inkscape -d 72 -b white -e file.png file.svg
as long as file.png does not exists, everything is fine. when file.png exists i receive a long list of errors starting like this:
(process:12102): Gtk-WARNING **: Screen for GtkWindow not set; you must always set a screen for a GtkWindow before using the window
(process:12102): Gtk-CRITICAL **: file gtkiconfactory.c: line 1224 (gtk_icon_size_lookup_for_settings): assertion `GTK_IS_SETTINGS (settings)' failed
(process:12102): Gtk-WARNING **: gtkstyle.c:2037: invalid icon size '4'
(process:12102): Gtk-CRITICAL **: file gtkstyle.c: line 1903 (gtk_style_render_icon): assertion `pixbuf != NULL' failed
(process:12102): Gtk-WARNING **: Theme engine failed to render icon
(process:12102): Gdk-CRITICAL **: file gdkpango-x11.c: line 53 (gdk_pango_context_get_for_screen): assertion `GDK_IS_SCREEN (screen)' failed [....long list of the same type of errors...]
I imagine it is because inkscape tries to open a GTK windows asking me if I want to overwrite the existing file.png. a GTK window can't be opened because I launch this from the Terminal.app (and X11 is possibly not even started). But the point is that: -even if I run this command line on an xterm inside X11, I get the same errors -even if I add the "-z" option to the command line, I get the same errors If I try to export the same file from inside inkscape i got the correct dialog and I can export my file and overwrite the existing one without problems.
So I think that on system where GTK is not "native" (I think it's a bad word but maybe you can understand what I mean) GTK popup windows like this can't be opened. Therefore, I think that, to make this command line tool more robust, it might be remplaced by a text sent to the standard output (terminal) asking if the user wants to overwrite the file or not. at least when the -z option is explicitely mentionned.
thanks in advance for any help with this. ask me for precisions if yo need to.
JiHO --- Windows, c'est un peu comme le beaujolais nouveau : a chaque nouvelle cuvee on sait que ce sera degueulasse, mais on en prend quand meme par masochisme. --- http://jo.irisson.free.fr/