diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-21 22:37:35 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-21 22:37:35 +0000 |
commit | 21f9414ce35d4c1548fe6e9179a701701436c578 (patch) | |
tree | 56bdda45cbcfd1602926daadd1dc227a0b31b652 /base/mime_util.h | |
parent | ac9deb95ac477b8827e1ec04ab6d05601891976f (diff) | |
download | chromium_src-21f9414ce35d4c1548fe6e9179a701701436c578.zip chromium_src-21f9414ce35d4c1548fe6e9179a701701436c578.tar.gz chromium_src-21f9414ce35d4c1548fe6e9179a701701436c578.tar.bz2 |
Move gtk_settings_get_default() call to the UI thread.
BUG=19971
Review URL: http://codereview.chromium.org/173216
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24034 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/mime_util.h')
-rw-r--r-- | base/mime_util.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/base/mime_util.h b/base/mime_util.h index 4b67e46..7e1593b 100644 --- a/base/mime_util.h +++ b/base/mime_util.h @@ -20,6 +20,13 @@ std::string GetFileMimeType(const FilePath& filepath); // Get the mime type for a byte vector. std::string GetDataMimeType(const std::string& data); +#if defined(OS_LINUX) +// This detects the current GTK theme by calling gtk_settings_get_default(). +// It should only be executed on the UI thread and must be called before +// GetMimeIcon(). +void DetectGtkTheme(); +#endif + // Gets the file name for an icon given the mime type and icon pixel size. // Where an icon is a square image of |size| x |size|. // This will try to find the closest matching icon. If that's not available, |