Non used svg2png cache folders are now deleted when exiting RT

see #3547
This commit is contained in:
Hombre
2019-01-02 22:39:49 +01:00
parent 4ee5c96392
commit 92ed81a1fe
5 changed files with 59 additions and 12 deletions

View File

@@ -29,15 +29,17 @@ class RTScalable
static double dpi;
static int scale;
static Gtk::TextDirection direction; // cached value for text-direction
static void deleteDir(const Glib::ustring& path);
protected:
static void setDPInScale (const double newDPI, const int newScale);
static Cairo::RefPtr<Cairo::ImageSurface> loadImage(const Glib::ustring &fname, double dpi);
Gtk::TextDirection getDirection();
static Gtk::TextDirection getDirection();
public:
static void init(Gtk::Window *window);
static void cleanup();
static double getDPI ();
static double getTweakedDPI (); // The returned value is tweaked DPI to adapt to main the font size. Maybe not an ideal solution.
static int getScale ();