[totem/wip/hadess/remove-plugin-interface: 3/5] plugins: Remove totem_plugin_load_interface()
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem/wip/hadess/remove-plugin-interface: 3/5] plugins: Remove totem_plugin_load_interface()
- Date: Tue, 11 May 2021 12:42:17 +0000 (UTC)
commit fd461b6571855f31cf48103a65a447c8ee3b110e
Author: Bastien Nocera <hadess hadess net>
Date: Tue May 11 14:34:56 2021 +0200
plugins: Remove totem_plugin_load_interface()
Plugin developers should use GResource instead.
docs/reference/totem-sections.txt | 1 -
src/plugins/totem-dirs.c | 35 -----------------------------------
src/plugins/totem-dirs.h | 6 ------
3 files changed, 42 deletions(-)
---
diff --git a/docs/reference/totem-sections.txt b/docs/reference/totem-sections.txt
index b00ef9796..cb019eca5 100644
--- a/docs/reference/totem-sections.txt
+++ b/docs/reference/totem-sections.txt
@@ -113,7 +113,6 @@ totem_interface_load_with_full_path
TOTEM_PLUGIN_REGISTER
TOTEM_PLUGIN_REGISTER_CONFIGURABLE
totem_plugin_find_file
-totem_plugin_load_interface
totem_get_plugin_paths
</SECTION>
diff --git a/src/plugins/totem-dirs.c b/src/plugins/totem-dirs.c
index 4920c2271..8c87d4675 100644
--- a/src/plugins/totem-dirs.c
+++ b/src/plugins/totem-dirs.c
@@ -159,38 +159,3 @@ totem_plugin_find_file (const char *plugin_name,
#endif
return ret;
}
-
-/**
- * totem_plugin_load_interface:
- * @plugin_name: the plugin name
- * @name: interface filename
- * @fatal: %TRUE if it's a fatal error if the interface can't be loaded
- * @parent: (allow-none): the interface's parent #GtkWindow
- * @user_data: (allow-none): a pointer to be passed to each signal handler in the interface when they're
called
- *
- * Loads an interface file (GtkBuilder UI file) for a plugin, given its filename and
- * assuming it's installed in the plugin's data directory.
- *
- * This should be used instead of attempting to load interfaces manually in plugins.
- *
- * Return value: (transfer full): the #GtkBuilder instance for the interface
- **/
-GtkBuilder *
-totem_plugin_load_interface (const char *plugin_name,
- const char *name,
- gboolean fatal,
- GtkWindow *parent,
- gpointer user_data)
-{
- GtkBuilder *builder = NULL;
- char *filename;
-
- filename = totem_plugin_find_file (plugin_name, name);
- builder = totem_interface_load_with_full_path (filename,
- fatal,
- parent,
- user_data);
- g_free (filename);
-
- return builder;
-}
diff --git a/src/plugins/totem-dirs.h b/src/plugins/totem-dirs.h
index 57ce86076..4cc4036a8 100644
--- a/src/plugins/totem-dirs.h
+++ b/src/plugins/totem-dirs.h
@@ -31,9 +31,3 @@
char ** totem_get_plugin_paths (void);
char * totem_plugin_find_file (const char *plugin_name,
const char *file);
-GtkBuilder * totem_plugin_load_interface (const char *plugin_name,
- const char *name,
- gboolean fatal,
- GtkWindow *parent,
- gpointer user_data);
-
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]