~matttbe/ubuntu/raring/rhythmbox/lp1010619_RB_2.98

« back to all changes in this revision

Viewing changes to widgets/rb-song-info.c

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2012-11-06 20:52:57 UTC
  • mfrom: (1.1.67) (214.1.1 quantal-proposed)
  • Revision ID: package-import@ubuntu.com-20121106205257-0btjh8jqley153el
Tags: 2.98-0ubuntu1
* New upstream release (LP: #1060601)
* debian/control.in:
  - Bump minimum glib, gtk, totem-plparser, clutter, and clutter-gst
  - Drop no longer needed musicbrainz dependency
* Refreshed 09_keywords.patch
* Updated 11_fix_cd_pausing.patch with fix from git
* Dropped patches applied in new version:
  - 00git_musicbrainz5.patch
  - 08_CVE-2012-3355.patch
  - dont_free_consumed_floating_gvariant.patch
  - git_scale_click.patch
  - git_crash_during_monitor.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
267
267
         */
268
268
        g_object_class_install_property (object_class,
269
269
                                         PROP_SELECTED_ENTRIES,
270
 
                                         g_param_spec_value_array ("selected-entries",
271
 
                                                                   "Selected entries",
272
 
                                                                   "List of selected entries, if this is a multiple-entry dialog",
273
 
                                                                   g_param_spec_boxed ("selected-entry",
274
 
                                                                                       "Selected entry",
275
 
                                                                                       "RhythmDBEntry for a selected entry",
276
 
                                                                                       RHYTHMDB_TYPE_ENTRY,
277
 
                                                                                       G_PARAM_READABLE),
278
 
                                                                   G_PARAM_READABLE));
 
270
                                         g_param_spec_boxed ("selected-entries",
 
271
                                                             "selected entries",
 
272
                                                             "List of selected entries, if this is a multiple-entry dialog",
 
273
                                                             G_TYPE_ARRAY,
 
274
                                                             G_PARAM_READABLE));
279
275
 
280
276
        object_class->dispose = rb_song_info_dispose;
281
277
        object_class->finalize = rb_song_info_finalize;
749
745
                break;
750
746
        case PROP_SELECTED_ENTRIES:
751
747
                if (song_info->priv->selected_entries) {
752
 
                        GValueArray *value_array;
 
748
                        GArray *value_array;
753
749
                        GValue entry_value = { 0, };
754
750
                        GList *entry_list;
755
751
 
756
 
                        value_array = g_value_array_new (1);
 
752
                        value_array = g_array_sized_new (FALSE, TRUE, sizeof (GValue), 1);
 
753
                        g_array_set_clear_func (value_array, (GDestroyNotify) g_value_unset);
757
754
                        g_value_init (&entry_value, RHYTHMDB_TYPE_ENTRY);
758
755
                        for (entry_list = song_info->priv->selected_entries; entry_list; entry_list = entry_list->next) {
759
756
                                g_value_set_boxed (&entry_value, entry_list->data);
760
 
                                g_value_array_append (value_array, &entry_value);
 
757
                                g_array_append_val (value_array, entry_value);
761
758
                        }
762
759
                        g_value_unset (&entry_value);
763
760
                        g_value_take_boxed (value, value_array);