summaryrefslogtreecommitdiff
path: root/src/totem-inspector-module.c
blob: 24869181a3a10bc95f832a3340056f327babdfa1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
 * Copyright (C) 2022 Red Hat Inc.
 *
 * SPDX-License-Identifier: GPL-2-or-later WITH gstreamer-exception
 *
 * Author: Bastien Nocera <hadess@hadess.net>
 */

#include "totem.h"
#include "totem-playlist-inspector-page.h"

void
g_io_module_load (GIOModule *module)
{
  GApplication *app;

  app = g_application_get_default ();
  if (!app)
    return;
  if (!g_str_has_prefix (g_application_get_application_id (app), "org.gnome.Totem"))
    return;

  g_type_module_use (G_TYPE_MODULE (module));

  g_io_extension_point_implement ("gtk-inspector-page",
				  TOTEM_TYPE_PLAYLIST_INSPECTOR_PAGE,
				  "totem-playlist",
				  10);
}

void
g_io_module_unload (GIOModule *module)
{
}