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

« back to all changes in this revision

Viewing changes to src/brasero-disc.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:
338
338
}
339
339
 
340
340
void
341
 
brasero_disc_set_current_drive (BraseroDisc *disc,
342
 
                                BraseroDrive *drive)
343
 
{
344
 
        BraseroDiscIface *iface;
345
 
 
346
 
        if (!disc)
347
 
                return;
348
 
 
349
 
        g_return_if_fail (BRASERO_IS_DISC (disc));
350
 
 
351
 
        iface = BRASERO_DISC_GET_IFACE (disc);
352
 
        if (iface->set_drive)
353
 
                (* iface->set_drive) (disc, drive);
354
 
}
355
 
 
356
 
void
357
341
brasero_disc_selection_changed (BraseroDisc *disc)
358
342
{
359
343
        g_return_if_fail (BRASERO_IS_DISC (disc));
601
585
                          event_box);
602
586
}
603
587
 
 
588
static gboolean
 
589
brasero_disc_draw_focus_around_help_text (GtkWidget *label,
 
590
                                          GdkEventExpose *event,
 
591
                                          gpointer NULL_data)
 
592
{
 
593
        if (!gtk_widget_is_focus (label))
 
594
                return FALSE;
 
595
 
 
596
        gtk_paint_focus (label->style,
 
597
                         label->window,
 
598
                         GTK_STATE_NORMAL,
 
599
                         &event->area,
 
600
                         label,
 
601
                         NULL,
 
602
                         label->style->xthickness, label->style->ythickness,
 
603
                         label->allocation.width - label->style->xthickness * 2,
 
604
                         label->allocation.height - label->style->ythickness * 2);
 
605
        return FALSE;
 
606
}
 
607
 
604
608
GtkWidget *
605
609
brasero_disc_get_use_info_notebook (void)
606
610
{
 
611
        GList     *chain;
607
612
        GtkWidget *frame;
608
613
        GtkWidget *notebook;
609
614
        GtkWidget *event_box;
690
695
                                         "</span>", NULL);
691
696
        first_use = gtk_label_new (first_use_message);
692
697
        gtk_misc_set_alignment (GTK_MISC (first_use), 0.50, 0.30);
 
698
        gtk_label_set_selectable (GTK_LABEL (first_use), TRUE);
693
699
        gtk_label_set_ellipsize (GTK_LABEL (first_use), PANGO_ELLIPSIZE_END);
694
700
        g_free (first_use_message);
695
701
 
698
704
        gtk_label_set_use_markup (GTK_LABEL (first_use), TRUE);
699
705
        gtk_container_add (GTK_CONTAINER (event_box), first_use);
700
706
 
 
707
        /* This is meant for accessibility so that screen readers can read it */
 
708
        g_object_set (first_use,
 
709
                      "can-focus", TRUE,
 
710
                      NULL);
 
711
 
 
712
        g_signal_connect_after (first_use,
 
713
                                "expose-event",
 
714
                                G_CALLBACK (brasero_disc_draw_focus_around_help_text),
 
715
                                NULL);
 
716
        /* We don't want to have the whole text selected */
 
717
        g_object_set (gtk_widget_get_settings (first_use),
 
718
                      "gtk-label-select-on-focus", FALSE,
 
719
                      NULL);
 
720
 
 
721
        chain = g_list_prepend (NULL, first_use);
 
722
        gtk_container_set_focus_chain (GTK_CONTAINER (frame), chain);
 
723
        g_list_free (chain);
 
724
 
 
725
        /* This gets all events and forward them to treeview */
701
726
        gtk_event_box_set_above_child (GTK_EVENT_BOX (event_box), TRUE);
702
727
 
703
728
        g_free (message_add_header);