mirror of
https://github.com/transmission/transmission
synced 2024-12-23 08:13:27 +00:00
20be816fee
* perf: faster file tree building in GTK client * perf: faster GTK client FileList * use a std::map for faster node lookup when building a file tree * use tr_get_mime_type_for_filename() for mime-type lookup * remove unnecessary layer of indirection when building the keys for lookuops in the mime-type icon cache * be more careful to only call operator= on proxies whose values have actually changed, since that assignment is expensive
17 lines
444 B
C++
17 lines
444 B
C++
/*
|
|
* icons.[ch] written by Paolo Bacchilega, who writes:
|
|
* "There is no problem for me, you can license
|
|
* my code under whatever licence you wish :)"
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <string_view>
|
|
|
|
#include <gtkmm.h>
|
|
|
|
extern std::string_view const DirectoryMimeType;
|
|
extern std::string_view const UnknownMimeType;
|
|
|
|
Glib::RefPtr<Gdk::Pixbuf> gtr_get_mime_type_icon(std::string_view mime_type, Gtk::IconSize icon_size, Gtk::Widget& for_widget);
|