[brasero] Fixed a bunch of build warnings
- From: Philippe Rouquier <philippr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [brasero] Fixed a bunch of build warnings
- Date: Tue, 20 Oct 2009 11:27:06 +0000 (UTC)
commit 10971f20afd14561986158587a55b2a4c4cff426
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date: Tue Oct 20 13:22:29 2009 +0200
Fixed a bunch of build warnings
libbrasero-burn/brasero-caps-plugin.c | 2 ++
libbrasero-burn/brasero-data-session.c | 2 +-
libbrasero-burn/brasero-file-node.c | 28 ----------------------------
libbrasero-burn/brasero-track-type.c | 2 ++
plugins/checksum/burn-volume-read.c | 2 +-
src/brasero-file-filtered.c | 4 ++--
src/brasero-multi-dnd.c | 2 ++
src/brasero-playlist.c | 2 +-
src/brasero-project-manager.c | 2 +-
src/brasero-xsession.c | 2 ++
10 files changed, 14 insertions(+), 34 deletions(-)
---
diff --git a/libbrasero-burn/brasero-caps-plugin.c b/libbrasero-burn/brasero-caps-plugin.c
index fc87bb5..4f9c4b9 100644
--- a/libbrasero-burn/brasero-caps-plugin.c
+++ b/libbrasero-burn/brasero-caps-plugin.c
@@ -36,6 +36,8 @@
#include <glib.h>
+#include "brasero-plugin-information.h"
+
#include "brasero-media.h"
#include "brasero-media-private.h"
diff --git a/libbrasero-burn/brasero-data-session.c b/libbrasero-burn/brasero-data-session.c
index c2d6b95..8b31af3 100644
--- a/libbrasero-burn/brasero-data-session.c
+++ b/libbrasero-burn/brasero-data-session.c
@@ -168,7 +168,7 @@ static const BraseroAsyncTaskType image_contents_type = {
brasero_io_image_directory_contents_destroy
};
-void
+static void
brasero_io_load_image_directory (const gchar *dev_image,
gint64 session_block,
gint64 block,
diff --git a/libbrasero-burn/brasero-file-node.c b/libbrasero-burn/brasero-file-node.c
index 2fc835f..f2ed46a 100644
--- a/libbrasero-burn/brasero-file-node.c
+++ b/libbrasero-burn/brasero-file-node.c
@@ -887,34 +887,6 @@ brasero_file_node_set_from_info (BraseroFileNode *node,
node->is_exploring = TRUE;
}
-gchar *
-brasero_file_node_get_uri_name (const gchar *uri)
-{
- gchar *utf8_name;
- GFile *vfs_uri;
- gchar *name;
-
- /* g_path_get_basename is not comfortable with uri related
- * to the root directory so check that before */
- vfs_uri = g_file_new_for_uri (uri);
- name = g_file_get_basename (vfs_uri);
- g_object_unref (vfs_uri);
-
- /* NOTE and reminder names are already unescaped; the following is not
- * needed: unescaped_name = g_uri_unescape_string (name, NULL); */
-
- /* NOTE: a graft should be added for non utf8 name since we
- * modify them; in fact we use this function only in the next
- * one which creates only grafted nodes. */
- utf8_name = brasero_utils_get_uri_name (name);
- if (utf8_name) {
- g_free (name);
- return utf8_name;
- }
-
- return name;
-}
-
BraseroFileNode *
brasero_file_node_new_loading (const gchar *name)
{
diff --git a/libbrasero-burn/brasero-track-type.c b/libbrasero-burn/brasero-track-type.c
index c03349e..f5ce555 100644
--- a/libbrasero-burn/brasero-track-type.c
+++ b/libbrasero-burn/brasero-track-type.c
@@ -445,6 +445,7 @@ brasero_track_type_equal (const BraseroTrackType *type_A,
return TRUE;
}
+#if 0
/**
* brasero_track_type_match:
* @type_A: a #BraseroTrackType.
@@ -495,3 +496,4 @@ brasero_track_type_match (const BraseroTrackType *type_A,
return TRUE;
}
+#endif
diff --git a/plugins/checksum/burn-volume-read.c b/plugins/checksum/burn-volume-read.c
index 9644e78..7f8b56e 100644
--- a/plugins/checksum/burn-volume-read.c
+++ b/plugins/checksum/burn-volume-read.c
@@ -165,7 +165,7 @@ brasero_volume_file_rewind (BraseroVolFileHandle *handle)
return brasero_volume_file_rewind_real (handle);
}
-BraseroBurnResult
+static BraseroBurnResult
brasero_volume_file_check_state (BraseroVolFileHandle *handle)
{
/* check if we need to load a new block */
diff --git a/src/brasero-file-filtered.c b/src/brasero-file-filtered.c
index 4edca19..2c88ef3 100644
--- a/src/brasero-file-filtered.c
+++ b/src/brasero-file-filtered.c
@@ -109,7 +109,7 @@ brasero_file_filtered_activate (GtkExpander *self)
brasero_file_filtered_update (BRASERO_FILE_FILTERED (self));
}
-void
+static void
brasero_file_filtered_row_inserted (GtkTreeModel *model,
GtkTreePath *treepath,
GtkTreeIter *iter,
@@ -118,7 +118,7 @@ brasero_file_filtered_row_inserted (GtkTreeModel *model,
brasero_file_filtered_update (self);
}
-void
+static void
brasero_file_filtered_row_deleted (GtkTreeModel *model,
GtkTreePath *treepath,
BraseroFileFiltered *self)
diff --git a/src/brasero-multi-dnd.c b/src/brasero-multi-dnd.c
index df657dd..32f1ec5 100644
--- a/src/brasero-multi-dnd.c
+++ b/src/brasero-multi-dnd.c
@@ -24,6 +24,8 @@
#include <gtk/gtk.h>
+#include "brasero-multi-dnd.h"
+
#include "brasero-track-data-cfg.h"
#include "eggtreemultidnd.h"
diff --git a/src/brasero-playlist.c b/src/brasero-playlist.c
index c470a65..ee563c4 100644
--- a/src/brasero-playlist.c
+++ b/src/brasero-playlist.c
@@ -613,7 +613,7 @@ brasero_playlist_get_selected_uri (BraseroURIContainer *container)
return NULL;
}
-void
+static void
brasero_playlist_unselect_all (BraseroPlaylist *playlist)
{
GtkTreeSelection *selection;
diff --git a/src/brasero-project-manager.c b/src/brasero-project-manager.c
index 28b8af9..e245fd9 100644
--- a/src/brasero-project-manager.c
+++ b/src/brasero-project-manager.c
@@ -459,7 +459,7 @@ brasero_project_manager_selected_uris_changed (BraseroURIContainer *container,
manager);
}
-void
+static void
brasero_project_manager_sidepane_changed (BraseroLayout *layout,
gboolean visible,
BraseroProjectManager *manager)
diff --git a/src/brasero-xsession.c b/src/brasero-xsession.c
index 4e0b662..b944c0f 100644
--- a/src/brasero-xsession.c
+++ b/src/brasero-xsession.c
@@ -35,6 +35,8 @@
#include <gtk/gtk.h>
+#include "brasero-xsession.h"
+
#include "eggsmclient.h"
#include "brasero-app.h"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]