brasero r1406 - in trunk: . src



Author: philippr
Date: Wed Oct 22 11:48:59 2008
New Revision: 1406
URL: http://svn.gnome.org/viewvc/brasero?rev=1406&view=rev

Log:
	Fix valid signal emission (doesn\'t take any argument)

	* src/brasero-session-cfg.c (brasero_session_cfg_update):


Modified:
   trunk/ChangeLog
   trunk/src/brasero-session-cfg.c

Modified: trunk/src/brasero-session-cfg.c
==============================================================================
--- trunk/src/brasero-session-cfg.c	(original)
+++ trunk/src/brasero-session-cfg.c	Wed Oct 22 11:48:59 2008
@@ -496,8 +496,7 @@
 		priv->is_valid = BRASERO_SESSION_NOT_SUPPORTED;
 		g_signal_emit (self,
 			       session_cfg_signals [IS_VALID_SIGNAL],
-			       0,
-			       BRASERO_SESSION_NOT_SUPPORTED);
+			       0);
 		return;
 	}
 
@@ -506,8 +505,7 @@
 		priv->is_valid = BRASERO_SESSION_NO_INPUT_MEDIUM;
 		g_signal_emit (self,
 			       session_cfg_signals [IS_VALID_SIGNAL],
-			       0,
-			       BRASERO_SESSION_NO_INPUT_MEDIUM);
+			       0);
 		return;
 	}
 
@@ -516,18 +514,17 @@
 		priv->is_valid = BRASERO_SESSION_NO_INPUT_IMAGE;
 		g_signal_emit (self,
 			       session_cfg_signals [IS_VALID_SIGNAL],
-			       0,
-			       BRASERO_SESSION_NO_INPUT_IMAGE);
+			       0);
 		return;
 	}
 
 	/* make sure there is an output set */
 	burner = brasero_burn_session_get_burner (BRASERO_BURN_SESSION (self));
 	if (!burner) {
+		priv->is_valid = BRASERO_SESSION_NO_OUTPUT;
 		g_signal_emit (self,
 			       session_cfg_signals [IS_VALID_SIGNAL],
-			       0,
-			       BRASERO_SESSION_NO_OUTPUT);
+			       0);
 		return;
 	}
 
@@ -556,15 +553,13 @@
 			priv->is_valid = BRASERO_SESSION_DISC_PROTECTED;
 			g_signal_emit (self,
 				       session_cfg_signals [IS_VALID_SIGNAL],
-				       0,
-				       BRASERO_SESSION_DISC_PROTECTED);
+				       0);
 		}
 		else {
 			priv->is_valid = BRASERO_SESSION_NOT_SUPPORTED;
 			g_signal_emit (self,
 				       session_cfg_signals [IS_VALID_SIGNAL],
-				       0,
-				       BRASERO_SESSION_NOT_SUPPORTED);
+				       0);
 		}
 		return;
 	}
@@ -573,14 +568,14 @@
 		priv->is_valid = BRASERO_SESSION_VALID;
 		g_signal_emit (self,
 			       session_cfg_signals [IS_VALID_SIGNAL],
-			       0,
-			       BRASERO_SESSION_VALID);
+			       0);
 	}
-	else
+	else {
+		brasero_session_cfg_check_size (self);
 		g_signal_emit (self,
 			       session_cfg_signals [IS_VALID_SIGNAL],
-			       0,
-			       brasero_session_cfg_check_size (self));
+			       0);
+	}
 }
 
 static void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]