X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fcontrollers%2FControlGraphics.C;h=6c13079749ced608abd41be664518a1e3c4139b5;hb=96e9048c24b7ec1b4cbdf9f470fcea8bf900b8d0;hp=1da149a2426229c42f3e21076ef1651ac4b5972f;hpb=0c2a3e5960f032dcd8be726e3e63628207a06dd3;p=lyx.git diff --git a/src/frontends/controllers/ControlGraphics.C b/src/frontends/controllers/ControlGraphics.C index 1da149a242..6c13079749 100644 --- a/src/frontends/controllers/ControlGraphics.C +++ b/src/frontends/controllers/ControlGraphics.C @@ -1,4 +1,3 @@ -// -*- C++ -*- /* This file is part of * ====================================================== * @@ -32,6 +31,7 @@ #include "support/FileInfo.h" // for FileInfo #include "helper_funcs.h" // for browseFile #include "support/filetools.h" // for AddName +#include "BufferView.h" using std::pair; using std::make_pair; @@ -77,9 +77,9 @@ extern string user_lyxdir; string const ControlGraphics::Browse(string const & in_name) { - string const title = N_("Graphics"); + string const title = N_("Graphics|#G#g"); // FIXME: currently we need the second '|' to prevent mis-interpretation - string const pattern = "*.(ps|png)|"; + string const pattern = "*.(eps|png|jpeg|jpg|gif)|"; // Does user clipart directory exist? string clipdir = AddName (user_lyxdir, "clipart"); @@ -87,9 +87,8 @@ string const ControlGraphics::Browse(string const & in_name) if (!(fileInfo.isOK() && fileInfo.isDir())) // No - bail out to system clipart directory clipdir = AddName (system_lyxdir, "clipart"); - pair dir1(N_("Clipart"), clipdir); + pair dir1(N_("Clipart|#C#c"), clipdir); // Show the file browser dialog - return browseFile(&lv_, in_name, title, pattern, dir1, - make_pair(string(), string())); + return browseFile(&lv_, in_name, title, pattern, dir1); }