summaryrefslogtreecommitdiff
path: root/gio/giomm
diff options
context:
space:
mode:
authorGiuseppe Penone <giuspen@gmail.com>2014-03-05 13:03:26 +0100
committerMurray Cumming <murrayc@murrayc.com>2014-03-05 13:03:26 +0100
commitc0c6363463ae42eb7dd991e3b96bc8da478f6cb7 (patch)
tree603d2be275b22c62be9f29f3b9304dcd01b7c7a5 /gio/giomm
parent335b718f1f6cfa08299b0023f08a38bbc8aeae22 (diff)
downloadglibmm-c0c6363463ae42eb7dd991e3b96bc8da478f6cb7.tar.gz
win32: Surround content_type_get_symbolic_icon() with ifdefs.
This matches a similar ifdeffing in the underlying C header, because ths function is apparently not useful on win32.
Diffstat (limited to 'gio/giomm')
-rw-r--r--gio/giomm/contenttype.cc2
-rw-r--r--gio/giomm/contenttype.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/gio/giomm/contenttype.cc b/gio/giomm/contenttype.cc
index 9168899f..a01a487e 100644
--- a/gio/giomm/contenttype.cc
+++ b/gio/giomm/contenttype.cc
@@ -56,6 +56,7 @@ Glib::RefPtr<Gio::Icon> content_type_get_icon(const Glib::ustring& type)
return retvalue;
}
+#ifdef G_OS_UNIX
Glib::RefPtr<Gio::Icon> content_type_get_symbolic_icon(const Glib::ustring& type)
{
Glib::RefPtr<Icon> retvalue = Glib::wrap(g_content_type_get_symbolic_icon(type.c_str()));
@@ -63,6 +64,7 @@ Glib::RefPtr<Gio::Icon> content_type_get_symbolic_icon(const Glib::ustring& type
retvalue->reference(); //The function does not do a ref for us.
return retvalue;
}
+#endif
bool content_type_can_be_executable(const Glib::ustring& type)
{
diff --git a/gio/giomm/contenttype.h b/gio/giomm/contenttype.h
index ee142644..476d916d 100644
--- a/gio/giomm/contenttype.h
+++ b/gio/giomm/contenttype.h
@@ -97,6 +97,7 @@ Glib::ustring content_type_get_mime_type(const Glib::ustring& type);
*/
Glib::RefPtr<Icon> content_type_get_icon(const Glib::ustring& type);
+#ifdef G_OS_UNIX
/**
* Gets the symbolic icon for a content type.
*
@@ -106,6 +107,7 @@ Glib::RefPtr<Icon> content_type_get_icon(const Glib::ustring& type);
* @newin{2,34}
*/
Glib::RefPtr<Icon> content_type_get_symbolic_icon(const Glib::ustring& type);
+#endif
/**
* Checks if a content type can be executable. Note that for instance