~mfisch/brasero/update-to-3.8.0

« back to all changes in this revision

Viewing changes to src/brasero-video-disc.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:
1352
1352
        return BRASERO_DISC_OK;
1353
1353
}
1354
1354
 
 
1355
static gboolean
 
1356
brasero_video_disc_is_empty (BraseroDisc *disc)
 
1357
{
 
1358
        BraseroVideoDiscPrivate *priv;
 
1359
        GtkTreeModel *model;
 
1360
 
 
1361
        priv = BRASERO_VIDEO_DISC_PRIVATE (disc);
 
1362
        model = gtk_tree_view_get_model (GTK_TREE_VIEW (priv->tree));
 
1363
        return gtk_tree_model_iter_n_children (model, NULL) != 0;
 
1364
}
 
1365
 
1355
1366
static void
1356
1367
brasero_video_disc_iface_disc_init (BraseroDiscIface *iface)
1357
1368
{
1358
1369
        iface->add_uri = brasero_video_disc_add_uri;
1359
1370
        iface->delete_selected = brasero_video_disc_delete_selected;
1360
1371
 
 
1372
        iface->is_empty = brasero_video_disc_is_empty;
1361
1373
        iface->set_session_contents = brasero_video_disc_set_session_contents;
1362
1374
 
1363
1375
        iface->get_selected_uri = brasero_video_disc_get_selected_uri;