gtk+ r20011 - trunk/gtk/xdgmime



Author: matthiasc
Date: Wed Apr 16 18:23:08 2008
New Revision: 20011
URL: http://svn.gnome.org/viewvc/gtk+?rev=20011&view=rev

Log:
2008-04-16  Matthias Clasen  <mclasen redhat com>

        Partically revert the last commit after realizing that
        xdg_mime_media_type_equal doesn't have to init at all.

        * xdgmime/xdgmime.h:
        * xdgmime/xdgmime.c: Get rid of _xdg_mime_media_type_equal

        * xdgmime/xdgmimecache.c: Use xdg_mime_media_type_equal



Modified:
   trunk/gtk/xdgmime/ChangeLog
   trunk/gtk/xdgmime/xdgmime.c
   trunk/gtk/xdgmime/xdgmime.h
   trunk/gtk/xdgmime/xdgmimecache.c

Modified: trunk/gtk/xdgmime/xdgmime.c
==============================================================================
--- trunk/gtk/xdgmime/xdgmime.c	(original)
+++ trunk/gtk/xdgmime/xdgmime.c	Wed Apr 16 18:23:08 2008
@@ -670,8 +670,8 @@
 }
 
 int
-_xdg_mime_media_type_equal (const char *mime_a,
-			    const char *mime_b)
+xdg_mime_media_type_equal (const char *mime_a,
+			   const char *mime_b)
 {
   char *sep;
 
@@ -683,15 +683,6 @@
   return 0;
 }
 
-int
-xdg_mime_media_type_equal (const char *mime_a,
-			   const char *mime_b)
-{
-  xdg_mime_init ();
-
-  return _xdg_mime_media_type_equal (mime_a, mime_b);
-}
-
 #if 1
 static int
 xdg_mime_is_super_type (const char *mime)

Modified: trunk/gtk/xdgmime/xdgmime.h
==============================================================================
--- trunk/gtk/xdgmime/xdgmime.h	(original)
+++ trunk/gtk/xdgmime/xdgmime.h	Wed Apr 16 18:23:08 2008
@@ -99,8 +99,6 @@
    /* Private versions of functions that don't call xdg_mime_init () */
 int          _xdg_mime_mime_type_equal             (const char *mime_a,
 						    const char *mime_b);
-int          _xdg_mime_media_type_equal            (const char *mime_a,
-						    const char *mime_b);
 int          _xdg_mime_mime_type_subclass          (const char *mime,
 						    const char *base);
 

Modified: trunk/gtk/xdgmime/xdgmimecache.c
==============================================================================
--- trunk/gtk/xdgmime/xdgmimecache.c	(original)
+++ trunk/gtk/xdgmime/xdgmimecache.c	Wed Apr 16 18:23:08 2008
@@ -783,7 +783,7 @@
 #if 1
   /* Handle supertypes */
   if (is_super_type (ubase) &&
-      _xdg_mime_media_type_equal (umime, ubase))
+      xdg_mime_media_type_equal (umime, ubase))
     return 1;
 #endif
 



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