[glibmm/glibmm-2-36] win32: Surround content_type_get_symbolic_icon() with ifdefs.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm/glibmm-2-36] win32: Surround content_type_get_symbolic_icon() with ifdefs.
- Date: Wed, 5 Mar 2014 12:14:15 +0000 (UTC)
commit 2b9a6d46d61a3bf90ead78c98962182aa45ca73d
Author: Giuseppe Penone <giuspen gmail com>
Date: Wed Mar 5 13:03:26 2014 +0100
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.
gio/giomm/contenttype.cc | 2 ++
gio/giomm/contenttype.h | 2 ++
2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gio/giomm/contenttype.cc b/gio/giomm/contenttype.cc
index 9168899..a01a487 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 af27f24..6f40832 100644
--- a/gio/giomm/contenttype.h
+++ b/gio/giomm/contenttype.h
@@ -88,6 +88,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.
*
@@ -97,6 +98,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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]