2009-03-02 23:31:01 +00:00
|
|
|
/*
|
|
|
|
* icons.[ch] written by Paolo Bacchilega, who writes:
|
2011-01-19 13:48:47 +00:00
|
|
|
* "There is no problem for me, you can license
|
|
|
|
* my code under whatever licence you wish :)"
|
2010-10-01 20:22:51 +00:00
|
|
|
*
|
2009-03-02 23:31:01 +00:00
|
|
|
*/
|
|
|
|
|
2016-03-29 16:37:21 +00:00
|
|
|
#pragma once
|
2009-03-02 23:31:01 +00:00
|
|
|
|
2021-10-18 20:22:31 +00:00
|
|
|
#include <string>
|
|
|
|
|
|
|
|
#include <gtkmm.h>
|
|
|
|
|
2009-03-02 23:31:01 +00:00
|
|
|
#define DIRECTORY_MIME_TYPE "folder"
|
2009-11-24 02:16:31 +00:00
|
|
|
#define UNKNOWN_MIME_TYPE "unknown"
|
2009-03-02 23:31:01 +00:00
|
|
|
|
2021-10-18 20:22:31 +00:00
|
|
|
Glib::ustring gtr_get_mime_type_from_filename(std::string const& file);
|
2009-03-02 23:31:01 +00:00
|
|
|
|
2021-10-18 20:22:31 +00:00
|
|
|
Glib::RefPtr<Gdk::Pixbuf> gtr_get_mime_type_icon(
|
|
|
|
Glib::ustring const& mime_type,
|
|
|
|
Gtk::IconSize icon_size,
|
|
|
|
Gtk::Widget& for_widget);
|