[glibmm/glibmm-2-38] win32: Surround content_type_get_symbolic_icon() with ifdefs.



commit f033c316c3442d37a5f2bdda26b499dcd8d8f6ea
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 ee14264..476d916 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]