brasero r1738 - in trunk: . libbrasero-media src



Author: philippr
Date: Sun Jan 11 20:15:25 2009
New Revision: 1738
URL: http://svn.gnome.org/viewvc/brasero?rev=1738&view=rev

Log:
2009-01-11  Philippe Rouquier  <ykw localhost localdomain>

	Make some functions private as they only serve for objects derived from
	BraseroMediumSelection in brasero.

	* libbrasero-media/brasero-medium-selection-priv.h:
	* libbrasero-media/brasero-medium-selection.c:
	* libbrasero-media/brasero-medium-selection.h:
	* src/brasero-burn-options.c:
	* src/brasero-dest-selection.c:

Added:
   trunk/libbrasero-media/brasero-medium-selection-priv.h
Modified:
   trunk/ChangeLog
   trunk/libbrasero-media/brasero-medium-selection.c
   trunk/libbrasero-media/brasero-medium-selection.h
   trunk/src/brasero-burn-options.c
   trunk/src/brasero-dest-selection.c

Added: trunk/libbrasero-media/brasero-medium-selection-priv.h
==============================================================================
--- (empty file)
+++ trunk/libbrasero-media/brasero-medium-selection-priv.h	Sun Jan 11 20:15:25 2009
@@ -0,0 +1,45 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
+/*
+ * brasero
+ * Copyright (C) Philippe Rouquier 2005-2008 <bonfire-app wanadoo fr>
+ * 
+ *  Brasero is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ * 
+ * brasero is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ * See the GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with brasero.  If not, write to:
+ * 	The Free Software Foundation, Inc.,
+ * 	51 Franklin Street, Fifth Floor
+ * 	Boston, MA  02110-1301, USA.
+ */
+
+#ifndef _BRASERO_MEDIUM_SELECTION_PRIV_H_
+#define _BRASERO_MEDIUM_SELECTION_PRIV_H_
+
+#include "brasero-medium-selection.h"
+
+G_BEGIN_DECLS
+
+typedef gboolean (*BraseroMediumSelectionFunc) (BraseroMedium *medium, gpointer callback_data);
+
+guint
+brasero_medium_selection_get_media_num (BraseroMediumSelection *selection);
+
+void
+brasero_medium_selection_foreach (BraseroMediumSelection *selection,
+				  BraseroMediumSelectionFunc function,
+				  gpointer callback_data);
+
+void
+brasero_medium_selection_update_media_string (BraseroMediumSelection *selection);
+
+G_END_DECLS
+
+#endif /* _BRASERO_MEDIUM_SELECTION_PRIV_H_ */

Modified: trunk/libbrasero-media/brasero-medium-selection.c
==============================================================================
--- trunk/libbrasero-media/brasero-medium-selection.c	(original)
+++ trunk/libbrasero-media/brasero-medium-selection.c	Sun Jan 11 20:15:25 2009
@@ -30,11 +30,12 @@
 
 #include <gtk/gtk.h>
 
-#include <brasero-medium-selection.h>
-#include <brasero-medium.h>
-#include <brasero-volume.h>
-#include <brasero-medium-monitor.h>
-#include <brasero-units.h>
+#include "brasero-medium-selection.h"
+#include "brasero-medium-selection-priv.h"
+#include "brasero-medium.h"
+#include "brasero-volume.h"
+#include "brasero-medium-monitor.h"
+#include "brasero-units.h"
 
 typedef struct _BraseroMediumSelectionPrivate BraseroMediumSelectionPrivate;
 struct _BraseroMediumSelectionPrivate

Modified: trunk/libbrasero-media/brasero-medium-selection.h
==============================================================================
--- trunk/libbrasero-media/brasero-medium-selection.h	(original)
+++ trunk/libbrasero-media/brasero-medium-selection.h	Sun Jan 11 20:15:25 2009
@@ -60,8 +60,6 @@
 GType brasero_medium_selection_get_type (void) G_GNUC_CONST;
 GtkWidget* brasero_medium_selection_new (void);
 
-typedef gboolean (*BraseroMediumSelectionFunc) (BraseroMedium *medium, gpointer callback_data);
-
 BraseroMedium *
 brasero_medium_selection_get_active (BraseroMediumSelection *selection);
 
@@ -73,17 +71,6 @@
 brasero_medium_selection_show_media_type (BraseroMediumSelection *selection,
 					  BraseroMediaType type);
 
-guint
-brasero_medium_selection_get_media_num (BraseroMediumSelection *selection);
-
-void
-brasero_medium_selection_foreach (BraseroMediumSelection *selection,
-				  BraseroMediumSelectionFunc function,
-				  gpointer callback_data);
-
-void
-brasero_medium_selection_update_media_string (BraseroMediumSelection *selection);
-
 G_END_DECLS
 
 #endif /* _BRASERO_MEDIUM_SELECTION_H_ */

Modified: trunk/src/brasero-burn-options.c
==============================================================================
--- trunk/src/brasero-burn-options.c	(original)
+++ trunk/src/brasero-burn-options.c	Sun Jan 11 20:15:25 2009
@@ -31,6 +31,7 @@
 #include "burn-session.h"
 #include "burn-caps.h"
 #include "brasero-medium.h"
+#include "brasero-medium-selection-priv.h"
 
 #include "brasero-burn-options.h"
 #include "brasero-session-cfg.h"

Modified: trunk/src/brasero-dest-selection.c
==============================================================================
--- trunk/src/brasero-dest-selection.c	(original)
+++ trunk/src/brasero-dest-selection.c	Sun Jan 11 20:15:25 2009
@@ -42,6 +42,7 @@
 #include "burn-plugin-manager.h"
 #include "brasero-drive.h"
 #include "brasero-volume.h"
+#include "brasero-medium-selection-priv.h"
 
 #include "brasero-dest-selection.h"
 #include "brasero-session-cfg.h"



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