~snaggen/rhythmbox/bpm

« back to all changes in this revision

Viewing changes to plugins/rb-plugin-manager.c

  • Committer: James Livingston
  • Author(s): James Livingston
  • Date: 2007-11-25 07:24:57 UTC
  • Revision ID: git-v1:b15d7482ba708af8778d80e83ec24fc7eb5c503b
fix some memory leaks. patch partially by John Daiker.

2007-11-25  James Livingston  <doclivingston@gmail.com>

        * bindings/python/rb.defs:
        * metadata/rb-metadata-dbus-service.c: (main):
        * plugins/rb-plugins-engine.c: (rb_plugins_engine_load),
        (rb_plugins_engine_load_cb):
        * plugins/sample-vala/rb-sample-vala-plugin.vala:
        * plugins/visualizer/rb-visualizer-plugin.c: (get_vis_plugin_list):
        * shell/rb-shell.c: (rb_shell_finalize), (construct_widgets):
        * shell/rb-tray-icon.c: (rb_tray_icon_init):
        * tools/massif.sh:
        * widgets/rb-entry-view.c: (rb_entry_view_get_sorting_type):
        * widgets/rb-entry-view.h: fix some memory leaks. patch partially by
        John Daiker.

svn path=/trunk/; revision=5456

Show diffs side-by-side

added added

removed removed

Lines of Context:
163
163
 
164
164
        view = gtk_tree_selection_get_tree_view (selection);
165
165
        info = plugin_manager_get_selected_plugin (pm);
 
166
        if (info == NULL) {
 
167
                return;
 
168
        }
166
169
 
167
170
        /* update info widgets */
168
171
        string = g_strdup_printf ("<span size=\"x-large\">%s</span>",
411
414
        GtkTreeViewColumn *column;
412
415
        GtkCellRenderer *cell;
413
416
        GtkTreeModel *filter;
 
417
        GtkTreeSelection *selection;
414
418
 
415
419
        pm->priv->plugin_model = GTK_TREE_MODEL (gtk_list_store_new (N_COLUMNS, G_TYPE_BOOLEAN, G_TYPE_BOOLEAN, G_TYPE_POINTER));
416
420
        filter = gtk_tree_model_filter_new (pm->priv->plugin_model, NULL);
421
425
        gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (pm->priv->tree), TRUE);
422
426
        gtk_tree_view_set_headers_clickable (GTK_TREE_VIEW (pm->priv->tree), TRUE);
423
427
 
 
428
        selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (pm->priv->tree));
 
429
        gtk_tree_selection_set_mode (selection, GTK_SELECTION_BROWSE);
 
430
 
424
431
        /* first column */
425
432
        cell = gtk_cell_renderer_toggle_new ();
426
433
        g_signal_connect (cell,
452
459
                                             NULL,
453
460
                                             NULL);
454
461
 
455
 
        g_signal_connect (gtk_tree_view_get_selection (GTK_TREE_VIEW (pm->priv->tree)),
 
462
        g_signal_connect (selection,
456
463
                          "changed",
457
464
                          G_CALLBACK (cursor_changed_cb),
458
465
                          pm);