Re: Fw: new release

Frédéric <[email protected]> Sat, 14 Oct 2006 21:29:01 +0200
Newsgroups gmane.comp.gnome.apps.gqview.devel
Organization Home
Message-ID <[email protected]>
On Saturday 14 October 2006 10:58, John Ellis wrote:

> > 4) I would like to have more than 10 external editors, even if only
> > the firsts have shortcuts (Ctrl+<num> )...
>
> Change the #define in gqview.h:
>
> #define GQVIEW_EDITOR_SLOTS 10
>
> and recompile, it should work as you request.

It doesn't :o( I get a segmentation fault. It fails in 
editor_reset_defaults() (from file editors.c), line 81:

    editor_name[i] = g_strdup(_(editor_slot_defaults[i * 2]));

when 'i' reach 11... The problem comes from editor_slot_defaults struct, 
which needs to be initialized with enought slots:

static gchar *editor_slot_defaults[] = {
    N_("The Gimp"), "gimp-remote -n %f",
    N_("XV"), "xv %f",
    N_("Xpaint"), "xpaint %f",
    NULL, NULL,
    NULL, NULL,
    NULL, NULL,
    NULL, NULL,
    NULL, NULL,
    N_("Rotate jpeg clockwise"), "%vif jpegtran -rotate 90 -copy 
        all -outfile %p_tmp %p; then mv %p_tmp %p;else rm %p_tmp;fi",
    N_("Rotate jpeg counterclockwise"), "%vif jpegtran -rotate 270 -copy 
        all -outfile %p_tmp %p; then mv %p_tmp %p;else rm %p_tmp;fi",
    NULL, NULL
};

I added some NULL, NULL, and it does not crash anymore.

But if all entries appears in the preference dialog, and in the context 
popup menu, I don't see them under the Edit menu. Where is this menu 
defined?

-- 
   Frédéric

   http://www.gbiloba.org

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Gqview-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gqview-devel
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQBFMTp/YSjuFMxF2CgRAgPkAJwK8lTUVLTTwL+FZ3hpq72SG+CsWQCgy1be
G49O+qnAYLlVufSEM3+eC1c=
=yJU1
-----END PGP SIGNATURE-----