~mfisch/brasero/update-to-3.8.0

« back to all changes in this revision

Viewing changes to src/brasero-video-tree-model.c

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Moog
  • Date: 2009-07-28 01:12:27 UTC
  • mto: (1.4.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 46.
  • Revision ID: james.westby@ubuntu.com-20090728011227-tiva9yorc5d1r5hs
Tags: upstream-2.27.5
ImportĀ upstreamĀ versionĀ 2.27.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
102
102
brasero_video_tree_model_iter_n_children (GtkTreeModel *model,
103
103
                                          GtkTreeIter *iter)
104
104
{
 
105
        if (!iter) {
 
106
                guint num = 0;
 
107
                GSList *iter;
 
108
                GSList * tracks;
 
109
                BraseroVideoTreeModelPrivate *priv;
 
110
 
 
111
                priv = BRASERO_VIDEO_TREE_MODEL_PRIVATE (model);
 
112
 
 
113
                /* This is a special case in which we return the number
 
114
                 * of rows that are in the model. */
 
115
                tracks = brasero_burn_session_get_tracks (BRASERO_BURN_SESSION (priv->session));
 
116
                for (iter = tracks; iter; iter = iter->next) {
 
117
                        BraseroTrackStream *track;
 
118
 
 
119
                        track = iter->data;
 
120
                        num ++;
 
121
 
 
122
                        if (brasero_track_stream_get_gap (track) > 0)
 
123
                                num ++;
 
124
                }
 
125
 
 
126
                return num;
 
127
        }
 
128
 
105
129
        return 0;
106
130
}
107
131