[brasero] Use public API instead of libbrasero-burn private one
- From: Philippe Rouquier <philippr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [brasero] Use public API instead of libbrasero-burn private one
- Date: Tue, 25 Aug 2009 13:13:22 +0000 (UTC)
commit a6ce4ace76f9b31550c57bc6b9aa53b8815ccf9c
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date: Tue Aug 25 14:23:49 2009 +0200
Use public API instead of libbrasero-burn private one
Also ref the plugins in the list
libbrasero-burn/burn-plugin-manager.c | 1 +
src/brasero-plugin-manager-ui.c | 7 +++----
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/libbrasero-burn/burn-plugin-manager.c b/libbrasero-burn/burn-plugin-manager.c
index 43eda6a..19b5bf8 100644
--- a/libbrasero-burn/burn-plugin-manager.c
+++ b/libbrasero-burn/burn-plugin-manager.c
@@ -101,6 +101,7 @@ brasero_plugin_manager_get_plugins_list (BraseroPluginManager *self)
BraseroPlugin *plugin;
plugin = iter->data;
+ g_object_ref (plugin);
retval = g_slist_prepend (retval, plugin);
}
diff --git a/src/brasero-plugin-manager-ui.c b/src/brasero-plugin-manager-ui.c
index a7877e5..1262cb6 100644
--- a/src/brasero-plugin-manager-ui.c
+++ b/src/brasero-plugin-manager-ui.c
@@ -41,7 +41,7 @@ fy
#include "brasero-plugin.h"
#include "brasero-plugin-information.h"
-#include "burn-plugin-manager.h"
+#include "brasero-burn-lib.h"
#include "brasero-plugin-option.h"
typedef enum {
@@ -912,7 +912,6 @@ brasero_plugin_manager_ui_init (BraseroPluginManagerUI *pm)
GtkWidget *viewport;
GtkWidget *alignment;
GtkWidget *vbuttonbox;
- BraseroPluginManager *manager;
BraseroPluginManagerUIPrivate *priv;
priv = BRASERO_PLUGIN_MANAGER_UI_GET_PRIVATE (pm);
@@ -977,8 +976,7 @@ brasero_plugin_manager_ui_init (BraseroPluginManagerUI *pm)
plugin_manager_ui_construct_tree (pm);
/* get the list of available plugins (or installed) */
- manager = brasero_plugin_manager_get_default ();
- priv->plugins = brasero_plugin_manager_get_plugins_list (manager);
+ priv->plugins = brasero_burn_library_get_plugins_list ();
if (!priv->plugins){
gtk_widget_set_sensitive (priv->about_button, FALSE);
@@ -997,6 +995,7 @@ brasero_plugin_manager_ui_finalize (GObject *object)
priv = BRASERO_PLUGIN_MANAGER_UI_GET_PRIVATE (pm);
if (priv->plugins) {
+ g_slist_foreach (priv->plugins, (GFunc) g_object_unref, NULL);
g_slist_free (priv->plugins);
priv->plugins = NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]