diff options
author | Bastien Nocera <hadess@hadess.net> | 2022-04-07 13:25:31 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2022-04-07 13:46:34 +0200 |
commit | 4d03fd6caa9c315f810b59c2cf9e871af1054900 (patch) | |
tree | e9566805ebca9db85c82ddad47ff89b6a96d0646 /src | |
parent | a2a2c1f38650acbfcc732014e6b98331515d5d6c (diff) | |
download | totem-4d03fd6caa9c315f810b59c2cf9e871af1054900.tar.gz |
main: Make totem_object_plugins_*() private
Diffstat (limited to 'src')
-rw-r--r-- | src/totem-object.c | 58 | ||||
-rw-r--r-- | 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, @@ -589,35 +618,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); |