[totem/wip/hadess/clean-private: 7/21] main: Make totem_object_plugins_*() private
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem/wip/hadess/clean-private: 7/21] main: Make totem_object_plugins_*() private
- Date: Thu, 7 Apr 2022 11:47:05 +0000 (UTC)
commit 4d03fd6caa9c315f810b59c2cf9e871af1054900
Author: Bastien Nocera <hadess hadess net>
Date: Thu Apr 7 13:25:31 2022 +0200
main: Make totem_object_plugins_*() private
src/totem-object.c | 58 ++++++++++++++++++++++++++---------------------------
src/totem-private.h | 2 --
2 files changed, 29 insertions(+), 31 deletions(-)
---
diff --git a/src/totem-object.c b/src/totem-object.c
index 08a933394..fe5a045aa 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -140,6 +140,35 @@ static int totem_table_signals[LAST_SIGNAL] = { 0 };
G_DEFINE_TYPE(TotemObject, totem_object, GTK_TYPE_APPLICATION)
+/**
+ * totem_object_plugins_init:
+ * @totem: a #TotemObject
+ *
+ * Initialises the plugin engine and activates all the
+ * enabled plugins.
+ **/
+static void
+totem_object_plugins_init (TotemObject *totem)
+{
+ if (totem->engine == NULL)
+ totem->engine = totem_plugins_engine_get_default (totem);
+}
+
+/**
+ * totem_object_plugins_shutdown:
+ * @totem: a #TotemObject
+ *
+ * Shuts down the plugin engine and deactivates all the
+ * plugins.
+ **/
+static void
+totem_object_plugins_shutdown (TotemObject *totem)
+{
+ if (totem->engine)
+ totem_plugins_engine_shut_down (totem->engine);
+ g_clear_object (&totem->engine);
+}
+
static void
totem_object_app_open (GApplication *application,
GFile **files,
@@ -588,35 +617,6 @@ totem_object_get_property (GObject *object,
}
}
-/**
- * totem_object_plugins_init:
- * @totem: a #TotemObject
- *
- * Initialises the plugin engine and activates all the
- * enabled plugins.
- **/
-void
-totem_object_plugins_init (TotemObject *totem)
-{
- if (totem->engine == NULL)
- totem->engine = totem_plugins_engine_get_default (totem);
-}
-
-/**
- * totem_object_plugins_shutdown:
- * @totem: a #TotemObject
- *
- * Shuts down the plugin engine and deactivates all the
- * plugins.
- **/
-void
-totem_object_plugins_shutdown (TotemObject *totem)
-{
- if (totem->engine)
- totem_plugins_engine_shut_down (totem->engine);
- g_clear_object (&totem->engine);
-}
-
/**
* totem_object_get_main_window:
* @totem: a #TotemObject
diff --git a/src/totem-private.h b/src/totem-private.h
index 89b84ce94..0f1bc3684 100644
--- a/src/totem-private.h
+++ b/src/totem-private.h
@@ -183,8 +183,6 @@ void totem_callback_connect (Totem *totem);
void playlist_widget_setup (Totem *totem);
void grilo_widget_setup (Totem *totem);
void video_widget_create (Totem *totem);
-void totem_object_plugins_init (TotemObject *totem);
-void totem_object_plugins_shutdown (TotemObject *totem);
void totem_object_set_fullscreen (TotemObject *totem, gboolean state);
void totem_object_set_main_page (TotemObject *totem,
const char *page_id);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]