[brasero] Re-enable the autoconfiguration for BraseroSessionCfg after a burning occured
- From: Philippe Rouquier <philippr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [brasero] Re-enable the autoconfiguration for BraseroSessionCfg after a burning occured
- Date: Thu, 30 Jul 2009 07:33:50 +0000 (UTC)
commit 3969a87b199c5eafded9efaf2daf9ab0fdbd21e6
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date: Mon Jul 27 14:50:50 2009 +0200
Re-enable the autoconfiguration for BraseroSessionCfg after a burning occured
libbrasero-burn/brasero-burn-dialog.c | 4 ++++
libbrasero-burn/brasero-session-cfg.c | 9 +++++++++
libbrasero-burn/brasero-session-cfg.h | 3 +++
3 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/libbrasero-burn/brasero-burn-dialog.c b/libbrasero-burn/brasero-burn-dialog.c
index 435a40f..bdcf5e9 100644
--- a/libbrasero-burn/brasero-burn-dialog.c
+++ b/libbrasero-burn/brasero-burn-dialog.c
@@ -2281,6 +2281,10 @@ brasero_burn_dialog_run (BraseroBurnDialog *dialog,
priv->session = NULL;
g_object_unref (session);
+ /* re-enable autoconfiguration */
+ if (BRASERO_IS_SESSION_CFG (priv->session))
+ brasero_session_cfg_enable (BRASERO_SESSION_CFG (priv->session));
+
return (result == BRASERO_BURN_OK);
}
diff --git a/libbrasero-burn/brasero-session-cfg.c b/libbrasero-burn/brasero-session-cfg.c
index 999e91c..e8364d2 100644
--- a/libbrasero-burn/brasero-session-cfg.c
+++ b/libbrasero-burn/brasero-session-cfg.c
@@ -361,6 +361,15 @@ brasero_session_cfg_disable (BraseroSessionCfg *self)
priv->disabled = TRUE;
}
+void
+brasero_session_cfg_enable (BraseroSessionCfg *self)
+{
+ BraseroSessionCfgPrivate *priv;
+
+ priv = BRASERO_SESSION_CFG_PRIVATE (self);
+ priv->disabled = FALSE;
+}
+
static void
brasero_session_cfg_save_drive_flags (BraseroSessionCfg *self,
BraseroMedium *medium)
diff --git a/libbrasero-burn/brasero-session-cfg.h b/libbrasero-burn/brasero-session-cfg.h
index 571eb96..72a3c0c 100644
--- a/libbrasero-burn/brasero-session-cfg.h
+++ b/libbrasero-burn/brasero-session-cfg.h
@@ -112,6 +112,9 @@ gboolean
brasero_session_cfg_has_default_output_path (BraseroSessionCfg *cfg);
void
+brasero_session_cfg_enable (BraseroSessionCfg *self);
+
+void
brasero_session_cfg_disable (BraseroSessionCfg *self);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]