brasero r1460 - in trunk: . src
- From: philippr svn gnome org
- To: svn-commits-list gnome org
- Subject: brasero r1460 - in trunk: . src
- Date: Mon, 3 Nov 2008 11:54:39 +0000 (UTC)
Author: philippr
Date: Mon Nov 3 11:54:39 2008
New Revision: 1460
URL: http://svn.gnome.org/viewvc/brasero?rev=1460&view=rev
Log:
If we\'re asked to open a new empty data project on the command line,
then add the contents of burn:/// by default
* src/brasero-project-manager.c (brasero_project_manager_data):
Modified:
trunk/ChangeLog
trunk/src/brasero-project-manager.c
Modified: trunk/src/brasero-project-manager.c
==============================================================================
--- trunk/src/brasero-project-manager.c (original)
+++ trunk/src/brasero-project-manager.c Mon Nov 3 11:54:39 2008
@@ -843,11 +843,24 @@
brasero_project_manager_data (BraseroProjectManager *manager,
GSList *uris)
{
+ gchar *burn_URI = NULL;
+
+ /* always add the contents of burn:/// URI if list is empty */
+ if (!uris) {
+ burn_URI = g_strdup ("burn:///");
+ uris = g_slist_prepend (NULL, burn_URI);
+ }
+
brasero_project_manager_switch (manager,
BRASERO_PROJECT_TYPE_DATA,
uris,
NULL,
TRUE);
+
+ if (burn_URI) {
+ g_slist_free (uris);
+ g_free (burn_URI);
+ }
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]