On Sat, Dec 6, 2014, at 11:30 AM, Natalie Sanders wrote:
Hi all,
I'm new to the community and was working on adjusting the selection.cpp code. I was wondering if any of you knew what sort of action on the UI would exercise this portion. Thanks!
Hi Natalie,
It's probably invoked during many different operations. However I'd suggest a very low-tech first step for you to rough out understanding. Go into the code that you might be interested in and then pepper it with g_message() calls.
https://developer.gnome.org/glib/stable/glib-Message-Logging.html#g-message
Starting at the tops of methods/functions and adding g_message("Entering method Foo"); can be a very quick way to get an idea of how things are being invoked at runtime.
You can then launch the GUI from a command-line and watch the data flow. Or run it from inside of Emacs (my personal preference). Or running and using the tee command to watch the output and simultaneously record it to a file.
Aside from running the main UI, you can also invoke Inkscape as a command-line program and feed it different verbs.
-- Jon A. Cruz jon@...18...