Commit 723cf28b authored by Philip Withnall's avatar Philip Withnall
Browse files

Move TotemDiscMediaType get_type() and quark() functions to totem-pl-parser

The enum lives there, so the type functions should do too.
parent cfedb89b
......@@ -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
......
......@@ -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)
{
......
......@@ -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))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment