Don't use deprecated gtk_icon_set_render_icon() on GTK3
Use GLib version of C99's snprintf()
Fix leaks upon symbol list updating
Remove use of global variables in custom commands code