~ubuntu-branches/ubuntu/lucid/brasero/lucid-updates

« back to all changes in this revision

Viewing changes to src/brasero-layout.c

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2010-06-24 11:22:46 UTC
  • mfrom: (1.3.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20100624112246-s5ubbf8tafqkir0m
Tags: 2.30.2-0ubuntu1
* New upstream release
  - Lot's of memleak fixes
  - Fixed a runtime warning related to cancelling tracker searches
  - Crash in brasero_data_project_node_removed at
    brasero-data-project.c:1163
  - brasero crashed with SIGSEGV in brasero_data_project_remove_node()
    (LP: #561319)
  - Fix a few runtime warnings with the Cover Editor
  - Text in cover editor does not show up automatically (LP: #469459)
  - Removed use of deprecated flags
  - Use accessor functions instead direct access (use GSEAL GnomeGoal)
  - Fix a bug in the layout on first start (side pane was hidden and
    remained so until the user moved it)
  - Save printer settings for cover printing
  - Write the contents of the GtkTextBuffer displayed line by displayed
    line which should improve the layout
  - "Write to Disc" button sensitivity regression
  - Fix flaw in mask that led libburn plugin not to work (not to be picked
    up actually) in some circumstances
  - Fails to burn ANY audio project
  - Move columns doesn't work (LP: #581759)
  - Brasero does not correctly handle double clicking on column separators
    (LP: #581885)
  - Bad info when burning, high CPU usage and slow burn
  - Change the priority for cdrdao and raised the one of cdda2wav plugin
  - brasero crashed with SIGSEGV in
    brasero_mmc3_get_performa nce_wrt_spd_desc() (LP: #564766)
  - brasero crashed with SIGSEGV in brasero_scsi_command_issue_sync()
    (LP: #444832)
  - Do not check for symlinks on cdda2wav so the plugin can use icedax.
  - Brasero's failure with some file names (LP: #380643)
  - Pressing create audio cd does nothing
  - Empty project not available
  - can't actually save error logs
  - doesn't handle incorrect temp dirs properly
  - Fix multi DND in GtkFileChooser
  - Displays "starting to record" during whole burn process
  - Fix wrong report of speed with both cdrecord and wodim
  - Disk project doesn't save the disk title (LP: #587924)
  - Brasero reports outdated cdrtools on cdrtools-3.00 (LP: #592075)
  - misc bug fixes
  - Updated Translations
* Removed upstream patches:
  - debian/patches/90_git_audio_project_creation.patch,
    debian/patches/91_git_audio_project_creation.patch,
    debian/patches/92_git_audio_cd_recording.patch,
    debian/patches/93_git_new_caps_function_definition.patch
* debian/patches/99_autoconf.patch:
  - refreshed

Show diffs side-by-side

added added

removed removed

Lines of Context:
652
652
brasero_layout_load (BraseroLayout *layout,
653
653
                     BraseroLayoutType type)
654
654
{
655
 
        gchar *layout_id = NULL;
 
655
        const gchar *layout_id = NULL;
656
656
        GtkTreeModel *model;
657
657
        gboolean sidepane;
658
658
        GtkAction *action;
 
659
        GtkTreeIter iter;
659
660
        gpointer value;
660
 
        GtkTreeIter iter;
661
661
 
662
662
        if (layout->priv->preview_pane)
663
663
                brasero_preview_hide (BRASERO_PREVIEW (layout->priv->preview_pane));
744
744
 
745
745
        action = gtk_action_group_get_action (layout->priv->action_group, BRASERO_LAYOUT_NONE_ID);
746
746
        gtk_toggle_action_set_active (GTK_TOGGLE_ACTION (action), sidepane);
747
 
        g_free (layout_id);
748
747
}
749
748
 
750
749
static void
777
776
                                        GtkAllocation *allocation,
778
777
                                        BraseroLayout *layout)
779
778
{
780
 
        if (!layout->priv->pane_size_allocated) {
781
 
                guint position;
 
779
        if (!layout->priv->pane_size_allocated && gtk_widget_get_visible (widget)) {
 
780
                gint position;
 
781
                gint value_int;
782
782
                gpointer value = NULL;
783
783
 
784
784
                brasero_setting_get_value (brasero_setting_get_default (),
785
785
                                           BRASERO_SETTING_DISPLAY_PROPORTION,
786
786
                                           &value);
787
787
 
788
 
                position = allocation->width * GPOINTER_TO_INT (value) / 10000;
789
 
                if (position >= 0)
 
788
                value_int = GPOINTER_TO_INT (value);
 
789
                if (value_int >= 0) {
 
790
                        position = value_int * allocation->width / 10000;
790
791
                        gtk_paned_set_position (GTK_PANED (layout->priv->pane), position);
 
792
                }
791
793
 
792
794
                g_signal_connect (layout->priv->pane,
793
795
                                  "notify::position",
1087
1089
                        break;
1088
1090
        }
1089
1091
 
 
1092
        gtk_box_pack_end (GTK_BOX (obj), obj->priv->pane, TRUE, TRUE, 0);
1090
1093
        gtk_widget_show (obj->priv->pane);
1091
 
        gtk_box_pack_end (GTK_BOX (obj), obj->priv->pane, TRUE, TRUE, 0);
1092
1094
 
1093
1095
        /* This function will set its proportion */
1094
1096
        g_signal_connect (obj->priv->pane,