Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 326108 Details for
Bug 437748
app-cdr/xfburn - enable burning of iso files without physical burner attached (currently crashes)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for xfburn to create iso images without attached cd writer
enable_iso_without_burner.diff (text/plain), 6.33 KB, created by
Christian Ostheimer
on 2012-10-09 18:43:37 UTC
(
hide
)
Description:
patch for xfburn to create iso images without attached cd writer
Filename:
MIME Type:
Creator:
Christian Ostheimer
Created:
2012-10-09 18:43:37 UTC
Size:
6.33 KB
patch
obsolete
>--- xfburn-burn-data-composition-base-dialog.c.orig2 2012-10-09 17:58:46.000000000 +0200 >+++ xfburn-burn-data-composition-base-dialog.c 2012-10-09 18:13:52.000000000 +0200 >@@ -174,6 +174,8 @@ > gchar *default_path; > gchar *tmp_dir; > const char *comp_name; >+ gint n_burners_co; >+ XfburnDeviceList *devlist_co; > > gobj = G_OBJECT_CLASS (parent_class)->constructor (type, n_construct_properties, construct_properties); > obj = XFBURN_BURN_DATA_COMPOSITION_BASE_DIALOG (gobj); >@@ -190,16 +192,21 @@ > gtk_window_set_icon (GTK_WINDOW (obj), icon); > g_object_unref (icon); > >- /* burning devices list */ >- priv->device_box = xfburn_device_box_new (SHOW_CD_WRITERS | SHOW_CDRW_WRITERS | SHOW_MODE_SELECTION | SHOW_SPEED_SELECTION); >- gtk_widget_show (priv->device_box); >- >- g_signal_connect (G_OBJECT (priv->device_box), "volume-changed", G_CALLBACK (cb_volume_changed), obj); >- >- priv->frame_device = xfce_gtk_frame_box_new_with_content (_("Burning device"), priv->device_box); >- gtk_widget_show (priv->frame_device); >- gtk_box_pack_start (box, priv->frame_device, FALSE, FALSE, BORDER); >- >+ devlist_co = xfburn_device_list_new (); >+ g_object_get (devlist_co, "num-burners", &n_burners_co, NULL); >+ g_object_unref(devlist_co); >+ if (n_burners_co >= 1) { /* cd burner available? Else only iso creation */ >+ >+ /* burning devices list */ >+ priv->device_box = xfburn_device_box_new (SHOW_CD_WRITERS | SHOW_CDRW_WRITERS | SHOW_MODE_SELECTION | SHOW_SPEED_SELECTION); >+ gtk_widget_show (priv->device_box); >+ >+ g_signal_connect (G_OBJECT (priv->device_box), "volume-changed", G_CALLBACK (cb_volume_changed), obj); >+ >+ priv->frame_device = xfce_gtk_frame_box_new_with_content (_("Burning device"), priv->device_box); >+ gtk_widget_show (priv->frame_device); >+ gtk_box_pack_start (box, priv->frame_device, FALSE, FALSE, BORDER); >+ } > /* composition name */ > comp_name = iso_image_get_volume_id (priv->image); > if (priv->show_volume_name) { >@@ -298,7 +305,16 @@ > gtk_widget_grab_focus (button); > gtk_widget_grab_default (button); > >- cb_volume_changed (XFBURN_DEVICE_BOX (priv->device_box), TRUE, xfburn_device_box_get_selected_device (XFBURN_DEVICE_BOX (priv->device_box)), obj); >+ if (n_burners_co >= 1) { >+ cb_volume_changed (XFBURN_DEVICE_BOX (priv->device_box), TRUE, xfburn_device_box_get_selected_device (XFBURN_DEVICE_BOX (priv->device_box)), obj); >+ } else { >+ gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (priv->check_only_iso), TRUE); >+ gtk_widget_set_sensitive (priv->hbox_iso, TRUE); >+ gtk_widget_set_sensitive (priv->check_eject, FALSE); >+ gtk_widget_set_sensitive (priv->check_burnfree, FALSE); >+ gtk_widget_set_sensitive (priv->check_dummy, FALSE); >+ gtk_widget_set_sensitive (priv->check_only_iso, FALSE); >+ } > g_signal_connect (G_OBJECT (obj), "response", G_CALLBACK (cb_dialog_response), priv); > > return gobj; >@@ -393,16 +409,23 @@ > { > XfburnBurnDataCompositionBaseDialogPrivate *priv = XFBURN_BURN_DATA_COMPOSITION_BASE_DIALOG_GET_PRIVATE (dialog); > gboolean valid_disc; >+ gint n_burners_co; >+ XfburnDeviceList *devlist_co; > >- gtk_widget_set_sensitive (priv->frame_device, !gtk_toggle_button_get_active (button)); >- xfburn_device_box_set_sensitive (XFBURN_DEVICE_BOX (priv->device_box), !gtk_toggle_button_get_active (button)); >- >+ devlist_co = xfburn_device_list_new (); >+ g_object_get (devlist_co, "num-burners", &n_burners_co, NULL); >+ g_object_unref(devlist_co); >+ if(n_burners_co>=1) { >+ gtk_widget_set_sensitive (priv->frame_device, !gtk_toggle_button_get_active (button)); >+ xfburn_device_box_set_sensitive (XFBURN_DEVICE_BOX (priv->device_box), !gtk_toggle_button_get_active (button)); >+ } > gtk_widget_set_sensitive (priv->hbox_iso, gtk_toggle_button_get_active (button)); > gtk_widget_set_sensitive (priv->check_eject, !gtk_toggle_button_get_active (button)); > gtk_widget_set_sensitive (priv->check_burnfree, !gtk_toggle_button_get_active (button)); > gtk_widget_set_sensitive (priv->check_dummy, !gtk_toggle_button_get_active (button)); > if (!gtk_toggle_button_get_active (button)) { >- g_object_get (G_OBJECT (priv->device_box), "valid", &valid_disc, NULL); >+ if(n_burners_co>=1) >+ g_object_get (G_OBJECT (priv->device_box), "valid", &valid_disc, NULL); > gtk_widget_set_sensitive (priv->button_proceed, valid_disc); > } else { > gtk_widget_set_sensitive (priv->button_proceed, TRUE); >@@ -634,6 +657,9 @@ > struct burn_source * src = NULL; > IsoWriteOpts *write_opts; > >+ gint n_burners_co; >+ XfburnDeviceList *devlist_co; >+ > /* If the name was the default, update the image volume id and volset id */ > if (priv->entry != NULL) { > const gchar * comp_name = gtk_entry_get_text (GTK_ENTRY (priv->entry)); >@@ -667,7 +693,11 @@ > > gtk_widget_show (dialog_progress); > >- if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (priv->check_only_iso))) { >+ devlist_co = xfburn_device_list_new (); >+ g_object_get (devlist_co, "num-burners", &n_burners_co, NULL); >+ g_object_unref(devlist_co); >+ if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (priv->check_only_iso)) >+ || n_burners_co <1) { // force iso if no burner exists > ThreadWriteIsoParams *params = NULL; > > /* create a new iso */ >--- xfburn-main.c.orig 2012-05-31 22:40:27.000000000 +0200 >+++ xfburn-main.c 2012-10-09 18:21:47.000000000 +0200 >@@ -294,9 +294,10 @@ > GTK_BUTTONS_CLOSE, > ((const gchar *) _("No burners are currently available"))); > gtk_message_dialog_format_secondary_text (dialog, >- _("Possibly the disc(s) are in use, and cannot get accessed.\n\n" >- "Please unmount and restart the application.\n\n" >- "If no disc is in the drive, check that you have read and write access to the drive with the current user.")); >+ _("Creation of iso images is possible.\n\n" >+ "Possibly the disc(s) are in use, and cannot get accessed.\n\n" >+ "In this case please unmount and restart the application.\n\n" >+ "And if no disc is in the drive, check that you have read and write access to the drive with the current user.")); > gtk_dialog_run (GTK_DIALOG (dialog)); > gtk_widget_destroy (GTK_WIDGET (dialog)); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 437748
: 326108