[gtk+/multiroot-filechooser] const GSList doesn't make sense
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/multiroot-filechooser] const GSList doesn't make sense
- Date: Thu, 24 Jun 2010 22:48:26 +0000 (UTC)
commit c47d32cd07001200dfb8dc82f1549412c41ccb54
Author: Federico Mena Quintero <federico novell com>
Date: Thu Jun 24 17:42:38 2010 -0500
const GSList doesn't make sense
Except to annoy us non-C++ programmers :)
Signed-off-by: Federico Mena Quintero <federico novell com>
gtk/gtkfilechooserentry.c | 4 ++--
gtk/gtkfilechooserentry.h | 2 +-
gtk/gtkpathbar.c | 6 +++---
gtk/gtkpathbar.h | 4 ++--
4 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/gtk/gtkfilechooserentry.c b/gtk/gtkfilechooserentry.c
index f2c47ac..d28d86b 100644
--- a/gtk/gtkfilechooserentry.c
+++ b/gtk/gtkfilechooserentry.c
@@ -67,7 +67,7 @@ struct _GtkFileChooserEntry
GtkFileChooserAction action;
GtkFileSystem *file_system;
- const GSList *root_uris;
+ GSList *root_uris;
GFile *base_folder;
GFile *current_folder_file;
gchar *file_part;
@@ -2019,7 +2019,7 @@ _gtk_file_chooser_entry_get_local_only (GtkFileChooserEntry *chooser_entry)
void
_gtk_file_chooser_entry_set_root_uris (GtkFileChooserEntry *chooser_entry,
- const GSList *root_uris)
+ GSList *root_uris)
{
/* This doesn't need its own copy. */
chooser_entry->root_uris = root_uris;
diff --git a/gtk/gtkfilechooserentry.h b/gtk/gtkfilechooserentry.h
index 480759f..3fb34ac 100644
--- a/gtk/gtkfilechooserentry.h
+++ b/gtk/gtkfilechooserentry.h
@@ -52,7 +52,7 @@ void _gtk_file_chooser_entry_set_local_only (GtkFileChooserEnt
gboolean local_only);
gboolean _gtk_file_chooser_entry_get_local_only (GtkFileChooserEntry *chooser_entry);
void _gtk_file_chooser_entry_set_root_uris (GtkFileChooserEntry *chooser_entry,
- const GSList *root_uris);
+ GSList *root_uris);
G_END_DECLS
diff --git a/gtk/gtkpathbar.c b/gtk/gtkpathbar.c
index 0024073..b0d1dd8 100644
--- a/gtk/gtkpathbar.c
+++ b/gtk/gtkpathbar.c
@@ -1455,7 +1455,7 @@ static ButtonType
find_button_type (GtkPathBar *path_bar,
GFile *file)
{
- const GSList *l;
+ GSList *l;
if (path_bar->root_file != NULL &&
g_file_equal (file, path_bar->root_file))
@@ -1857,8 +1857,8 @@ _gtk_path_bar_set_file_system (GtkPathBar *path_bar,
}
void
-_gtk_path_bar_set_root_uris (GtkPathBar *path_bar,
- const GSList *root_uris)
+_gtk_path_bar_set_root_uris (GtkPathBar *path_bar,
+ GSList *root_uris)
{
g_return_if_fail (GTK_IS_PATH_BAR (path_bar));
diff --git a/gtk/gtkpathbar.h b/gtk/gtkpathbar.h
index b27ceec..efe1f46 100644
--- a/gtk/gtkpathbar.h
+++ b/gtk/gtkpathbar.h
@@ -45,7 +45,7 @@ struct _GtkPathBar
GFile *home_file;
GFile *desktop_file;
- const GSList *root_uris;
+ GSList *root_uris;
GCancellable *get_info_cancellable;
@@ -91,7 +91,7 @@ gboolean _gtk_path_bar_set_file (GtkPathBar *path_bar,
gboolean keep_trail,
GError **error);
void _gtk_path_bar_set_root_uris (GtkPathBar *path_bar,
- const GSList *root_uris);
+ GSList *root_uris);
void _gtk_path_bar_up (GtkPathBar *path_bar);
void _gtk_path_bar_down (GtkPathBar *path_bar);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]