default web browser [was Re: program for file print preview]



On Mon, 22 Dec 2008, Jean Bréfort wrote:
The code calling evince is in gtk+, not gnumeric:

settings = gtk_settings_get_for_screen (screen); 
g_object_get (settings, "gtk-print-preview-command", &preview_cmd, NULL);

This returns the value of GTK_PRINT_PREVIEW_COMMAND which is defined in gtk/Makefile.am

If you want to change that, you need to change the settings for the
default screen, apparently (I do not know how this is feasible). Note
that given the way things work, the program called for the preview is
responsible for deletint the temporary pdf and the print settings file,
see
http://library.gnome.org/devel/gtk/stable/GtkSettings.html#GtkSettings--gtk-print-preview-command for more 
information.

Thanks Jean, this solved my preview problem.

I still have another problem is that gnumeric always use firefox as
web browser, eg. click the help / gnumeric on the web.  I have have
firefox installed, but I would like to use w3m as web browser. I
already export $BROWSER in ~/.profile
export BROWSER="/usr/bin/x-terminal-emulator -e /usr/bin/www-browser"
and www-browser is configured to link to /usr/bin/w3m. However
gnumeric seems ignore BROWSER envirnoment variable. So what should I
do?

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩042 李白  子夜四時歌  冬歌
    明朝驛使發  一夜絮征袍  素手抽鍼冷  那堪把剪刀  裁縫寄遠道  幾日到臨洮



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