summaryrefslogtreecommitdiffstats
path: root/src/inkscape-application.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-09-18Process actions after new file created when Inkscape is opened.Tavmjong Bah1-0/+3
Partial fix for https://gitlab.com/inkscape/inkscape/issues/398
2019-08-14fix "File > Quit" heap-use-after-freeThomas Holder1-1/+1
`it->second` may be invalid after `destroy_window`
2019-07-17Avoid code duplication in ConcreteInkscapeApplication<T>::on_open()Patrick Storz1-47/+31
2019-07-11CLI: Warn if --export-file is used with multiple input filesPatrick Storz1-1/+18
2019-07-10Enhancements for --export-type command line optionPatrick Storz1-1/+1
Now allows to - export multiple types at once, e.g. using `--export-type=pdf,png` - export to different file name(s) when using `--export-type` by using --export-file option (extension is stripped/added as needed) Also be more lenient with user-specified file extensions in general: Warn the user, however do not abort export but continue with what we would have expected (and the user likely meant to do)
2019-07-03Implement fixes/suggestions by MarenPatrick Storz1-51/+50
2019-07-03Add additional informational strings for --help outputPatrick Storz1-0/+11
2019-07-03Refine option groupingPatrick Storz1-66/+69
Includes some improvements and consistency fixes for help strings.
2019-07-03Allow option sections without a name (just outputs an empty line)Patrick Storz1-1/+5
2019-07-03Avoid outputting control characters to non-tty destinations.Patrick Storz1-0/+11
2019-07-03Group command line options in --help outputPatrick Storz1-41/+58
This implements a workaround for functionality that seems to be missing in glib/gtk: We add the group headers as additional option entries and modify their short name to produce the desired output.
2019-06-23fix mising changes in previous commitJabier Arraiza1-4/+5
2019-06-22fix inbox#595 macOS NSApplicationBlockTerminationThomas Holder1-14/+27
2019-06-20Force the with_gui flag to be false when the pipe flag is true.Tavmjong Bah1-1/+2
2019-06-19Simplify piping through Inkscape. Reduce code duplication.Tavmjong Bah1-88/+50
2019-06-19Restore ability to pipe a file into Inkscape.Tavmjong Bah1-4/+70
2019-06-12revert `export-pdf-level` to `export-pdf-version`Thomas Holder1-3/+3
Was changed in 408cb49b5559
2019-06-12revert `--without-gui` shortcut to `-z`Thomas Holder1-1/+1
Was changed to `-G` in 408cb49b5559
2019-06-07Remove _argv0 from Inkscape::ApplicationPatrick Storz1-2/+2
Currently it was only used as the least preferred (and therefore effectively unused) location where to store the crash backup. However it wasn't set properly since 408cb49b5559a81ea803df64bf58457a5dd4bf16 causing assertion errors while crashing. On top of that argv0 is not a reliable way to determine the path to the currently running executable anyway. Fixes https://gitlab.com/inkscape/inkscape/issues/176
2019-06-05Remove unused libyaml dependencyPatrick Storz1-5/+1
This was required by xverbs, which were removed in db05b842cba28f01b431eee890537959aa2d8fe3
2019-05-29macOS: gtk-mac-integrationThomas Holder1-0/+28
2019-05-28Set default PDF page to 1 (PDF's don't have page 0).Tavmjong Bah1-1/+1
2019-05-27Improve xgettext processMarc Jeanmougin1-1/+1
2019-05-27Revert back to using Gio::APPLICATION_NON_UNIQUE. See commit for reasons.Tavmjong Bah1-5/+11
2019-04-24Fix commandline page selection page selection and allow to select poppler in cmdMarc Jeanmougin1-2/+15
2019-04-08Make the Inkscape application run as a single instance... expect if ↵Tavmjong Bah1-1/+5
--gapplication-app-id is set. This avoids potential problems with copying between documents and prevents race conditions in saving preferences.
2019-04-06More document.h cleanup.Tavmjong Bah1-3/+3
2019-03-28Fix internationalizationMarc Jeanmougin1-0/+4
2019-03-27Fix adding/lookup of recent files.Patrick Storz1-6/+4
Avoid setting an application name as Gtk::RecentManager calls g_get_application_name () internally to determine the default "name" attribute used for new entries in the list of recently used files (recently-used.xbel) Our Gtk::RecentFilter in menubar.cpp expects the name to equal to g_get_prgname () though (which happens to be the fallback of g_get_application_name, but only if no application name is set as in earlier versions) The alternative would be to set metadata manually, but it would require us to set *all* fields manually (including mime type, etc.). See also https://gitlab.gnome.org/GNOME/gtk/issues/1775 Fixes https://gitlab.com/inkscape/inkscape/issues/160
2019-03-24About dialog: Fix icon file locationPatrick Storz1-1/+1
(was renamed in deeb288fc38e09fba325741afb2c66f693438f9b)
2019-03-15Make InkscapeApplication responsible for managing documents and windows.Tavmjong Bah1-75/+433
Any change from previous behavior is a bug.
2019-02-17Remove unneeded comments.Tavmjong Bah1-10/+0
2019-02-17Add document_open and document_close functions and use them in batch mode.Tavmjong Bah1-25/+145
2019-02-15Turn InkscapeApplication into singleton.Tavmjong Bah1-0/+15
2019-02-12Block in window updating code. WIPTavmjong Bah1-0/+13
2019-02-08fix "inkscape --extension-directory"Thomas Holder1-3/+3
2019-02-08Attempt to fix part of issue #54. (Using the command line doesn't return.)Tavmjong Bah1-18/+72
2019-01-30Allow InkscapeApplication to track current document, selection, and desktop.Tavmjong Bah1-8/+15
2019-01-24Missing space in text. 'Heightof->Height of'Jordi Mas1-1/+1
2019-01-19Disable app menu (deprecated in GTK 3.32).Tavmjong Bah1-1/+3
2019-01-16Make InkscapeWindow responsible for adding window to app.Tavmjong Bah1-3/+0
Prevents premature program termination if original window deleted.
2019-01-15Initialize unused variable.Tavmjong Bah1-1/+1
2019-01-15Use ink_file_open in sp_file_open.Tavmjong Bah1-1/+2
2019-01-13Another baby step in creating InkscapeWindow.Tavmjong Bah1-21/+11
2019-01-13Allow window to be closed when operating in batch mode.Tavmjong Bah1-4/+12
Most verbs require the presence of a GUI even if not really needed. A new option, --batch-process, allows one to force desktop windows to close after processing actions/verbs. Once all verbs are replaced by actions that don't require a GUI, this option can be removed.
2019-01-02Avoid creating a new document before opening an old document.Tavmjong Bah1-1/+1
2018-12-10Minor tweaks.Tavmjong Bah1-2/+4
2018-12-09Gtk/Gio templating of main inkscape application class to allow commandline ↵Marc Jeanmougin1-79/+115
usage when graphic server is not available
2018-11-27Add a rotation action.Tavmjong Bah1-0/+12
2018-11-26Sort actions list.Tavmjong Bah1-0/+1