~ubuntu-branches/ubuntu/wily/brasero/wily

« back to all changes in this revision

Viewing changes to src/burn-plugin-manager.c

  • Committer: Bazaar Package Importer
  • Author(s): Pedro Fragoso
  • Date: 2008-11-18 11:30:50 UTC
  • mfrom: (1.1.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20081118113050-hoy0pi04uv7ww9d8
Tags: 0.8.3-0ubuntu1
* New upstream release (LP: #299411)
  - allow use of remote files
  - drives are now probed asynchronously and may not popup immediatly
    but brasero starts faster
  - some parts of GUI were revisited (in particular the burn
    option dialogs)
  - command line option for video projects (LP: #273140)
  - brasero crashed with SIGSEGV in g_main_context_dispatch()
    (LP: #281599)
  - Brasero main GUI appears after closing the dialog
    when opening an ISO file using Nautilus (LP: #242022)
  - brasero delete original files in VIDEO_TS folder (LP: #280835)
  - brasero crashed with SIGSEGV in 
    brasero_mkisofs_base_write_to_files() (LP: #275312)
  - brasero crashed with SIGSEGV in 
    brasero_project_save_project_as() (LP: #275086)
  - brasero crashed with SIGSEGV in 
    IA__g_sequence_iter_get_sequence() (LP: #282622)
  - brasero crashed with SIGSEGV in brasero_medium_get_drive()
    (LP: #283197)
  - Dialog contains a lot of empty space (LP: #190192)
 * debian/patches/008-add-gettext-domain-to-desktop-file.patch:
   - Dropped, we don't need this anymore
 * debian/control:
  - Add Build-deps on libeel2-dev and libnautilus-extension-dev
 * debian/brasero.install:
  - Install nautilus extension

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
 
35
35
#include "burn-basics.h"
36
36
#include "burn-debug.h"
37
 
#include "burn-caps.h"
38
37
#include "burn-track.h"
39
38
#include "burn-plugin.h"
40
39
#include "burn-plugin-private.h"
130
129
        GConfClient *client;
131
130
        GSList *names = NULL;
132
131
        GError *error = NULL;
133
 
        BraseroBurnCaps *caps;
134
132
        BraseroPluginManagerPrivate *priv;
135
133
 
136
134
        priv = BRASERO_PLUGIN_MANAGER_PRIVATE (self);
138
136
        /* get the list of user requested plugins. while at it we add a watch
139
137
         * on the key so as to be warned whenever the user changes prefs. */
140
138
        client = gconf_client_get_default ();
141
 
        caps = brasero_burn_caps_get_default ();
142
139
 
143
140
        if (priv->notification) {
144
141
                gconf_client_notify_remove (client, priv->notification);
169
166
 
170
167
                        plugin = iter->data;
171
168
 
172
 
                        if (brasero_burn_caps_plugin_can_burn (caps, plugin) == BRASERO_BURN_OK
173
 
                        ||  brasero_burn_caps_plugin_can_convert (caps, plugin) == BRASERO_BURN_OK
174
 
                        ||  brasero_burn_caps_plugin_can_image (caps, plugin) == BRASERO_BURN_OK) {
 
169
                        if (brasero_plugin_can_burn (plugin) == BRASERO_BURN_OK
 
170
                        ||  brasero_plugin_can_convert (plugin) == BRASERO_BURN_OK
 
171
                        ||  brasero_plugin_can_image (plugin) == BRASERO_BURN_OK) {
175
172
                                brasero_plugin_set_active (plugin, TRUE);
176
173
                                continue;
177
174
                        }
188
185
 
189
186
                plugin = iter->data;
190
187
 
191
 
                if (brasero_burn_caps_plugin_can_burn (caps, plugin) == BRASERO_BURN_OK
192
 
                ||  brasero_burn_caps_plugin_can_convert (caps, plugin) == BRASERO_BURN_OK
193
 
                ||  brasero_burn_caps_plugin_can_image (caps, plugin) == BRASERO_BURN_OK) {
 
188
                if (brasero_plugin_can_burn (plugin) == BRASERO_BURN_OK
 
189
                ||  brasero_plugin_can_convert (plugin) == BRASERO_BURN_OK
 
190
                ||  brasero_plugin_can_image (plugin) == BRASERO_BURN_OK) {
194
191
                        brasero_plugin_set_active (plugin, TRUE);
195
192
                        BRASERO_BURN_LOG ("Setting plugin %s %s",
196
193
                                          brasero_plugin_get_name (plugin),
234
231
 
235
232
end:
236
233
 
237
 
        g_object_unref (caps);
238
 
 
239
234
        BRASERO_BURN_LOG ("Watching GConf plugin key");
240
235
        priv->notification = gconf_client_notify_add (client,
241
236
                                                      BRASERO_PLUGIN_KEY,
253
248
                                             BraseroPluginManager *self)
254
249
{
255
250
        BraseroPluginManagerPrivate *priv;
256
 
        BraseroBurnCaps *caps;
257
251
        GError *error = NULL;
258
252
        GConfClient *client;
259
253
        GSList *list = NULL;
263
257
        priv = BRASERO_PLUGIN_MANAGER_PRIVATE (self);
264
258
 
265
259
        /* build a list of all active plugins */
266
 
        caps = brasero_burn_caps_get_default ();
267
260
        for (iter = priv->plugins; iter; iter = iter->next) {
268
261
                BraseroPlugin *plugin;
269
262
                const gchar *name;
272
265
                if (!brasero_plugin_get_active (plugin))
273
266
                        continue;
274
267
 
275
 
                if (brasero_burn_caps_plugin_can_burn (caps, plugin) == BRASERO_BURN_OK
276
 
                ||  brasero_burn_caps_plugin_can_convert (caps, plugin) == BRASERO_BURN_OK
277
 
                ||  brasero_burn_caps_plugin_can_image (caps, plugin) == BRASERO_BURN_OK)
 
268
                if (brasero_plugin_can_burn (plugin) == BRASERO_BURN_OK
 
269
                ||  brasero_plugin_can_convert (plugin) == BRASERO_BURN_OK
 
270
                ||  brasero_plugin_can_image (plugin) == BRASERO_BURN_OK)
278
271
                        continue;
279
272
 
280
273
                name = brasero_plugin_get_name (plugin);
281
274
                if (name)
282
275
                        list = g_slist_prepend (list, (gchar *) name);
283
276
        }
284
 
        g_object_unref (caps);
285
277
 
286
278
        client = gconf_client_get_default ();
287
279
        if (priv->notification) {