[totem/introspection: 3/17] Move TotemDiscMediaType get_type() and quark() functions to totem-pl-parser



commit 723cf28b588a1f7705ebdc21d9b6e5438bfeba96
Author: Philip Withnall <philip tecnocode co uk>
Date:   Sat Jun 26 22:02:37 2010 +0100

    Move TotemDiscMediaType get_type() and quark() functions to totem-pl-parser
    
    The enum lives there, so the type functions should do too.

 docs/reference/totem-sections.txt |    4 ----
 src/totem-object.c                |   31 -------------------------------
 src/totem.h                       |    5 -----
 3 files changed, 0 insertions(+), 40 deletions(-)
---
diff --git a/docs/reference/totem-sections.txt b/docs/reference/totem-sections.txt
index 89e47a5..d085875 100644
--- a/docs/reference/totem-sections.txt
+++ b/docs/reference/totem-sections.txt
@@ -66,11 +66,7 @@ TOTEM_TYPE_OBJECT
 totem_object_get_type
 TOTEM_OBJECT_CLASS
 TOTEM_IS_OBJECT_CLASS
-TOTEM_DISC_MEDIA_TYPE
-totem_disc_media_type_get_type
-totem_disc_media_type_quark
 TOTEM_REMOTE_COMMAND
-TOTEM_TYPE_DISC_MEDIA_TYPE
 TOTEM_TYPE_REMOTE_COMMAND
 totem_remote_command_get_type
 totem_remote_command_quark
diff --git a/src/totem-object.c b/src/totem-object.c
index 4db6db8..14ba34f 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -799,37 +799,6 @@ totem_remote_setting_get_type (void)
 	return etype;
 }
 
-GQuark
-totem_disc_media_type_quark (void)
-{
-	static GQuark quark = 0;
-	if (!quark)
-		quark = g_quark_from_static_string ("totem_disc_media_type");
-
-	return quark;
-}
-
-GType
-totem_disc_media_type_get_type (void)
-{
-	static GType etype = 0;
-
-	if (etype == 0)	{
-		static const GEnumValue values[] = {
-			ENUM_ENTRY (MEDIA_TYPE_ERROR, "Media type error"),
-			ENUM_ENTRY (MEDIA_TYPE_DATA, "Data disc"),
-			ENUM_ENTRY (MEDIA_TYPE_CDDA, "CDDA disc"),
-			ENUM_ENTRY (MEDIA_TYPE_VCD, "VCD"),
-			ENUM_ENTRY (MEDIA_TYPE_DVD, "DVD"),
-			{ 0, NULL, NULL }
-		};
-
-		etype = g_enum_register_static ("TotemDiscMediaType", values);
-	}
-
-	return etype;
-}
-
 static void
 reset_seek_status (Totem *totem)
 {
diff --git a/src/totem.h b/src/totem.h
index 8af9c30..8b2af6c 100644
--- a/src/totem.h
+++ b/src/totem.h
@@ -130,11 +130,6 @@ GQuark totem_remote_setting_quark	(void);
 #define TOTEM_TYPE_REMOTE_SETTING	(totem_remote_setting_get_type())
 #define TOTEM_REMOTE_SETTING		totem_remote_setting_quark ()
 
-GType totem_disc_media_type_get_type	(void);
-GQuark totem_disc_media_type_quark	(void);
-#define TOTEM_TYPE_DISC_MEDIA_TYPE	(totem_disc_media_type_get_type())
-#define TOTEM_DISC_MEDIA_TYPE		totem_disc_media_type_quark ()
-
 #define TOTEM_TYPE_OBJECT              (totem_object_get_type ())
 #define TOTEM_OBJECT(obj)              (G_TYPE_CHECK_INSTANCE_CAST ((obj), totem_object_get_type (), TotemObject))
 #define TOTEM_OBJECT_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass), totem_object_get_type (), TotemObjectClass))



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